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 / felix
sorry. my previous answer is wrong.
use the following coding in JCL.
First u should sort the file using sort pgm. enter the
sorted file path in input data set.
//SYSIN DD*
REPRO
INDATASET(WRITE THE INPUT PATH)
OUTDATASET(WRITE THE OUTPUT PATH)
COUNT(200)
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Is condition checking possible in jcl?
How can the disposition of sysout datasets be set for an entire jobstream?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
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?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
Explain how can an in-stream dataset be terminated?
Explain how can values be passed from the job stream to an executable program?
What are hierarchy levels in jcl?
what are the various stages of job processing?
What are the utility programs in jcl?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.