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
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
How can an in-stream dataset be terminated?
what are the types of abends that occur on job failure? And explain the possible causes of these
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
Can I share my data with other jobs? How?
What does a disposition of (MOD,DELETE,DELETE) mean ?
What are hierarchy levels in jcl?
Explain about LMQUERY�give a dialog information about a data set
Is it possible to left uncode disp? If yes, how?
I need exexution process for JCL programs
How can values be passed from the job stream to an executable program?
What do you know about jcl?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
What is the purpose of dd?
Mention the types of job control statements?