PRINTREC accepts no parameters.
This READ example prints every record that is read. It uses the default formatting values. The shipped default values are; FORMAT(CHARACTER), LAYOUTRC(4) and PRINTLIM(0).
READ PRINTREC
This COPY example prints every record that contains the state code for California, CA, at position 10 of the input record, with the copybook that is associated with ddname CA. It also prints each record that contains a CO in position 10 with the copybook that is associated with the ddname CO. All records are copied to the output file SYSUT1O.
COPY, LAYOUTFILE(LAYOUT), FORMAT(S), IF(STATE-CODE,EQ,C'CA'), PRINTREC, LAYOUTFILE(CA), IF(STATE-CODE,EQ,C'CO'), PRINTREC, LAYOUTFILE(CO)
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|