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
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
How to pass the parameter in parm using linkage section ? (syntax)?
What is concatenating?
How would you understand error(execution phase)?
Explain the function of //cntl statement?
which utility is used to run a cobol-db2 program?
what is DSN parameter and DISP parameter is used for?
What are the 2 types of parameters in dd statement?
Why include statement is used in a jcl?
Explain how can the submitting users racf authority be overridden in a job stream?
how to run batch program without jcl?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What is the purpose of dd?
which parameter is used to check the syntax of a jcl without executing it?
How do you create a temporary dataset?