-
Junior Member
Jcl
What is the use of INCLUDE statement in JCL?
Pavan reddy
-
Junior Member
Re: Jcl
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
-
Junior Member
Re: Jcl
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules