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 motivation behind coding class parameter in job statement?
How to pass the parameter in parm using linkage section ? (syntax)?
how you will the direct the data to spool using sysout option?
For what purpose steplib and joblib are used ?
How does jcl specify the job to the operating system?
Is their any limit for data sets?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Is it possible to left uncode disp? If yes, how?
What is condition checking in jcl? Is this possible?
when does a dataset go uncataloged?
Name a few IBM utility programs, and explain its function.
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How can a stopped job be started again?
What is the function of //jcllib statement?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?