OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: SV on July 13, 2016, 02:51:44 PM

Title: CMOD commands - How to capture return code
Post by: SV on July 13, 2016, 02:51:44 PM
My client is planning to use VBScripts on windows to automate PDF indexer and arsload. They would like to know CMOD utilities like arspdoci, arsload returns any RC code upon completion. How to capture them with out scanning indexer or load command output message.
Title: Re: CMOD commands - How to capture return code
Post by: Nolan on January 09, 2017, 05:08:42 PM
I know this is out of date but did you figure out a solution?   I want to also issue the ARSLOAD command from my JCL and then capture the return code to ensure the archive is successful.
Title: Re: CMOD commands - How to capture return code
Post by: Nolan on January 09, 2017, 05:32:42 PM
Windows Solution:   echo Exit Code is %errorlevel%

After issuing the ARSLOAD command use whatever process to capture the return code from variable %errorlevel%

Example :

ARSLOAD -H TEST -a NORPTFOUND
set ARSLOAD_RC=%errorlevel%
echo %ARSLOAD_RC%

Returns :
6