CMOD commands - How to capture return code

Previous topic - Next topic

SV

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.

Nolan

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.
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN

Nolan

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
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN