How I sort the records in a file and copy the first 10
records to another file

Answer Posted / srinivasa yadav

//sysin dd *
sort fields=(starting postion,length,data-type,order)
skip rec=0
stop rec=10
/*

and also we can use file-aid tool. in file-aid
there is an option 3.3

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the statements that are not valid to be included in an include statement?

775


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

641


what is the JCL statement consists of?

693


What is the function of dd disp parameter?

650


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1744






Where & How Do You Code Identifier In Jcl?

691


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

666


what is SOC4 error?

732


What is the purpose of the dd keylen parameter?

716


Explain how can an in-stream dataset be terminated?

690


Differentiate between the joblib and the steplib statements?

854


Name what parameter directs the output of the job log dataset?

555


What is the difference between the positional and keyword parameters? Give examples.

698


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2093


how do you code a null statement?

768