How to fetch even records from one file to another file by
using ICETOOL in JCL?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rajvee
Step01 exec pgm=sort
.
.
.
sysin dd *
sort fields=copy
outfil fnames(out1,out2),split
first rec will be in out1 file, second in out2,third in
out1 and so on..
so out2 will have even number recs.
| Is This Answer Correct ? | 4 Yes | 4 No |
i just need the first and last record from a sequencial file?how
How do you designate a comment in JCL?
What is the meaning of keyword in JCL? What is its opposite?
What is the purpose of dd dummy statement?
which are the parameters mandatory in job card ?
whats SOC7?
A STEP has more than 1 file as INPUT. And we have to put all these records int 1 output file. How to do ? //InputF DD DSN=ID.File1 DSN=ID.File2 DSN=ID.File3
Please give me the coding for converting VB to FB and FB to VB
//step#3 exec pgm = hkbc762 what is wrong with the syntax?
How to identify where file is empty or not? How many ways are there to identifying?
What 3 guidelines do we have to follow when concatenating DD statements?
When a dataset is UNCATALOGED in a JOBSTEP, how to get its UNIT and VOL in JCL to refer in subsequent steps ?