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 can the disposition of sysout datasets be set for an entire jobstream?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What is job control language?
what is the use of IEBGENER utility?
What do you know about jcl?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How is the record format of an output dataset specified?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
what is a jcl?
What does a disposition of (MOD,DELETE,DELETE) mean ?
Explain about LMFREE�free data set from its association with data ID
What is the function of the steplib dd statement?
Explain how can an in-stream dataset be terminated?
What is the function of job statement in jcl?