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 / chinmay
//job1 job 65493,jena,class=a prty=9
//step1 exec pgm=sort
//sysprint dd sysout=*
//indd dd dsn=file1.cob, disp= shr
//outdd dd dsn=file2.cob, disp=(new,catlg,delete)
// unit=sysda,space=(cyl,4,2),rlse)
//sysin dd *
sort fields=(2,4,ch,a)
/*
//step2 exec pgm=idcams
//sysprint dd sysout=*
//sysin dd *
repro -
infile(indd)
outfile(outdd)
count(200)
/*
//
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What parameter of the job statement is used to limit the cpu time consumed by the job?
What is job control language?
what is the purpose of coding class parameter in job statement?
Explain the function of the dd dcb keyword?
What statement can be used to send data to another mvs jes3 node?
How can the submitting users racf authority be overridden in a job stream?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Explain about LMFREE�free data set from its association with data ID
What is timing concept in mainframe?
Explain the jcl exec statement?
what JCL Procedures?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
What is Cataloged Procedures?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Is condition checking possible in jcl? If yes, how?