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??
Answers were Sorted based on User's Feedback
Answer / sudeep
I think the answer written by Kavya is not fully correct.It
will cause the sort to stop after first 200 records in the
input file are sorted.But we want the input file to be
sorted completely.and first 200 records to be placed in
output file.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / 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 |
Answer / 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 |
If Name is NOT given for a JOB statement, then will it give error or installation will supply it for the JOB ?
On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?
Can we Execute a job without specifying Job Name in the Job Card?
List the various advantages of using jcl language?
How to find in aparticular step how many versions a paricular gdg base have?
How many positional parameters are there in job statement?
1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?
how to resolve sb37,sd37 se37 abends
How can I override a dsn that is contained in a proc called by another proc? I need to do the override in the calling JCL.
How to pass the temp dataset form one JOB step to another?
Define concatenating?
what is the purpose of SYSOUT parameter in the DD statement?