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 / abhusha
Use join keys
//STEP01 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTJNF1 DD DSN=INPUT.FILE.ONE,DISP=SHR
//SORTJNF2 DD DSN=INPUT.FILE.TWO,DISP=SHR
//SORTOUT DD DSN=OUTPUT.FILE,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(100,200),RLSE),
// DCB=(RECFM=FB,BLKSIZE=0,LRECL=80)
//SYSIN DD *
SORT FIELDS=COPY
JOINKEYS FILES=F1,FIELDS=(1,10,A)
JOINKEYS FILES=F2,FIELDS=(1,10,A)
REFORMAT FIELDS=(F1:1,71,F2:1,9)
/*
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is a type of file defined in the jcl that executes the cobol program?
In sms datasets, what is the function of the dd avgrec keyword?
Are there any set of rules for the names of the steps used in a job?
How can a jobs execution priority be modified?
what is use of dsn parameter in dd statement?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Are there any set of rules for the names of the steps used in a job? What are they?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
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 utility programs in jcl?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
List the different components of jcl statement?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
which parameter is use to declare the name of dataset in dd statement?
what are JCLLIB and STEPLIB in JCL?