File1 has 100 records and file2 has 200 records i want to
copy 50 records which r in both file into file3

Answer Posted / kamaldeep

We can't use SUM FIELDS=NONE,XSUM as mentioned by Harsha.
if we merge 2 files then it may be the case that input file already has duplicate records, so it will not give required output.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1063


What is jcl in mainframe?

933


Is it possible to code instream data in a PROC?

983


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

917


what is use of dcb parameter in dd statement?

1009


What are steplib and joblib?

903


what is the JCL statement consists of?

904


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

985


Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:

3737


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?

850


Explain the purpose of the dd keylen parameter?

885


What is use of restart and how to use it?

1028


Which statement is used to identify the private libraries in job?

910


Which dd parameters are required?

899


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1142