We have two PS files,want to compare those files and put
the duplicate records in one file.
Input file 1 contains(1,2,4,9,10)
Input file 2 contains (1,4,5,11,12,14,16).
Help me with jcl.
Answer Posted / shriram supalwar, dharmabad
//jobcard
//step1 exec pgm=iebgener
//sysprint dd sysout=*
//sysut1 dd dsn=proj.test.file1,disp=shr
// dd dsn=proj.test.file2,disp=shr
//sysut2 dd dsn=proj.output,disp=shr
//sysin dd dummy
//if (step1.rc eq 0) then
//step2 exec pgm=sort
//sysprint dd sysout=*
//sortin dd dsn=proj.output,disp=shr
//sortout dd dsn=proj.sortout,disp=shr
//sortxsum dd dsn=proj.duplicate,disp=shr
//sysin dd *
sort fields=(1,5,ch,a)
sum fields=none,xsum
/*
Now, all these records are copied to proj.output
and out of those records the duplicate records are copied to
proj.duplicate
Correct me if i am wrong
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How can a jobs execution priority be modified?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Is it possible to left uncode disp? If yes, how?
Suppose I have five jobs to do. But I want to hold one?
what operation is performed by job statement?
What do you understand by jcl?
How do you overcome this limitation ?
What is one line to pass PARM from JCL to COBOL?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
what are the various stages of job processing?
when can a job time-out occur? How to overcome that?
define cond parameter in jcl?
What is the function of the dd avgrec keyword in sms datasets?
how do you access an uncataloged dataset in a jcl?
what happens in conversion stage in job processing?