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


Please Help Members By Posting Answers For Below Questions

What is the function of //cntl statement?

828


What is concatenating?

633


how you can direct the data to spool using SYSOUT option?

920


Name the parameters which can be used to limit the number of records written to a sysout dataset?

648


What statement can be used to send data to another mvs jes3 node?

821






How can values be passed from the job stream to an executable program?

867


What are steplib and joblib? What for they are used?

687


how can you check if a file is empty using jcl?

809


What is jcl in mainframe?

687


Where can program checkpoints be stored for use in a restart?

843


what is use of space parameter in dd statement?

750


What is the purpose of dd * statement in jcl?

794


Differentiate between the joblib and the steplib statements?

855


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

668


Explain how can return codes be tested before execution of a job step?

819