What is the use of INCLUDE statement in JCL?
Pavan reddy
Printable View
What is the use of INCLUDE statement in JCL?
Pavan reddy
Hi
this is Radhika...
include is use to extract the selected fields from input
dataset and copy to ouput dataset using sort utility.
//SORTTA EXEC
PGM=SORT
//SYSIN DD
*
SORT FIELDS=COPY
INCLUDE COND=
(52,9,CH,EQ,C’123456789’)
/*
//SORTIN DD DSN=…,DISP=SHR
//SORTOUT DD DSN=…
//SYSOUT DD
SYSOUT=*
//
The INCLUDE control statement is used to establish
Selection criteria for the records to be included in the
Output dataset.
Regards,
radhika
And for additional information,you can use
OMIT COND=(34,3,CH,EQ,C'MMM')
to omit ..
INREC FIELDS=(1,50,75,25,125,50)
OUTREC FIELDS=(1,50,75,25,125,50)