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

1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7073


Explain the purpose of the dd keylen parameter?

664


Explain how can the attributes of one sms dataset be copied to another dataset?

703


how can you check if a file is empty using jcl?

805


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

625






What does a disposition of (MOD,DELETE,DELETE) mean ?

660


Is their any set of rules for dd? Explain.

653


How is a type of file defined in the jcl that executes the cobol program?

705


Is acct parameter mandatory?

758


Explain the function of dd disp parameter?

588


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


Explain about ISPF/TSO Commands

1308


What are the rules employed while naming the steps in a job?

650


What happens if both JOBLIB & STEPLIB is specified ?

604


What are the difference between jcl and jes?

1042