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
What is notcat 2 - gs?
What is multithreading in jcl?
How can values be passed from the job stream to an executable program?
Explain the jcl exec statement?
Explain in DD statement what is the use of DCB parameter?
when does a dataset go uncataloged?
In job processing, what happens in conversion stage?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
What does a disposition of (MOD,DELETE,DELETE) mean ?
How is a type of file defined in the jcl that executes the cobol program?
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?
How jcl is used for testing batch programs?
What is the function of //cntl statement?
when can a job time-out occur? How to overcome that?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?