How I sort the records in a file and copy the first 10
records to another file
Answer Posted / girish kumar
just write like this
sysin dd *
sort fields=copy
stop after=10
/*
//
i tryed it's working
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the format of comment statement?
How is a type of file defined in the jcl that executes the cobol program?
What are the difference between jcl and jes?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How dummy is used in jcl?
Which dd parameters are required?
what JCL Procedures?
What is the use of disp parameter?
Explain how can the attributes of one sms dataset be copied to another dataset?
how can the same proc be re-used and called by many jobs?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
what is DSN in JCL and what are the parameters to declare the DSN?
Explain the function of //cntl statement?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?