MPE CI Programming for 7.5

July 22, 2008
Page 61
hp e3000
strategy
ANYPARM cmd
# Script that executes a command in a remote session and returns the
# CIERROR and HPCIERR values for that command back to the local
# environment.
purge rmstatus >$null
build rmstatus;rec=-80,,f,ascii
remote file rmstatus=rmstatus:$back,old
continue
remote !cmd
remote echo setvar cierror !!cierror >*rmstatus
remote echo setvar hpcierr !!hpcierr >>*rmstatus
xeq rmstatus
echo remote CIERROR=!cierror, remote HPCIERR=!hpcierr
:rem listfile 4abc,2
First character in file name not alphabetic. (CIERR 530)
remote CIERROR=530, remote HPCIERR=530
testing remote command execution