PRINT [expression-1 [expression-2]] [COL(expression)] [SKIP(expression)][PAGE]
where:
Specifies an expression that determines the data to be placed in the print record.
Specifies an expression that determines the data to be used as subheadings for expression-1.
If expression-2 contains a comma (for example, 'REPORT,IDENTIFIER'), the data is split at that point and written on separate heading lines. The heading data is aligned to the same position as expression-1.
Specifies an expression that determines the position on the output record that expression-1 is written.
A value of 1 represents the first print position (character after the carriage control character). If this value is less than the current column position, the current print record is written to the print file, and expression-1 is placed in the new print record.
If COL is specified without an expression, the data is positioned directly after the previous print data.
If COL(expression) is omitted, expression-1 is positioned two characters from the previous print data.
Specifies an expression that determines the number of lines to be skipped before printing the next print record.
This specification causes the current print record to be written to the print file and the column position to be reset to the first column. If SKIP is specified without an expression, one line is skipped.
Specifies that the next print record is to be printed at the top of a new page.
This specification also causes the current print record to be written to the print file and the column position to be reset to the first column.
Note: If both PAGE and SKIP(expression) are specified, SKIP(expression) is ignored.
The data from each PRINT control statement is queued up contiguously in the print record. The print record is written under the following conditions:
|
Copyright © 2013 CA.
All rights reserved.
|
|