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 difference between the positional and keyword parameters? Give examples.
How to pass data to a program that is coded in an exec statement?
what is DSN in JCL and what are the parameters to declare the DSN?
How to submit jcl through a cobol program?
Which dd parameters are required?
Explain how can an in-stream dataset be terminated?
What is the function of dd name parameter with a 2 part structure; audit.report?
How gdg are concatenated?
Explain how can the attributes of one sms dataset be copied to another dataset?
In job processing, what happens in conversion stage?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
Explain the function of //jcllib statement?
Describe the various parameters utilized in the creation of a gdg?
What is condition checking in jcl? Is this possible?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?