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 |
Give the syntax of job specifying jcl statement.
How does -818 sql error occur? Why does it happen and what can be done to overcome this error code?
Explain the job statement in jcl?
How can a jobs execution priority be modified?
what is DD statement is used in JCL?
hi in one of the interview one asked me how to submit a job from cobol?as well as how to submit a jcl from CICS? can u pls any one tell me..
Matching Logic in Jcl not in cobol.Could any one please answer this question
1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?
Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?
How can unused space allocation be returned to the system when a dataset is closed?
how to set dependancy for jobs?
what is full form of AIX