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 / rajesh
//SYSIN DD *
SORT FIELDS=COPY,
OUTREC FILEDS=(1,2,CH,A) --> WHATEVER U WANNT TO SORT
STOPAFT=100
//
hope this does..
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What parameter of the job statement is used to limit the cpu time consumed by the job?
what is “Cond= even” and “Cond=only”?
How can the disposition of sysout datasets be set for an entire jobstream?
How does jcl act on code(if you take a cobol program)?
List the various advantages of using jcl language?
Is there any command to check wether the ps file is in sorted order?
what is the compile process of cobol program expalin with code
Explain in DD statement what is the use of DCB parameter?
Where & How Do You Code Identifier In Jcl?
What is condition checking in jcl? Is this possible?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
What do you understand by jcl?
a dd statement has 2 types of parameters. Name them?
what sort card you will use to copy the data from one dataset to another dataset?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?