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
what is DD statement is used in JCL?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
What is the function of the dd dcb keyword?
What are the utility programs in jcl?
How can a jobs execution priority be modified?
Why include statement is used in a jcl?
Mention the types of job control statements?
For what purpose steplib and joblib are used ?
How can return codes be tested before execution of a job step?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Is it possible to define dd statements as you want?
how can the same proc be re-used and called by many jobs?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?