/*----------------------------REXX--------------------------------*/
parse source . . ident . .
say ident||': Started....'
'PIPE CC D LOGGER,c,lsn=sysplex.operlog,d',
' | SEP',
' | LOCATE /ZAI CLIENT:/',
' | EDIT WORD 5.3 N',
' | VAR CMDOUT'
'PIPE CC D LOGGER,STATUS,ZAI',
' | SEP',
' | LOCATE /SERVER/',
' | EDIT WORD 2.4 N',
' | VAR ZAIOUT'
if cmdout = 'YES - CONNECTED' then
do
/* Add command to update the status to available. */
say ident|| ': Connection to zAware is connected. Parms: 'zaiout
rc = 0
end
else
do
/* Add command to update status to failed. */
say ident|| ': Connection to zAware is quiesced. Parms: 'zaiout
rc = 8
end
exit rc
|