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
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
what are the various stages of job processing?
What are the parameter we cannot use in procedure?
Explain about ISPF/TSO Commands
What parameter directs the output of the job log dataset?
what is the purpose of coding notify parameter in job statement?
What is the use of disp parameter?
how can you check if a file is empty using jcl?
How to run cobol program using jcl?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
How can unused space allocation be returned to the system when a dataset is closed?
Explain how can return codes be tested before execution of a job step?
How does jcl act on code(if you take a cobol program)?
Explain the job statement in jcl?