z/OS DFSMSrmm Application Programming Interface
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Start API communication

z/OS DFSMSrmm Application Programming Interface
SC23-6872-00

To start API communication, first initialize all elements of the interface structure and clear the buffers you provide. You can then open a communication session with the API by setting the function code to 1 (=OPEN) and calling EDGXHINT, passing the pointer to the interface struct:
interStruct.function        = 1L;
EDGXHINT(pI);
You can use the return and reason code elements of the interface structure to determine whether the open process was successful:
if ( interStruct.returncode == 0L
  && interStruct.reasoncode == 0L  )
  …..                       // successfully opened the API session
else
  ….                        // error handling needed

If the open process is successful, EDGXHINT fills the elements of the interface structure as described in Table 1.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014