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
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?
what operation is performed by job statement?
what is the resolution for sb37 error
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
what is the purpose of coding class parameter in job statement?
how to compare two datasets without using superce because output is limited to 133 bytes
What is the format of comment statement?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
What dd statement is used to supply the name of a dataset?
Can I send output of job to my remote device careerride123?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Explain how can the submitting users racf authority be overridden in a job stream?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What does a disposition of (new,catlg,keep) for a dsn mean?
what is a jcl?