Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
IEF_VOLUME_MNT — Volume Mount Installation Exit z/OS MVS Installation Exits SA23-1381-00 |
|
Topics for This Exit Appear as Follows:
When a job's allocation request requires a volume to be mounted, MVS™ issues a WTOR that requests the system operator to mount the volume or cancel the job. You can automate your installation's responses to volume mount WTORs, and reduce the need for operator intervention, by defining an installation default policy for volume mount allocation requests in the ALLOCxx member of SYS1.PARMLIB. The policy you specify will handle the majority of volume mount allocation requests that can occur. Code a volume mount exit routine when you want to make exceptions
to your installation default policy for certain jobs and/or volumes.
Using the information it receives about the job, the exit routine
determines whether to:
For more information on the ALLOCxx and EXITxx members of SYS1.PARMLIB, see z/OS MVS Initialization and Tuning Reference. Controlling the Exit Routine Through the Dynamic Exits FacilityIBM® has defined the volume mount exit to the dynamic exits facility. You can refer to the exit by the name IEF_VOLUME_MNT. You can use the EXIT statement of the PROGxx parmlib member, the SETPROG EXIT operator command, or the CSVDYNEX macro to control this exit and its exit routines. You
can use the ADDABENDNUM and ABENDCONSEC parameters on the CSVDYNEX
REQUEST=ADD macro or the ABENDNUM parameter of the SETPROG EXIT operator
command to limit the number of times the exit routine abnormally ends
before it becomes inactive. An abend is counted when both of the following
conditions exist:
Replacing the Exit RoutineFor information about replacing a dynamic exit routine, see Replacing a Dynamic Exit Routine. Exit Routine EnvironmentThe
exit receives control in the following environment:
Exit RecoveryThe exit routine should provide its own recovery. If the exit routine abnormally terminates, its recovery routine will get control. If the exit routine abnormally terminates, and the exit routine does not provide its own recovery, or the error percolates beyond the exit's recovery routine, a system recovery routine will get control. The system will fail the allocation request. Whether or not the exit routine continues to be invoked depends on the abend processing of the dynamic exits facility. However, the exit routine will continue to be invoked for all other volume mount allocation requests. Exit Routine ProcessingMVS invokes
the volume mount exit routine or routines every time a job must wait
for a volume to be mounted. Before issuing WTORs that identify the
volume(s) to be mounted and request operator action, MVS invokes
the volume mount exit routine or routines, if any are specified to
the dynamic exits facility, and passes a set of parameters that contains
the following information about the allocation request:
Using the information in the parameter list, the exit
routine indicates to the system (by placing a value in the ACTION
field of the parameter list) whether the system should:
See Return Specifications for the specific values the exit routine can return. Using the
Exit with Your Installation's Default Policy: If you code
the exit, use it in conjunction with your installation's default policy
for jobs that require volumes to be mounted. Determine your installation's
default policy by specifying one of the following parameters on the
POLICY parameter of the VOLUME_MNT statement:
When you have chosen a default policy to handle the majority of volume mount WTORs that can occur, use the volume mount exit routine to make exceptions, if any, for certain jobs and/or volumes. The exit routine's decisions will override the installation's default policy. If you do not code the volume mount exit routine, MVS will use your installation's default policy (specified on the ALLOCxx parmlib member) to determine how to respond to all allocation volume mount requests (either cancelling all jobs that must wait for a volume to be mounted, or always allowing the WTOR to be issued). If your installation does not define a default policy, the system will always issue the volume mount WTOR. Programming ConsiderationsObserve
the following conventions when coding the volume mount exit routine:
Message Processing: Use the exit routine,
in conjunction with the installation default policy, to suppress and
automate your installation's responses to the following messages:
In addition, you might avoid getting message IEF369D (invalid reply), which the system issues in response to an invalid reply to IEF455D. Macro Instructions and Restrictions: Do not code the exit routine to issue the WAIT macro or call a service that issues a WAIT, such as WTOR. Entry SpecificationsThe system passes the address of the exit parameter list to the exit routine. Registers at Entry: The contents of the registers on entry to the exit are as follows.
Parameter Descriptions: Register 1 contains the address of a pointer to the exit parameter list, the UXPARMB, which is mapped by macro IEFZB479 (data area UXPARMB). For a mapping of the UXPARMB data area, see z/OS MVS Data Areas in z/OS Internet Library at http://www.ibm.com/systems/z/os/zos/bkserv/. Return SpecificationsThe
volume mount exit indicates its decision to the system by placing
one of the following values in the 1-byte ACTION field of the exit
parameter list:
If the exit routine does not return a valid value, the system will ignore the exit and use the installation default policy to make the decision. If you associate multiple exit routines with IEF_VOLUME_MNT, you can specify how the return information is to be handled using the ATTRIB KEEPRC function of the SETPROG EXIT command, the EXIT statement of PROGxx, or CSVDYNEX services. If multiple exit routines match the ATTRIB KEEPRC criteria, the system returns information from the exit routine that finished first. If you do not specify the ATTRIB KEEPRC function, the system returns the information from the exit routine whose return value was the greatest. If multiple exit routines return with the same highest value, the return information from the exit routine that finished first will be returned. Registers at Exit: Upon return from the exit processing, the register contents must be as follows.
Coded Example of the Exit RoutineFor your reference, IBM provides a coded example of this exit routine in SYS1.SAMPLIB. The routine is named IEFVOLMT. |
Copyright IBM Corporation 1990, 2014
|