The IOSCHPD macro returns the acronym, description, attributes, and/or the Worldwide Port Name (WWPN) of a channel path (CHP) or channel path type.
The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Problem or Supervisor state and any PSW key |
Dispatchable unit mode: | Task or SRB |
Cross memory mode: | Any PASN, any HASN, any SASN |
AMODE: | 24- or 31-bit |
ASC mode: | Primary or access register (AR). |
Interrupt status: | Enabled or disabled for I/O and external interrupts. |
Locks: | No locks may be held. |
Control parameters: | Must be in the primary address space or be in an address/data space that is addressable through a public entry on the callers dispatchable unit access list (DU-AL). |
None.
The parameter list must be in the caller's primary address space or be addressable via the dispatchable unit access list.
Before issuing the IOSCHPD macro, the caller does not have to place any information into any register unless using it in register notation for a particular parameter, or using it as a base register.
The contents of registers 14 through 1 are altered during processing.
None.
The IOSCHPD macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede IOSCHPD. |
IOSCHPD | |
␢ | One or more blanks must follow IOSCHPD. |
CHPID=chpid | chpid: RS-type address or register (2) - (12). |
,CHP_TYPE=chp_type | chp_type: RS-type address or register (2) - (12). |
,CHP_PARM=chp_parm | chp_type: RS-type address or register (2) - (12). |
,CHP_PARM=0 | Default: 0 |
,ACRONYM=acronym | acronym: RS-type address or register (2) - (12). |
,DESC=desc | desc: RS-type address or register (2) - (12). |
,ATTR=attr | attr: RS-type address or register (2) - (12). |
,WWPN=wwpn | wwpn: RS-type address or register (2) - (12). |
,ND=xnd | xnd: Optional 32-character output. |
,LINKAGE=SYSTEM | Default: LINKAGE=SYSTEM |
,LINKAGE=BRANCH | |
,RETCODE=retcode | retcode: RS-type address or register (2) - (12). |
,RSNCODE=rsncode | rsncode: RS-type address or register (2) - (12). |
,PLISTVER=IMPLIED_VERSION | Default: PLISTVER=IMPLIED_VERSION |
,PLISTVER=MAX | |
,PLISTVER=1 | |
,PLISTVER=2 | |
,MF=S | Default: MF=S |
,MF=(L,list addr) | list addr: RS-type address or register (1) - (12). |
,MF=(L,list addr,attr) | |
,MF=(L,list addr,0D) | |
,MF=(E,list addr) | |
,MF=(E,list addr,COMPLETE) | |
The parameters are explained as follows:
If the CHPID is defined as a managed channel path, the description and acronym returned will indicate that the channel path is managed. Otherwise, a non-managed description and acronym will be returned.
To code: Specify the RS-type address, or address in register (2)-(12), of a halfword field.
To code: Specify the RS-type address, or address in register (2)-(12), of a one-byte field.
To code: Specify the RS-type address, or address in register (2)-(12), of a one-byte field.
To code: Specify the RS-type address, or address in register (2)-(12), of a one-byte field.
To code: Specify the RS-type address, or address in register (2)-(12), of a 5-character field.
To code: Specify the RS-type address, or address in register (2)-(12), of a 32-character field.
To code: Specify the RS-type address, or address in register (2)-(12), of an 8-character field.
To code: Specify the RS-type address of a fullword field, or register (2)-(12).
To code: Specify the RS-type address of a fullword field, or register (2)-(12).
If you can tolerate the size change, IBM recommends that you always specify PLISTVER=MAX on the list form of the macro. Specifying MAX ensures that the list-form parameter list is always long enough to hold all the parameters you might specify on the execute form, when both are assembled with the same level of the system. In this way, MAX ensures that the parameter list does not overwrite nearby storage.
Use MF=S to specify the standard form of the macro, which builds an inline parameter list and generates the macro invocation to transfer control to the service. MF=S is the default.
Use MF=L to specify the list form of the macro. Use the list form together with the execute form of the macro for applications that require reentrant code. The list form defines an area of storage that the execute form uses to store the parameters. Only the PLISTVER parameter may be coded with the list form of the macro.
Use MF=E to specify the execute form of the macro. Use the execute form together with the list form of the macro for applications that require reentrant code. The execute form of the macro stores the parameters into the storage area defined by the list form, and generates the macro invocation to transfer control to the service.
None.
The following table identifies the hexadecimal return and reason codes:
Hexadecimal Return Code | Reason Codes, Meaning and Action |
---|---|
00 | The acronym and/or description has been returned. |
04 | The acronym and/or description have not been returned
(the acronym and description output areas have been set to zeroes).
|
08 | Error in caller's parameters.
|
0C | Recovery was entered. |
20 | Recovery was entered. |