Go to LeighWeb Home Page            

Back To LeighWeb Mainframe Utilities Page

View the module associated with this documentation

 COLS is an edit macro which approximates the function of the "COLS" ISPF edit
 command.  The only difference in the result is that the "columns" line is an
 actual "data" line when you use the COLS edit macro and it is a "message" line
 when you use the COLS line command.  When we go to ISPF 3.0 or higher, the COLS
 edit macro will be superfluous.  The reason is that in the newer releases of
 ISPF, a new line command, "MD" is introduced.  "MD" stands for "Make Data".
 When you put "MD" on any non-data line which ISPF displays in the body of your
 data (like "=COLS>" or "=BNDS>", or "==MSG>", etc.), that line will actually be
 converted to a "data" line and be saved with your file.  Until that time,
 however, to painlessly create a columns line (for whatever purpose), the COLS
 edit macro may be your best bet.

 COLS is invoked as follows:

 COMMAND ===> cols

 The "columns" line is then created specific to the LRECL of the file being
 edited.  Its placement within the file is based on these rules:

 If you use an "A" or "B" line command (like you would for a normal copy or
 move), the columns line will be placed accordingly in the file.  If you do not
 specify an "A" or "B", the columns line will be inserted after the line your
 cursor is currently on.