a input file contains 1000 records, how to move the first
500 record into one out put file and how to move to second
500 records to anothere output file
Answer Posted / nishant
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) COPYING FIRST 500 RECORDS
SKIP(500)
REPRO -
INFILE(DD1) -
OUTFILE(DD3) -
skip(500) -
COUNT(500) COPYING NEXT 500 RECORDS
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the function of the steplib dd statement?
define cond parameter in jcl?
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.
how you can direct the data to spool using SYSOUT option?
What do you understand by jcl?
What dd statement is used to supply the name of a dataset?
I need exexution process for JCL programs
How jcl work to handle various input output file operations?
How to override loadlib?
What are the difference between jcl and jes?
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?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
what are the various stages of job processing?
in ways data can be passed to a COBOL program from JCL?
Explain the hierarchy levels in jcl?