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 / rajesh
//SYSIN DD *
SORT FIELDS=COPY,
OUTREC FILEDS=(1,2,CH,A) --> WHATEVER U WANNT TO SORT
STOPAFT=100
//
hope this does..
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain dfsort utility?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
What is the difference between the positional and keyword parameters? Give examples.
Explain how can a jobs execution priority be modified?
What is the function of //cntl statement?
what happens in execution stage in job processing?
Where & How Do You Code Identifier In Jcl?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
For what purpose steplib and joblib are used ?
What is the use of disp parameter?
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
what is the difference between JES3 and JES2?
What is use of restart and how to use it?