Edit macro GML Edit macro GML Author: David McRitchie formatted on 1995/04/01 06:54 for assistance contact: D. McRitchie DMcRitchie@hotmail.com -------------------------------------------------------------------------------- Macro name. GML users. SCRIPT users of PDF edit type. Edit Macro resides in SYS1.TSOCLIST -------------------------------------------------------------------------------- GML Wrap word or single/double quoted text within GML tags -------------------------------------------------------------------------------- related @SCRIPT -- to process final document related tagx, ungml -- add code, also see page &relat@.. -------------------------------------------------------------------------------- The GML edit macro will use the first operand as the starting and ending tags. The second argument, if longer than a single word must be enclosed in the quotes of your choice. The remaining operands if any will also be associated with the change command issued. -------------------------------------------------------------------------------- Since square brackets are not available, optional material is enclosed in European brackets <...>. ISREDIT GML tag 'string' -------------------------------------------------------------------------------- tag Positional operand required, your choice of any single gml tag used in a pair. e.g. hp1 hp2 gt12 q italic "string" Positional operand required, your choice of any word or 'single quoted text' or "double quoted text". 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. ENTIRE will be substituted by .ZFIRST .ZLAST X Affects only lines that are EXCLUDED from the display NX Affects only lines that are NOT EXCLUDED from the display other Any other operands of a change command. Examples: entry of ===> gml hp2 FORTRAN word generates ===> c all word 'FORTRAN' ':hp2.FORTRAN:ehp2.' entry of ===> gml hp2 'Our Company' word generates ===> c all word 'Our Company' ':hp2.Our Company:ehp2.' entry of ===> gml hp2 "PARM='/LC(58)'" word generates ===> c all word "PARM='/LC(58)'" ":hp2.PARM='/LC(58)':ehp2." Internal Aspects: 1. First two operands are positional. 2. The first is a gml tag which will be propagated as ":tag." and ":etag.". 3. The second operand will be used as the FROM an TO portion of a CHANGE ALL command. 4. The remaining operands are any thing else which does not conflict with ===> change all 'FROM' ':tag.FROM:etag.' 5. If ampersands or included in the FROM, they will be quadrupled, as required, and a note will be issued that this was done for you. (automatic since converion to a REXX macro.)