I have a file in which I have 20 records. I want my first
record to go into file 1 and second record to go in second
file. I want to copy the alternate records like this in the
two output files. How can I do this using JCL?
Answer Posted / bala
we can add seqnum to each record in the file using SORT
command and copy then use INCLUDE & EXCLUDE COND of SORT
for this.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Is it possible to code instream data in a PROC?
What parameter of the job statement is used to limit the cpu time consumed by the job?
Explain the purpose of dd dummy statement?
What is the use of disp parameter?
Differentiate between addressing mode and run mode.
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How dummy is used in jcl?
What is the purpose of dd * statement in jcl?
Explain the function of //jcllib statement?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
What are the parameter we cannot use in procedure?
what is the purpose of coding notify parameter in job statement?
Explain how can values be passed from the job stream to an executable program?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you