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 / bachee
//STEP1 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SORTOUT DD DSN=TEST.SAMPLE.OUTPUT.VIN,DISP=SHR
//SORTIN DD DSN=TEST.SAMPLE.INPUT.VIN,DISP=SHR
//SYSIN DD *
SORT FIELDS=( , ,CH,A)
ENDREC=200
//
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Explain about LMQUERY�give a dialog information about a data set
what is the use of JCL?
how would you create a temporary dataset? And where will you use them?
how can you check if a file is empty using jcl?
how you can direct the data to spool using SYSOUT option?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
What is the purpose of dd?
What are steplib and joblib?
Explain the function of dd disp parameter?
What does a disposition of (new,catlg,keep) for a dsn mean?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Is there any command to check wether the ps file is in sorted order?
Explain the function of //cntl statement?
What is the function of //cntl statement?
what happens in execution stage in job processing?