50 pts.
 How is the program data area used in an exit point
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?

Software/Hardware used:
ASKED: February 2, 2009  1:58 PM
UPDATED: February 3, 2009  2:48 PM

Answer Wiki:
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>
Last Wiki Answer Submitted:  February 3, 2009  2:48 pm  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _