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 happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
what is a jcl?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What does a disposition of (new,catlg,keep) for a dsn mean?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Why block size is multiple of lrecl in jcl?
In job processing, what happens in execution stage?
Mention the types of job control statements?
Explain the purpose of the dd keylen parameter?
What are the 4 fields in dd statement?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
What is multithreading in jcl?
What is catelog procedure and how many catelog procedure to use in one job?