hmcStart function


hmcGetLastError

hmcGetLastError ()

Returns a text description of the error generated by the most recent call to an HMC query function, or false if the function call was successful.

Parameters:

None.

Returns:

A string containing the error of the most recent function call or false.

Example

function getTheHmcName()
// Get the name of the HMC value = hmcGetConName('HMC1')
// Check to see if the function returned an error
if hmcGetLastError() == false then
// send the error to all viewers, if trace is enabled.
trace('ERROR: ' & value, RED)
else
// send the name of the console to all viewers, if trace is enabled.
trace('conName = ' & value, GREEN)
endif
return 0

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*