Finding a program statement number in the Program Status Data Structure.

pts.
Tags:
i5
IBM iSeries
OS/400
RPG
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Are other statements in the SDS populated correctly? If not, maybe your definition of the SDS is not correct.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TheQuigs
    I don't recall off the top of my head, but I believe optimazation level can also impact the data in the SDS.
    0 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following