Wrete a JCL to compare two files and mached records move to
onc file & un mached rows wants to another file?
Answer Posted / rams
Read one file sequentially and load the other file in
table.For every record in the file search Table for the
match.
Tips - Load the small fine in table. If you load then in
ascending/descending order, you can use Binay search (
Search All ) which is faster than sequential search.
| Is This Answer Correct ? | 6 Yes | 10 No |
Post New Answer View All Answers
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Explain how can a jobs execution priority be modified?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
what is DSN parameter and DISP parameter is used for?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What is the use of disp parameter?
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.
Explain the job statement in jcl?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
whats the diff bw the evaluate also and and?
What does a disposition of (new,catlg,keep) for a dsn mean?
Explain the function of a dd statement?
how do you code a null statement?