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 / nishant singhal

SORT FIELDS=COPY
SKIPREC=06
STOPAFT=1

Is This Answer Correct ?    8 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How jcl work to handle various input output file operations?

656


How can a stopped job be started again?

707


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

608


What are the utility programs in jcl?

646


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

1033






What are the jcl procedures?

641


What is the function of //cntl statement?

828


What is the difference between run mode and addressing mode?

631


how would you create a temporary dataset? And where will you use them?

764


Define concatenating?

663


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

823


For what purpose steplib and joblib are used ?

682


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

668


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1943


what is use of dcb parameter in dd statement?

769