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 function of dd name parameter with a 2 part structure; audit.report?
How jcl work to handle various input output file operations?
How do you create a temporary dataset?
What is the function of a dd statement?
How can the attributes of one sms dataset be copied to another dataset?
what is DSN in JCL and what are the parameters to declare the DSN?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
A dd statement consists of 4 fields. Name them?
What do you understand by the terms: joblib and steplib?
How to alter the parameters for the existing gdg?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
How can unused space allocation be returned to the system when a dataset is closed?
write a jcl to execute a job by 7:00 am on jan 20,1986?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What does a disposition of (MOD,DELETE,DELETE) mean ?