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
What are hierarchy levels in jcl?
What is job control language?
What is the significance of addrspc parameter in exec statement?
What is NOTCAT ?
How can the attributes of one sms dataset be copied to another dataset?
Explain about LMQUERY�give a dialog information about a data set
what is a jcl?
Describe the various parameters utilized in the creation of a gdg?
What is the format of comment statement?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What is the motivation behind coding class parameter in job statement?
How gdg are concatenated?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
What is the difference between run mode and addressing mode?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?