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
How you can characterize tables in cobol?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How are the next sentence and continue different from each other?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how to refer the data field?
What is the difference between Call and a Link?
What is the difference between perform … with test after and perform … with test before?
Difference between cobol and cobol-ii?
What are the different open modes available in cobol?
What is the local-storage section?
i need a small 3d program using inline and outline.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Give some examples of command terminators?