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


Please Help Members By Posting Answers For Below Questions

What are hierarchy levels in jcl?

958


What is job control language?

611


What is the significance of addrspc parameter in exec statement?

731


What is NOTCAT ?

740


How can the attributes of one sms dataset be copied to another dataset?

859






Explain about LMQUERY�give a dialog information about a data set

904


what is a jcl?

689


Describe the various parameters utilized in the creation of a gdg?

684


What is the format of comment statement?

669


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

612


What is the motivation behind coding class parameter in job statement?

690


How gdg are concatenated?

672


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

720


What is the difference between run mode and addressing mode?

636


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1801