Edit macro ALIGNJCL Edit macro ALIGNJCL Author: David McRitchie formatted on 1995/04/01 06:54 for assistance contact: D. McRitchie DMcRitchie@hotmail.com -------------------------------------------------------------------------------- Macro name. ALIGNJCL users. PDF EDIT users particularly SCRIPT users type. Edit Macro resides in SYS1.TSOCLIST -------------------------------------------------------------------------------- related FIXJCL which works better (not documented here) -------------------------------------------------------------------------------- ALIGNJCL ALIGN JCL -- edit macro -------------------------------------------------------------------------------- The ALIGNJCL macro will align "EXEC" on column 12 and align "DD" on col 13 pro- viding for more readable JCL. The "EXEC" will stand out from the "DD" state- ments due to different indentation. -------------------------------------------------------------------------------- ISREDIT ALIGNJCL -------------------------------------------------------------------------------- lptr-range indicates that two line pointers are optional to indi- cate a range of lines to be changed. The line pointers must be a labels. Specifying one line pointer is in- valid. The default, if not specified, is .ZFIRST and .ZLAST, indicating that all lines are to be processed. Examples: ALIGNJCL All lines are to be reformatted as required. ALIGNJCL .a .b All lines are to be reformatted as required, between the labels ".A" and ".B". Notice: AUTOSAVE OFF is invoked Internal Aspects: 1. All lines are excluded prior to processing, even if not in area that changes are to take place. 2. Bounds are saved, and temporarily set to BOUNDS 1 71 3. Selected range area has RESET issued to clean up display. 4. JCL lines in selected range are selected for processing. 5. "EXEC" and "DD" with proper alignments are excluded from process- ing. 6. "EXEC" and "DD" are realigned if necessary. 7. Bounds are reset to original. 8. JCL with blank in 72 are excluded, because manual changes may re- ally be desired for JCL utilizing the continuation column of JCL. 9. CHANGED lines and ERROR lines are made visible.