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


Please Help Members By Posting Answers For Below Questions

Why include statement is used in a jcl?

687


What parameter of the job statement is used to limit the cpu time consumed by the job?

834


Can I share my data with other jobs? How?

665


Explain the jcl exec statement?

645


what is use of dsn parameter in dd statement?

666






What are s0c1, s0c4, s0c5, s0c7 and socb?

697


Is it possible to code instream data in a PROC?

748


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?

643


What is the function of a dd statement?

702


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

771


how to do automated restart when a job abends?

841


What is use of restart and how to use it?

764


What are the 4 fields in dd statement?

739


How does jcl act on code(if you take a cobol program)?

705


What is the function of //jcllib statement?

802