Finding a program statement number in the Program Status Data Structure.
0 pts.
0
Q:
Finding a program statement number in the Program Status Data Structure.
According to the ILE RPG Reference manual, positions 21 - 28 of the SDS should contain the statement or listing number at the time of the dump. Whenever I deliberately invoke the dump (via *PSSR) this value is zero. I have checked it in debug mode before and after the actual DUMP and the value is still zero. What am I missing? Is there some other way to find the program statement so I can log the information?
ASKED: Dec 10 2004  9:24 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Are other statements in the SDS populated correctly? If not, maybe your definition of the SDS is not correct.
Last Answered: Dec 13 2004  9:59 AM GMT by rchevalier   0 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TheQuigs   0 pts.  |   Dec 13 2004  11:54AM GMT

I don’t recall off the top of my head, but I believe optimazation level can also impact the data in the SDS.

 

TomLiotta   7580 pts.  |   Oct 19 2009  10:03AM GMT

When you “deliberately invoke the dump (via *PSSR)”, is it by way of causing an exception? Or are you simply executing the *PSSR subroutine where a DUMP op-code is coded?

Tom

 
0