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 / muttaiah
Mallikarjuna,
If you give sort=copy in step3. the format of o/p file is
rec1 - File1
rec2 - File1
Rec1 - File2
rec2 - File2
change the sort as:
sort fields=(4,4,ZD,A)
outrec fields=(1:1,3)
rec1 - File1
Rec1 - File2
rec2 - File1
rec2 - File2
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of dd * statement in jcl?
What are the 4 fields in dd statement?
Can an individual step be restricted from using all the jobs allowed cpu time?
What do you understand by the term notcat 2 – gs?
Explain the hierarchy levels in jcl?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
what are JCLLIB and STEPLIB in JCL?
A dd statement consists of 4 fields. Name them?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What are hierarchy levels in jcl?
what are the various stages of job processing?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
What is the function of dd name parameter with a 2 part structure; audit.report?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?