OUTFIL - INCLUDE - OUTREC
Posted: Mon May 19, 2014 5:34 pm
Hello.
I want to separate a input file in 2 output files (OUTFIL) on a condition(INCLUDE) and then I want to reformat(OUTREC) theses output files. That, in this order.
When I run the JCL, I get this error:
OUTREC STATEMENT : DUPLICATE STATEMENT FOUND
Could anyone help me, please ?
Thks in advance
Code'd
I want to separate a input file in 2 output files (OUTFIL) on a condition(INCLUDE) and then I want to reformat(OUTREC) theses output files. That, in this order.
//STEP001N EXEC PGM=SORT,
...
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=OUT1,
INCLUDE=(07,1,CH,EQ,C'A')
OUTREC FIELDS=(30,08,72X)
OUTFIL FNAMES=OUT2,
INCLUDE=(07,1,CH,EQ,'B')
OUTREC FIELDS=(30,08,72X)
...
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=OUT1,
INCLUDE=(07,1,CH,EQ,C'A')
OUTREC FIELDS=(30,08,72X)
OUTFIL FNAMES=OUT2,
INCLUDE=(07,1,CH,EQ,'B')
OUTREC FIELDS=(30,08,72X)
When I run the JCL, I get this error:
OUTREC STATEMENT : DUPLICATE STATEMENT FOUND
Could anyone help me, please ?
Thks in advance
Code'd