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

i want to store 20 digits . how will u do it in cobol ?

858


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

930


What are s0c1, s0c4, s0c5, s0c7 and socb?

697


write a jcl to execute a job by 7:00 am on jan 20,1986?

695


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

856






List in order the hierarchical levels of jcl?

664


Why include statement is used in a jcl?

687


Explain how can the submitting users racf authority be overridden in a job stream?

668


I need exexution process for JCL programs

1847


what happens in conversion stage in job processing?

724


Define concatenating?

663


What is job control language?

605


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

711


Where can program checkpoints be stored for use in a restart?

843


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

651