File1 has 100 records and file2 has 200 records i want to
copy 50 records which r in both file into file3
Answer Posted / harsha
Give both input files in concatenation to SORTIN.
SORT FIELDS=NONE,XSUM
This will copy all duplicate records from both files to
SORTXSUM dataset.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
what is the difference between JES3 and JES2?
what sort card you will use to copy the data from one dataset to another dataset?
Suppose I have five jobs to do. But I want to hold one?
Mention the types of job control statements?
what JCL Procedures?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What parameter of the job statement is used to limit the cpu time consumed by the job?
what is the purpose of coding class parameter in job statement?
how can the same proc be re-used and called by many jobs?
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 is the use of IEBGENER utility?
What dd statement is used to supply the name of a dataset?
How to submit jcl through a cobol program?
When space is allocated for an output dataset, what units can be used?
what is use of dsn parameter in dd statement?