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;temp >$null build rmstatus;rec=-80,,f,ascii;temp remote file rmstatus=rmstatus:$back,oldtemp continue remote !cmd remote echo setvar cierror !!cierror >*rmstatus remote echo setvar hpcierr !!hpcierr >>*rmstatus xeq rmstatus echo remote CIERROR=!cierror, remote HPCIERR=!hpcierr