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 / satish
hi to all
the example is useful to our requirement,example is i have
some records and i sort it and first 5 records to be placed
in o/p file
//STEP1 EXEC PGM=SORT
//SORTIN DD *
b
c
d
e
f
g
h
i
j
k
l
/*
//OUT DD dsn=output file*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,1,CH,D)
outfil fnames=out,endrec=5
/*
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
in ways data can be passed to a COBOL program from JCL?
Are there any set of rules for the names of the steps used in a job?
Which dd parameters are required?
when can a job time-out occur? How to overcome that?
What is the significance of addrspc parameter in the exec statement?
What is the function of the dd avgrec keyword in sms datasets?
what is the purpose of coding class parameter in job statement?
Is automatic restart possible in jcl? If yes, how?
Explain how can the attributes of one sms dataset be copied to another dataset?
Define concatenating?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
Can I share my data with other jobs? How?
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?
What are the parameter we cannot use in procedure?
What parameter of the job statement is used to limit the cpu time consumed by the job?