How do u debug a S0C7 abend? (aswered till we get the field
which caused that)
After knowing the field which caused that how do u know the
record which caused that if it is in production env? (dumb)
Ok let us assume that we got to know that 100th record
caused that and I wanted to skip only 100th record from the
file and process from 101th.
How to do that in JCL using SORT? (tried with STOPAFT
but ended up dumb when he said smthing else is ther)
Answer Posted / sandeep negi
If you came to know which field is responsible for that.
you can run your testjcl with output file DISP parameter as
(NEW,CATLG,CATLG), by doing so, your output file will get
created irrespective of SOC7 abend becuase the last record
of your outuput file will be responsible for generating
abend.
Now you can strip off that record (because its bad data)
and run your jcl.
How to Skip any record through JCL -
You can use ICETOOL
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... input file
//OUT DD DSN=... output file
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) REMOVE INPUT RRN(100)
this will remove 100th record from your file and will copy
rest all records into ouptput file.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
what is difference between cobol and cobol/400
Write down the divisions of cobol program?
how to access the file from prodution from changeman tool and to submit a file to production
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What type of SDLC u followed? Why?
Which Search verb is equivalent to PERFORM…VARYING?
what is the difference between COBOL2 AND COBOL390?
What is perform what is varying?
What is link edit in cobol?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What rules are followed by the search verb.
How do define dynamic array in cobol.
What is the usage of comp fields in cobol?
How many sections are there in data division in COBOL?