There is a production file which has millions of records in
it.The program that uses it ends up with an SOC7 abend.It
is sure that the abend is due to some invalid data in the
file.Is there any way to debugg the SOC7 abend with out
giving displays? I need the record which is cause for the
abend.
Answer Posted / prakash
We can track this S0C7 in couple of ways without issuing
display statement
* Using abend log SYSABEND. GO the abend log in the spool
and search for CURRENT RECORD . Under this heading the
abendlog will show you the current record that has caused
the abend in hexa decimal format.
* Using Disp parameter. Suppose if your applicaton program
reads the data from an input file and after processing if
it writes ouput data to another file this method could be
used. Give the disp parameter as new,catlg,catlg for the
output dataset.By doing so when ever the job abend with
S0C7 we could see the last sucessfully processed record in
the output file.With that info we can track the
corresponding record in the input file and the next record
to that is the one causing the abend
| Is This Answer Correct ? | 25 Yes | 1 No |
Post New Answer View All Answers
What is length is cobol?
What type of SDLC u followed? Why?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
explain sorting techniques in cobol program?
In which area will you utilize 88 level items in cobol?
) How do u handle errors in BMS macro
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between comp and comp-3?
Why did you choose to work with ibm mainframe cobol programming?
What is a scope terminator give example?
What is a report item?
Difference between cobol and cobol-ii?
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.
Whats the difference between search & search ALL?
What is the difference between a binary search and a sequential search what are the pertinent cobol?