Field in the Record(SOC7 Abend)



Field in the Record(SOC7 Abend)

Postby raghuvanshi » Thu Jan 17, 2013 9:26 pm

Hi,

Can we get to know which field in the record is having bad data in SOC7 Abend.How?

Any suggestions are welcome
Thanks!
raghuvanshi
 
Posts: 43
Joined: Tue Dec 07, 2010 5:32 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Field in the Record(SOC7 Abend)

Postby BillyBoyo » Thu Jan 17, 2013 11:06 pm

Does your Abend tell you the OFFSET of the failing instruction? If so, find that in the program, and it should be clearer which field is causing the problem. If you don't have an OFFSET, you'll need to find the address of the failure, the start of your program and subtract the two to calculate your own OFFSET.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Field in the Record(SOC7 Abend)

Postby Akatsukami » Thu Jan 17, 2013 11:07 pm

No, because the S0C7 abend may not necessarily be caused by data directly derived from an input record.

The exact method of debugging will vary slightly depending on the source language. In general, however:
  1. Get the offset within the load module and routine of the failing machine instruction.
  2. Find the source instruction containing that machine instruction in the program map.
  3. Get the address(es) of the packed decimal variable(s) used by that source instruction in the data map.
  4. Find those locations in the dump.
  5. Determine what is the bad data, and in necessary where it came from.
Some or all of these steps may be greatly simplied if your shop uses a fault-handling product as e.g., Abend-AID.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times


Return to Interview Questions

 


  • Related topics
    Replies
    Views
    Last post