z/OS HCD User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Functions

z/OS HCD User's Guide
SC34-2669-00

Functions

The HCD application programming interface provides the functions described in Figure 211. The functions are listed as you need them while requesting data from the HCD HOM services. The constants you have to specify for HRB_FUNCTION and HRB_OBJ_CODE are included in the figure.

Figure 211. Functions provided by the HOM services

TaskFields in Request Block (HRB)Explanation
HRB_FUNCTION=HRB_OBJ_CODE=
1. Set up the connection to the HCD API
Setup connectionHRB_SETUPHRB_HCDEstablish the HCD environment by passing the setup function in the request block. Input: HCD session interface (HSI) record.
2. Open the IODF
Open IODFHRB_OPENHRB_IODFOpen an IODF, for which you have read authority, by passing the HRB_OPEN function in the request block.
3. Request data for HCD objects
Get ProcessorHRB_GETHRB_PROCESSORIssue a request with the GET function to retrieve data from the IODF. The request returns the address and the length of the data output block. Issue a request with the HRB_DGET function to obtain the retrieved information.
Note:
Issue HRB_GET and HRB_MGET before requesting additional data, because the new request deletes all data and messages from the previous request.
Get Channel SubsystemHRB_GETHRB_CSS
Get Channel PathHRB_GETHRB_CHANNEL
Get SwitchHRB_GETHRB_SWITCH
Get Physical Control UnitHRB_GETHRB_PCU
Get DeviceHRB_GETHRB_DEVICE
Get Activation StatusHRB_ACT_STATUSHRB_IODFThe request allows you to identify the currently active IODF, processor, and so on. Output: Activation status interface (ASI) record.
4. Get the data from the previous GET request
Data GetHRB_DGETHRB_DATAIssue the request with the address and length of the output area to obtain the data retrieved with the previous GET function. Output: Interface record for the object.
Message GetHRB_MGETHRB_MESSAGECheck the return and reason code of the previous GET request. If the return code is warning, error, or severe, issue the request with the address and length of the output area to obtain the messages.

Output: Message interface (MSI) record.

5. Close the IODF
Close IODFHRB_CLOSEHRB_IODFWhen you do not need the IODF anymore, close the IODF by issuing a request with the close function.
6. Terminate the connection to the HCD API
Terminate connectionHRB_TERMINATEHRB_HCDWhen you do not need the HOM services anymore, terminate the connection by issuing a request with the terminate function.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014