Author Topic: CMOD commands - How to capture return code  (Read 2053 times)

SV

  • Jr. Member
  • **
  • Posts: 37
    • View Profile
CMOD commands - How to capture return code
« on: July 13, 2016, 07:51:44 AM »
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.
Intrests: #zOS #AIX #Linux #DB2, #TSM, #Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize, #ODWEK #DR #ContentNavigator; #CLOUD

Nolan

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: CMOD commands - How to capture return code
« Reply #1 on: January 09, 2017, 10:08:42 AM »
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

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: CMOD commands - How to capture return code
« Reply #2 on: January 09, 2017, 10:32:42 AM »
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