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

Answer Posted / ayusman

First you have to join the two files with help of JOJNKEYS
in jcl sort . after that copy first 50 records by using
sort utility

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which parameter is used to check the syntax of a jcl without executing it?

796


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2164


Name what parameter directs the output of the job log dataset?

557


what are JCLLIB and STEPLIB in JCL?

671


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

824






Is acct parameter mandatory?

758


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

8667


What are the parameter we cannot use in procedure?

636


What is the function of a dd statement?

702


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

741


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1961


Can we use DISP=SHR in output file in JCL

951


How to execute 2nd and 4th steps among 5 steps in jcl proc?

747


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

843


Define concatenating?

663