*PSS/INFSR

pts.
Tags:
Hi, Can any body tell me what is *Pss/INFSR?Whare we can use this?

Answer Wiki

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

Hi,

The *PSSR is the program status subroutine and can be used for handling unexpected program errors (for example decimal data errors).

Regards,

Martin Gilbert.

Discuss This Question: 3  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
  • Koohiisan
    As I understand, the *PSSR subroutine is used to allow your program to die gracefully; there is not really a means of resolving an error and resuming normal program flow. Instead, you may want to look into the monitor opcode and its usage. I've recently started to employ this in my own programs. http://www.ibmsystemsmag.com/i5/october02/enewsletterexclusive/8838p1.aspx
    5,020 pointsBadges:
    report
  • WoodEngineer
    The *PSSR subroutine is from long ago and far away. It was originally designed to work within the RPG cycle. Of course, that time RPG could only run in a cycle so it worked just fine. You may notice some return options available to *PSSR. If you are using anything other than the RPG cycle, these probably will not give the results you may desire. The MONITOR op code, as mentioned by Koohiisan, is a good alternative. In fact, it may well be the preferred alternative.
    6,670 pointsBadges:
    report
  • philpl1jb
    The *INZSR subroutine will run before any other 'C specs. It's run by the cycle and does not need to be called. It will run first even if you don't think you're using the cycle. The *PSSR subroutine will be called on most errors if no other error handling is specified. Monitor would take priority. This routine can be used to log the error, reset values, etc. It works for all RPG programs. If you use this routine you will usually want to code a program end *inlr = *on in it. Typically it is coded to skip the fancy stuff if it's called a second time .. ie: if an error occurs while logging an error. Phil
    49,950 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