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


Please Help Members By Posting Answers For Below Questions

Have you used comp and comp-3 in your project? And how?

2006


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

697


Describe the cobol database components?

675


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

892


How do you define a variable of comp-1 and comp-2?

699






What is the difference between Call and a Link?

694


What is amode(24)?

680


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2051


What is the difference between PIC 9.99 and 9v99 in COBOL?

729


HOw can I get the negative sign while deduct high value from low value

1784


Are you comfortable in cobol or jcl?

639


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

816


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2102


How can you get the ksds file records into your cobol program?

639


What is the Purpose of POINTER Phrase in STRING command in COBOL?

713