Command reference, 29 termination codes that the export tool returns, Table 29 – HP XP Array Manager Software User Manual
Page 96

Table 29 Termination Codes that the Export Tool Returns
Termi
Code
nation
Meaning
0
The Export Tool finished successfully.
1
An error occurred when the set subcommand (see “
executed, because an attempt to switch to Modify mode failed. Some other user might
have been logged on in Modify mode.
2
An error occurred due to some reason unrelated to system option modes (that is, View
mode and Modify mode)
3
An error occurred due to more than one reason. One of the reasons is that
an attempt to switch to Modify mode failed when the set subcommand (see
” on page 118) executed. Some other user might have been logged
on in Modify mode.
4
The user ID has none of permissions for Performance Monitor, Continuous Access,
TrueCopy for Mainframe, Continuous Access Journal, and Universal Replicator for
Mainframe.
To use a reference to a termination code in your batch file, do the following:
• To use such a reference in a Windows batch file, write %errorlevel% in the batch file.
• To use such a reference in a UNIX Bourne shell script, write %? in the shell script.
• To
use
such
a reference in a UNIX C shell script, write %status in the shell script.
A reference to a termination code is used in the following example of a Windows batch file. If
this batch file executes and the Export Tool returns the termination code 1 or 3, the command
prompt displays a message that indicates the set subcommand fails.
java -classpath "./lib/JSanExport.jar;./lib/JSanRmiServer.jar" -Dmd.command=command.txt
-Dmd.logpath=log sanproject.getmondat.RJMdMain
if %errorlevel%==1 echo THE SET SUBCOMMAND FAILED
if %errorlevel%==3 echo THE SET SUBCOMMAND FAILED
pause
Note:
The symbol indicates the end of a command line.
Figure 44 An Example of a Batch File Including a Reference to Termination Code
Command Reference
This section explains the syntax of subcommands that you can write in your command file and the java
command that should be used in your batch file.
on page 97 lists the subcommands explained in
this section. The java command is explained in “
Java Command for Exporting Data In Files
96
Using the Export Tool