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

Where & How Do You Code Identifier In Jcl?

936


How gdg are concatenated?

852


What is the function of a dd statement?

919


Is it possible to define dd statements as you want?

854


what are the types of abends that occur on job failure? And explain the possible causes of these

1331


Matching Logic in Jcl not in cobol.Could any one please answer this question

3914


what are JCLLIB and STEPLIB in JCL?

883


What is timing concept in mainframe?

1900


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2191


Explain the function of the steplib dd statement?

837


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

846


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

1002


how do you access an uncataloged dataset in a jcl?

1246


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

1204


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

2207