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
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
What is multithreading in jcl?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
How does the jcl specify the job to os?
what is use of disp parameter in dd statement?
What parameter of the job statement is used to limit the cpu time consumed by the job?
what is use of space parameter in dd statement?
Differentiate between the joblib and the steplib statements?
What parameter directs the output of the job log dataset?
What are the parameters that are used in creating a gdg?
How to submit a jcl from cics?
how can the same proc be re-used and called by many jobs?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
how you can direct the data to spool using SYSOUT option?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one