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
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
What are the rules employed while naming the steps in a job?
What do you understand by jcl?
What is the purpose of dd dummy statement?
Explain the function of dd disp parameter?
How can values be passed from the job stream to an executable program?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
Describe the various parameters utilized in the creation of a gdg?
Explain how can the attributes of one sms dataset be copied to another dataset?
Is it possible to left uncode disp? If yes, how?
Which dd parameters are required?
How to pass the parameter in parm using linkage section ? (syntax)?
What is Cataloged Procedures?
what is use of space parameter in dd statement?
What are the 4 fields in dd statement?