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


Please Help Members By Posting Answers For Below Questions

What is the format of comment statement?

658


How is a type of file defined in the jcl that executes the cobol program?

705


What are the difference between jcl and jes?

1042


State the uses of syspring, sysin, sort fields, sum fields and dummy.

642


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

705






How dummy is used in jcl?

641


Which dd parameters are required?

684


what JCL Procedures?

697


What is the use of disp parameter?

647


Explain how can the attributes of one sms dataset be copied to another dataset?

703


how can the same proc be re-used and called by many jobs?

903


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

778


what is DSN in JCL and what are the parameters to declare the DSN?

712


Explain the function of //cntl statement?

647


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

646