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
i want to store 20 digits . how will u do it in cobol ?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What are s0c1, s0c4, s0c5, s0c7 and socb?
write a jcl to execute a job by 7:00 am on jan 20,1986?
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
List in order the hierarchical levels of jcl?
Why include statement is used in a jcl?
Explain how can the submitting users racf authority be overridden in a job stream?
I need exexution process for JCL programs
what happens in conversion stage in job processing?
Define concatenating?
What is job control language?
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?
Where can program checkpoints be stored for use in a restart?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?