Edit macro XEVERY Edit macro XEVERY Author: David McRitchie formatted on 1995/04/01 06:54 for assistance contact: D. McRitchie DMcRitchie@hotmail.com -------------------------------------------------------------------------------- Macro name. XEVERY users. PDF EDIT users particularly SCRIPT users type. Edit Macro resides in SYS1.TSOCLIST -------------------------------------------------------------------------------- XEVERY EXCLUDE lines containing EVERY specified string -------------------------------------------------------------------------------- related FEVERY -------------------------------------------------------------------------------- EXCLUDE every 'string1' and 'string2' on same line. The regular EXCLUDE command invoked repetitiously equates to EXCLUDE 'string' or 'string' or 'string' There is no provision in the EX- CLUDE command that equates to EXCLUDE 'string' and 'string' and 'string' This edit macro will examine each line in turn in order to accomplish this task. The XEVERY edit macro can only EXCLUDE lines it will not make excluded lines visible; therefore there is no X option, and there is no NX option. -------------------------------------------------------------------------------- Since square brackets are not available, optional material is enclosed in European brackets <...>. ISREDIT XEVERY string1 <... stringn> -------------------------------------------------------------------------------- lptr-range A pair of line pointers can be used to restrict the lines under consideration. The line pointers must be a labels. Specifying one line pointer is invalid. WORD All strings specified are to be checked as words. CHAR, CHARS, PREFIX, SUFFIX, WORD all work same as on EXCLUDE. To include any of these as a string argument enclose in quotes. STRING1 At least one string is required. The string is the same as you would use for a EXCLUDE command. STRINGn Additional strings may be included Examples: XEVERY ' 3350 ' 'DISK' all lines containing both " 3350 " and "DISK" will be excluded. Internal Aspects: 1. Parameters which can be entered in any order are reassigned to meaningful symbols. 2. Labels are verified and other requirements checked for. 3. EXCLUDE strings are reassigned to new symbols. 4. Verification of parameters specifically for edit macro are verified. 5. The ALL option is not allowed as each line will be checked in turn. In ad- dition the following options are specifically not allowed ENTIRE, FIRST, LAST, NEXT, NX, PREV, and X. To use as search arguments they must be en- closed in quotes (either single or double). 6. Code directly relating to description is invoked.