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
Which dd parameters are required?
What is job control language?
how you will the direct the data to spool using sysout option?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
Differentiate between the joblib and the steplib statements?
What does a disposition of (new,catlg,keep) for a dsn mean?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
How to do automated restart when a job abend?
what JCL Procedures?
How does the jcl specify the job to os?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
How can the disposition of sysout datasets be set for an entire jobstream?
What are the rules employed while naming the steps in a job?
In sms datasets, what is the function of the dd mgmtclas keyword?