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 the maximum length of a single line of jcl?
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?
which utility is used a dummy utility?
can any one plzzzzzz tell the jcl code for creating ps using idcams
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
what is SOC4 error?
Is acct parameter mandatory?
What is job control language?
Differentiate between the joblib and the steplib statements?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
How jcl work to handle various input output file operations?
How can a fb file convert to vb file using sort program?
For what purpose steplib and joblib are used ?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?