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 / sivakumar sekharannair
Kavya's answer is correct.
i used the following control card
//SYSIN DD *
SORT FIELDS=(1,3,CH,A),
STOPAFT=8
Input file contained the following records
IMSDEVELOPER CSAA
IMSPRODSUPPORTXEROX
IMSTESTER EMDAC
IMSDEVELOPER CSAA
CICPRODSUPPORTXEROX
IMSTESTER EMDAC
The output i got was
CICPRODSUPPORTXEROX
DB2PRODSUPPORTEMDAC
IMSDEVELOPER XEROX
IMSDEVELOPER CSAA
IMSDEVELOPER CSAA
IMSPRODSUPPORTXEROX
IMSTESTER EMDAC
IMSTESTER EMDAC
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
when does a dataset go uncataloged?
Which statement is used to identify the private libraries in job?
how to run batch program without jcl?
What is the difference between the positional and keyword parameters? Give examples.
what is “Cond= even” and “Cond=only”?
Why include statement is used in a jcl?
how JCL works?
What is the difference between run mode and addressing mode?
Explain how can a stopped job be started again?
How does jcl act on a cobol code?
how you can access an uncataloged dataset in a JCL?
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
How jcl is used for testing batch programs?
What is the purpose of dd * statement in jcl?
Where can program checkpoints be stored for use in a restart?