1 | Format name | Input | Char(8) |
2 | Device selection information | Input/Output | Char(*) |
3 | Return code | Output | Binary(4) |
The Device Selection exit program provides an interface to control virtual device selection and automatic creation used by the system for connection requests from clients using virtual device support. The interface allows the user to write an exit program to specify the naming conventions used for automatically created virtual devices and virtual controllers and to specify the automatic creation limit to be used for the specific request.
The exit program can:
You must have *ALLOBJ authority to register an exit program for the QIBM_QPA_DEVSEL exit point.
The format of the information provided in the Device selection information parameter. The format name is PDSC0100.
The structure containing the data that is being passed to the exit program and that is returned from the exit program.
Whether to allow the connection request to continue. The possible values are:
0 | Do not allow connection request. |
1 | Allow connection request. |
If any other value is returned, the request for selection and automatic creation of a device description for the client request will be processed using the system defaults for the QAUTOVRT system value and the defaults for the device and controller naming conventions.
This parameter is initialized to 0 on the call to the exit program.
For details about the fields in the following table, see Field Descriptions.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | Size of structure |
4 | 4 | BINARY(4) | Function |
8 | 8 | BINARY(4) | Specific name requested |
12 | C | CHAR(10) | Name for requested device |
22 | 16 | CHAR(8) | Format of returned data |
For details about the fields in the following table, see Field Descriptions.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
30 | 1E | CHAR(2) | Reserved |
32 | 20 | BINARY(4) | Autocreation limit |
36 | 24 | CHAR(6) | Naming pattern for device |
42 | 2A | CHAR(6) | Controller naming pattern for device attachment |
48 | 30 | CHAR(6) | Additional controller naming pattern |
Additional controller naming pattern. The naming pattern for the controllers to be used for the device automatic creation limit. When applying the check for automatic creation limit, devices attached to these controllers are also counted when determining ifr the limit is exceeded. This field is initialized to blanks before the call is made to the exit program.
Autocreation limit. The number to be used for the virtual device automatic creation limit for this connection request. Possible values are:
0 | Do not allow any additional virtual device descriptions to be created automatically. |
1-32500 | The number of devices that can be attached to the controller descriptions whose naming patterns are specified in Controller naming pattern for device attachment and Additional controller naming pattern. |
32767 | The special value of *NOMAX. Do not limit the automatic creation of virtual devices. |
Controller naming pattern for device attachment. The naming pattern for the controller to which an automatically created device is to be attached. These characters must be a valid input to the CRTCTLVWS command. If there are not six characters, the pattern is padded with zeros. If the Autocreation limit is 1-32500, the devices attached to controllers with this pattern are counted and this number is used toward the automatic creation limit. This field is initialized to blanks before the call is made to the exit program.
Format of returned data. The format name specified by the user exit program for the output data returned from the Device Selection exit point. The only format supported currently is PDSR0100. This field is initialized to PDSR0100 on the call to the exit program.
Function. The function being used by the client. Possible values are:
1 | APPC |
2 | TELNET |
3 | Virtual Terminal Manager API (VTM API) |
Name for requested device. The name of the device requested by the client. If Specific name requested is set to 0, this field is blank.
Naming pattern for device. The naming pattern to be used for device automatic creation. These characters must be a valid input to the CRTDEVDSP command. This field is checked only if the Specific name requested field is 0. This field is initialized to blanks before the call is made to the exit program.
Reserved. A reserved field that must be set to hexadecimal zeros.
Size of structure. The size of the structure containing the data being passed to and returned from the exit program.
Specific name requested. Whether a specific name was requested by the client. If a specific name was requested, this name will be passed to the exit program in the Name for requested device field.
0 | No specific name was requested. |
1 | Specific name was requested. |
Applications should consider the following when coding this exit program:
Top | Miscellaneous APIs | APIs by category |