Wrete a JCL to compare two files and mached records move to
onc file & un mached rows wants to another file?
Answer Posted / kavya
It can be done using icetool.
//STEP001 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=INPUT.FILE1,
// DISP=SHR
// DD DSN=INPUT.FILE2,
// DISP=SHR
//NODUPES DD DSN=OUTPUT.NODUP,
// DISP=SHR
//DUPES DD DSN=OUTPUT.DUP,
// DISP=SHR
//TOOLIN DD *
SELECT FROM(SORTIN) TO(NODUPES) -
ON(x,y,CH) NODUPS
SELECT FROM(SORTIN) TO(DUPES) -
ON(x,y,CH) ALLDUPS
Is This Answer Correct ? | 91 Yes | 27 No |
Post New Answer View All Answers
Why include statement is used in a jcl?
What parameter of the job statement is used to limit the cpu time consumed by the job?
Can I share my data with other jobs? How?
Explain the jcl exec statement?
what is use of dsn parameter in dd statement?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Is it possible to code instream data in a PROC?
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?
What is the function of a dd statement?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
how to do automated restart when a job abends?
What is use of restart and how to use it?
What are the 4 fields in dd statement?
How does jcl act on code(if you take a cobol program)?
What is the function of //jcllib statement?