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
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
how you will the direct the data to spool using sysout option?
What is the difference between run mode and addressing mode?
How is a type of file defined in the jcl that executes the cobol program?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Explain how can the submitting users racf authority be overridden in a job stream?
is there any way to execute more than one proc in the same exec statement at the same time..?
How does the jcl specify the job to os?
a dd statement has 2 types of parameters. Name them?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What is the significance of addrspc parameter in exec statement?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
what is the purpose of coding notify parameter in job statement?