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 / sanjay soni
Let me give it a try:
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/80)
//SORTOUT DD DSN=... output file (FB/80)
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,80,SEQNUM,3,ZD)
INCLUDE COND=(81,03,NE,ZD,3)
OUTREC BUILD=(1,80)
/*
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is use of restart and how to use it?
What do you understand by the term notcat 2 – gs?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
when does a dataset go uncataloged?
Mention the types of job control statements?
Is automatic restart possible in jcl?
Name the statement which can be used to send data to another mvs jes3 node?
what is use of space parameter in dd statement?
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?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
what happens in conversion stage in job processing?
which parameter is use to declare the name of dataset in dd statement?