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
How is the record format of an output dataset specified?
which utility is used to run a cobol-db2 program?
What are the jcl procedures?
Can I send output of job to my remote device careerride123?
What is concatenating?
Explain the function of the dd dcb keyword?
What are the 4 fields in dd statement?
How can return codes be tested before execution of a job step?
How can values be passed from the job stream to an executable program?
What parameter of the job statement is used to limit the cpu time consumed by the job?
In sms datasets, what is the function of the dd avgrec keyword?
How do you submit a job for execution?
which utility is used a dummy utility?
Are there any set of rules for the names of the steps used in a job? What are they?
What is job control language?