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

Explain dfsort utility?

856


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

758


List the different components of jcl statement?

783


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) ?

1862


Explain about LMFREE�free data set from its association with data ID

1116






Explain the function of dd disp parameter?

687


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2267


What does a disposition of (new,catlg,keep) for a dsn mean?

702


What is timing concept in mainframe?

1772


What is jcl in mainframe?

833


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

1152


Describe the various parameters utilized in the creation of a gdg?

777


what is DD statement is used in JCL?

764


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1892


What is the purpose of the dd keylen parameter?

820