I have two files each contains 10 records. I would like to
copy both files into one output file but in alternate
sequence. for e.g. first record from file1 then record 2
from file2.....
Answer Posted / mallikharjuna
it will be processed in 3steps
if the data is AAA
AAA
BBB
CCC
FILE2
DDD
EEE
FFF
LIKE 10 RECS
step1:
srt fields=copy
outrec fields=(1:1,3,4:seqnum,4,ZD,START=1,INCR=2 )
STEP:2
step2:
srt fields=copy
outrec fields=(1:1,3,4:seqnum,4,ZD,START=2,INCR=2 )
STEP=3 SORT FIELDS = COPY
OUTREC FIELDS =(1:1,3)
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
how you can direct the data to spool using SYSOUT option?
Explain the purpose of dd dummy statement?
when can a job time-out occur? How to overcome that?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
I need exexution process for JCL programs
Is automatic restart possible in jcl?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
What is the difference between run mode and addressing mode?
how to run batch program without jcl?
In job processing, what happens in execution stage?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What does a disposition of (MOD,DELETE,DELETE) mean ?
what is the compile process of cobol program expalin with code