7-28 Using the Export Tool
Hitachi Universal Storage Platform V/VM Hitachi Performance Manager User’s Guide

Table 7-20 Termination Codes Returned by the Export Tool

Termination
Code Meaning
0 The Export Tool finished successfully.
1 An error occurred when the set subcommand (see set subcommand) 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 (i.e., 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 set subcommand)
executed. Some other user might have been logged on in Modify mode.
4 The user ID has none of permissions for Performance Monitor, TrueCopy, TrueCopy
for IBM z/OS, Universal Replicator, and Universal Replicator for IBM z/OS.
If you want 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/JSanRmiServerSx.jar" -Xmx536870912 -
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

Figure 7-7 Example of a Batch File Including References to Termination

Codes

Note: The " " symbol indicates the end of a command line.