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?
ASKED: February 2, 2009  1:58 PM
UPDATED: February 3, 2009  2:48 PM

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 <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/xcartv.htm”> Command Analyzer Retrieve Exit</a> 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 <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/xjobntfy.htm”> Job Notification</a> might use the program data to define what notifications the exit program wants generated and for what subsystem.

Bruce
<a href=”http://www.brucevining.com/”>Bruce Vining Services</a>

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.

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

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