i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??
Answer Posted / felix
sorry. my previous answer is wrong.
use the following coding in JCL.
First u should sort the file using sort pgm. enter the
sorted file path in input data set.
//SYSIN DD*
REPRO
INDATASET(WRITE THE INPUT PATH)
OUTDATASET(WRITE THE OUTPUT PATH)
COUNT(200)
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
List in order the hierarchical levels of jcl?
what is the purpose of coding class parameter in job statement?
How dummy is used in jcl?
What is the function of the dd mgmtclas keyword in sms datasets?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
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.
Explain dd statement in jcl?
Explain the purpose of dd * statement in jcl?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
Brief description of inline procedure of jcl.
when can a job time-out occur? How to overcome that?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
how to compare two datasets without using superce because output is limited to 133 bytes
What parameter directs the output of the job log dataset?
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?