oza017.myorg.emp has 100 records ,oza018.myorg.staff has
200 records but 50 are the common records in both files
copy all the common records into oza017.myorg.xyz dataset
Answer Posted / challa srinivas
//SORT1 EXEC PGM=SORT
//SORTJNF1 DD DSN = oza018.myorg.staff
DSN = oza017.myorg.emp
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DSN = oza017.myorg.xyz
JOINKEYS FILES=F1,
JOINKEYS FILES=F2,
REFORMAT FIELDS
SORT FIELDS=COPY
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How can unused space allocation be returned to the system when a dataset is closed?
Is it possible to define dd statements as you want?
What is use of restart and how to use it?
What is the purpose of dd?
Are there any set of rules for the names of the steps used in a job? What are they?
How can a fb file convert to vb file using sort program?
how you can access an uncataloged dataset in a JCL?
How does the jcl specify the job to os?
what is DD statement is used in JCL?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What is timing concept in mainframe?
What is jcl in mainframe?
How to override loadlib?
Why include statement is used in a jcl?