How to fetch even records from one file to another file by
using ICETOOL in JCL?
Answer Posted / harsha
//STEP1 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=INPUT.DATA,DISP=SHR
//OUTDATA DD DSN=OUTPUT.DATA,DISP=(NEW,CATLG,DELETE)
.
.
.
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=OUTDATA,SAMPLE=2
THIS WILL COPY ALL EVEN RECORDS
-------------------------------------------
FOR ODD RECORDS
OUTFIL FNAMES=OUTDATA,STARTREC=1,SAMPLE=2
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are steplib and joblib?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Explain how can the attributes of one sms dataset be copied to another dataset?
What is the function of job statement in jcl?
is there any way to execute more than one proc in the same exec statement at the same time..?
what is the use of JCL?
what is the use of IEBGENER utility?
Is condition checking possible in jcl?
i want to store 20 digits . how will u do it in cobol ?
How can values be passed from the job stream to an executable program?
How does jcl act on a cobol code?
what is “Cond= even” and “Cond=only”?
What is NOTCAT ?
which utility is used to run a cobol-db2 program?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?