How is the program data area used in an exit point

50 pts.
Tags:
AS/400 Exit Points
AS/400 security
WRKREGINF
When using WRKREGINF, you can register an exit point for a user written program. When defining the exit point, there is a program data area that you can use. How is the program data area used? Can you pass parameters to your exit program via the program data area?

Answer Wiki

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

The program data area can be use by the exit point in pretty much any fashion the exit point wants. Generally it’s used to provide a filter for selecting the appropriate exit program. As an example, the Command Analyzer Retrieve Exit uses the program data to indicate what CL command the exit program is intended to work with. If the first twenty bytes equal ‘SBMJOB QSYS’ then the exit program gets called when the SBMJOB command runs out of QSYS. Another exit program, for the same exit point, might have it’s program data set to ‘ENDJOBABN QSYS’.

A different exit point, for instance Job Notification might use the program data to define what notifications the exit program wants generated and for what subsystem.

Bruce

Discuss This Question:  

 
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.

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.

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

Following

Share this item with your network: