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
Explain the purpose of the dd keylen parameter?
A dd statement consists of 4 fields. Name them?
what is the use of JCL?
What is the function of //jcllib statement?
Explain how can return codes be tested before execution of a job step?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Is automatic restart possible in jcl? If yes, how?
How does the jcl specify the job to os?
How to pass the parameter in parm using linkage section ? (syntax)?
What is the purpose of the dd keylen parameter?
what is “Cond= even” and “Cond=only”?
How do you create a temporary dataset?
Suppose I have five jobs to do. But I want to hold one?
Explain dd statement in jcl?
Explain the function of job statement in jcl?