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

which utility is used a dummy utility?

795


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

800


What are the parameters that are used in creating a gdg?

741


What parameter directs the output of the job log dataset?

766


Explain the function of dd disp parameter?

595






What are steplib and joblib?

725


What are the parameter we cannot use in procedure?

640


Where can program checkpoints be stored for use in a restart?

851


How can a jobs execution priority be modified?

799


How can the disposition of sysout datasets be set for an entire jobstream?

840


How to submit a jcl from cics?

668


How to do automated restart when a job abend?

791


How do you create a temporary dataset?

664


Explain how can the submitting users racf authority be overridden in a job stream?

672


Can we call instream to catalog and catalog to instream?

685