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
How to do automated restart when a job abend?
whats the diff bw the evaluate also and and?
I need exexution process for JCL programs
Differentiate between addressing mode and run mode.
Explain about LMFREE�free data set from its association with data ID
State the uses of syspring, sysin, sort fields, sum fields and dummy.
what happens in conversion stage in job processing?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
Where & How Do You Code Identifier In Jcl?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Is acct parameter mandatory?
How do you overcome this limitation ?
What is the use of symbol // in jcl?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
How can a fb file convert to vb file using sort program?