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
What does a disposition of (MOD,DELETE,DELETE) mean ?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
What are some jcl statements that are not allowed in procedures?
Does jcl support automatic restart?
write a jcl to execute a job by 7:00 am on jan 20,1986?
List in order the hierarchical levels of jcl?
How can a jobs execution priority be modified?
What is the function of the steplib dd statement?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Is condition checking possible in jcl?
What is the maximum length of a single line of jcl?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
How can a fb file convert to vb file using sort program?