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 / saurabh gupta
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) THIS IS FOR COPY FIRST 100 RECORDS
SKIP(500) IF WE WANT TO COPY ONLY 501 TO 1000 RECORDS
/*
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
Is their any limit for data sets?
What are steplib and joblib?
Where can program checkpoints be stored for use in a restart?
In sms datasets, what is the function of the dd avgrec keyword?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
how you can access an uncataloged dataset in a JCL?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Explain how can the submitting users racf authority be overridden in a job stream?
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) ?
Give the syntax of job specifying jcl statement.
Where & How Do You Code Identifier In Jcl?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
Is it possible to code instream data in a PROC?