Edit macro PLICHK Edit macro PLICHK Author: David McRitchie formatted on 1995/04/01 06:54 for assistance contact: D. McRitchie DMcRitchie@hotmail.com -------------------------------------------------------------------------------- Macro name. PLICHK users. PDF EDIT users particularly SCRIPT users type. Edit Macro resides in SYS1.TSOCLIST, and in IS03.SPF2.MACROS for use on SPF/PC -------------------------------------------------------------------------------- PLICHK Check for unmatched quotes, parens, comments -------------------------------------------------------------------------------- related NESTCHK related see Page Printing Considerations in the index. EDITCHEK, EDITOL, EDITPR, FIXPI, FIXQUOTE, NESTCHK, PERIOD, PINX, PINXDOIT, PIR, PLICHK, SHIFTNX -------------------------------------------------------------------------------- PLICHK will check for unmatched single quotes, double quotes, /*comments*/, pa- renthesis (), and use of :hpn and :ehpn on a per line basis. -------------------------------------------------------------------------------- Since square brackets are not available, optional material is enclosed in European brackets <...>. ISREDIT PLICHK ISREDIT PLICHK -------------------------------------------------------------------------------- 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. The default, if not specified, is .ZFIRST and .ZLAST, indicating that all lines are to be processed. col-pair a pair of columns to limit checking. Examples: PLICHK .A .B check from label .A to label .B PLICHK check entire member under PDF edit Internal Aspects: The PLICHK edit macro is not very long -- you can browse it quickly using ===> TSO CLIST PLICHK 1. beginning and end labels are set up 2. all lines are excluded between beginning and ending labels 3. interested lines are reset to display within a edit macro loop 4. SEEK is an edit macro equivalent to FIND except that it does not cause a reset of an excluded line, nor does it move the cursor. 5. a locate is done to the beginning label specified which will cause the first line of the range to be displayed even though the first line is probably not a problem. Additional Hints: To check for misplaced DO END groups the following may help. ===> x all /* exclude all lines from being displayed ===> c all ' DO ' ' DO ' ===> c all ' END;' ' END;' ===> f all word do /* will pick up things like DO_GROUP */ ===> f all word end The edit macro NESTCHK can be used to check PLI nesting of DO/END groups. n PLICHK on