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 / kalpesh
THIS IS FOR COPYING FIRST 500 RECORDS
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) COPYING FIRST 500 RECORDS
SKIP(500)
/*
THIS IS FOR COPY next 500 RECORDS
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
skip(500) -
COUNT(500) COPYING FIRST 500 RECORDS
/*
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the function of //cntl statement?
What is catelog procedure and how many catelog procedure to use in one job?
Which statement is used to identify the private libraries in job?
What is the function of the steplib dd statement?
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
What are the parameters that are used in creating a gdg?
Suppose I have five jobs to do. But I want to hold one?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
how you can access an uncataloged dataset in a JCL?
What does a disposition of (MOD,DELETE,DELETE) mean ?
What do you understand by jcl?
Are there any set of rules for the names of the steps used in a job? What are they?
What is the difference between run mode and addressing mode?