Suppose i have a file with 10 recs and i want to skip only the
7 th record and copy the rest into another file. How do i do
it using SORT?

Answer Posted / ananth

srot fields = copy

stopaft=6


next we have to give another step by using disp=(mod,delete,delete)

skiprec=7
stopaft=4

then 7th record gone remainging records into output file.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want to store 20 digits . how will u do it in cobol ?

862


Explain how can an in-stream dataset be terminated?

704


What parameter directs the output of the job log dataset?

769


What statement can be used to send data to another mvs jes3 node?

828


Explain the function of a dd statement?

661






What do you know about jcl?

651


What is the purpose of the dd keylen parameter?

726


What are some jcl statements that are not allowed in procedures?

728


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

1041


How does the jcl specify the job to os?

696


Define concatenating?

667


For what purpose steplib and joblib are used ?

690


what is the JCL statement consists of?

699


what is the resolution for sb37 error

7716


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1670