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 |
Explain how can values be passed from the job stream to an executable program?
describe the dd statement,its meaning,syntax and keywords?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
i want to see the jobs in skeleton queue in diff region. (eg. 7 regions are running means , i want to see all the jobs in 7 regions which are in skel queue using 1 command)
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
how to resolve soc-7 ? please tell me
I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?
Can we use empty VSAM as input?
What is maximum length of block size?
5 Answers Cap Gemini, Kanbay, TCS,
What are SD37, SB37, SE37 abends?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
What is GDG and what is the maximum limit of versions that can be created?