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
what is the compile process of cobol program expalin with code
Is it possible to left uncode disp? If yes, how?
what is use of disp parameter in dd statement?
Is it possible to left uncode disp?
What is the difference between run mode and addressing mode?
List the different jcl statements that are not permitted in the procedures?
i want to store 20 digits . how will u do it in cobol ?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
What dd statement is used to supply the name of a dataset?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
How to submit a jcl from cics?
which utility is used to sort a file in jcl?
Explain the hierarchy levels in jcl?
Explain about LMQUERY�give a dialog information about a data set
How does jcl act on a cobol code?