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 |
wht r different types of sorts ?
I have a sequential file in which there are 50 records. Now I want to copy all the 50 records in the reverse order into a new file? The last record in the original file should be the first record in the new file. How can I do it?
How do you create a temporary dataset? Where will you use them?
I've one sequential file, That file contains millians of Junk & CHAR recoreds example File 1 ,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO..........., ,...,..,. My questions is : I want omit the 44th posstion to 4 CHAR (WIPRO) remaining things I want output file (including Junk CHAR also)... How can we slove this problem & give me a syntax. Please provide the result as soon as possible.
How to create delta file using JCL
Can we use two or more SYSPUNCH DD statements in a JCL for multiple unload (SYSREC00 & SYSREC01)..?
can a job be submitted through jcl only? is there another way to submit a job?
Matching Logic in Jcl not in cobol.Could any one please answer this question
How do you submit a JCL under CICS environment ?
what is “Cond= even” and “Cond=only”?
How to see the COMP3 value(packd decimal)
hi guys what r the diff types of procs in jcl? bye ramya
4 Answers ACS, Keane India Ltd,