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
Are there any set of rules for the names of the steps used in a job?
Is it possible to left uncode disp? If yes, how?
What do you understand by the terms: joblib and steplib?
What is the purpose of dd?
Are there any set of rules for the names of the steps used in a job? What are they?
What is condition checking in jcl? Is this possible?
How jcl is used for testing batch programs?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
how you will the direct the data to spool using sysout option?
in ways data can be passed to a COBOL program from JCL?
define cond parameter in jcl?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What are the 4 fields in dd statement?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
How do you submit a job for execution?