PRINTLIM supports the following parameter:
An integer value between 0 and 999,999,999. Zero is the default value and does not set any limit on the number of records written to SYSLIST.
This example limits the number of records printed to SYSLIST, if allocated, otherwise to SYSPRINT, to 10,000 records. The PRINT command is terminated once the PRINTLIM value is reached, and the input file is closed. The COPY command starts processing with the first record from the input file.
PRINT, PRINTLIM(10000) COPY
This example is the same as the previous example, except the input file is not closed and the COPY command starts processing with the next input record.
PRINT, INFILE(,NOCLOSE), PRINTLIM(10000) COPY
This example prints the first 50 records that contain a packed value of 002, or 003 for field CUST-TOTAL-AUTOS. Once the PRINTLIM is reached, processing continues but writing more records to SYSLIST ceases. Therefore, the accumulated total reflects the file's total and not only the first 50 records that meet the IF criteria.
READ,
LAYOUTFILE(LAYOUT),
ACCUM(CUST-TOTAL-AUTOS,'Total Autos'),
IF(CUST-TOTAL-AUTOS,GT,N'1'),
AND(CUST-TOTAL-AUTOS,LT,N'4'),
PRINTREC,
PRINTLIM(50)
|
Copyright © 2013 CA.
All rights reserved.
|
|