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 dd statement is used to supply the name of a dataset?
what is the use of JCL?
Is automatic restart possible in jcl? If yes, how?
write a jcl to execute a job by 7:00 am on jan 20,1986?
what is DD statement is used in JCL?
Is it possible to left uncode disp?
Mention the types of job control statements?
how you can access an uncataloged dataset in a JCL?
which parameter is used to check the syntax of a jcl without executing it?
What is the function of the dd mgmtclas keyword in sms datasets?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What is notcat 2 - gs?
Describe the various parameters utilized in the creation of a gdg?
How can a jobs execution priority be modified?
What is the significance of addrspc parameter in the exec statement?