Write a JCL by using the below requirement:
File1 =1, File2 =11 and output needs to come as File3 =111?
Answer Posted / mdv
Step 1.
Add SEQNUM for both the files @ positions 3 to 8 and 2 to 7
respectively.
Step 2.
Join based on key and reformat as needed.
// SYSIN DD *
JOINKEYS FILE=F1,FIELDS=(3,6,A)
JOINKEYS FILE=F2,FIELDS=(2,6,A)
REFORMAT FIELDS=(F1:1,2,F2:1,1)
SORT FIELDS=COPY
/*
Note: Not tested.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the function of the dd dcb keyword?
How can an in-stream dataset be terminated?
Explain the function of the steplib dd statement?
What is catelog procedure and how many catelog procedure to use in one job?
how you will the direct the data to spool using sysout option?
Differentiate between the joblib and the steplib statements?
How can a jobs execution priority be modified?
Explain the job statement in jcl?
What do you understand by jcl?
Explain how can return codes be tested before execution of a job step?
Why include statement is used in a jcl?
what operation is performed by job statement?
Can I share my data with other jobs? How?
How jcl work to handle various input output file operations?
How can the attributes of one sms dataset be copied to another dataset?