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 function of //cntl statement?
What is concatenating?
how you can direct the data to spool using SYSOUT option?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
What statement can be used to send data to another mvs jes3 node?
How can values be passed from the job stream to an executable program?
What are steplib and joblib? What for they are used?
how can you check if a file is empty using jcl?
What is jcl in mainframe?
Where can program checkpoints be stored for use in a restart?
what is use of space parameter in dd statement?
What is the purpose of dd * statement in jcl?
Differentiate between the joblib and the steplib statements?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
Explain how can return codes be tested before execution of a job step?