Wrete a JCL to compare two files and mached records move to
onc file & un mached rows wants to another file?
Answer Posted / sachin borase
//JOBNAME
//S1 EXEC PGM=SORT
//SORTNJF1 DD DSN=FILE1
//SORTNJF2 DD DSN=FILE2
//SORTOUT DD DSN=O/P1
//SORTOF1 DD DSN =O/P2
//SYSIN DD *
JOIN KEYS = 01,FIELDS=(1,10,CH)
JOIN KEYS = 02,FIELDS=(1,11,CH)
REFORMAT FIELDS = (F1:1,80,F2:1,80)
SORT FIELDS = COPY
JOIN UNPAIRED,F1,F2
/*
IF YOU WANT EXACT SYSNTAX THEN TELL ME I WILL PROVIDE YOU.
| Is This Answer Correct ? | 62 Yes | 29 No |
Post New Answer View All Answers
Give the syntax of job specifying jcl statement.
Is it possible to left uncode disp? If yes, how?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
I need exexution process for JCL programs
How can the submitting users racf authority be overridden in a job stream?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
What is the function of the steplib dd statement?
what is “Cond= even” and “Cond=only”?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
What is the function of //jcllib statement?
what is JCL?
What are the parameters that are used in creating a gdg?
How can a fb file convert to vb file using sort program?
How does the jcl specify the job to os?
Explain the jcl exec statement?