PRINTLIM supports the following parameter:
An integer value between 0 and 999,999,999. The default value is 0, which means there is no limit to the number or records that are 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 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 © 2015 CA Technologies.
All rights reserved.
|
|