Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

4.26 jobschchknetvar Command

Synopsis

jobschchknetvar varname [-num operator,value[,operator2,value2] | -char comp method,char string] [-z]

Description

The jobschchknetvar command is called by jobs that check the values of job net variables.

Specify a condition against which the value of the specified job net variable is compared. Values can be compared as a numeric value or a string.

If you do not specify a condition, this command will check if the variable exists and information on the job net variable will be displayed in the standard output. If a variable with the target variable name does not exist, the condition will not be matched.

Information about the job net variable being checked is displayed in standard output in the format "varname=value". If the variable being checked does not exist, nothing is displayed.

Options

varname

Specify the name of the job net variable to be evaluated using up to 64 bytes.

The format of the job net variable name is <job net variable prefix>.<name output to job output information ("NAME" in the "NAME=VALUE" format)>.

If neither -num nor -char is specified, specify the name of the variable for checking the existence of the variable. If it exists, the condition is met. If the specified variable exists and the value is an empty string, the variable will be treated as if it exists.

-num operator,value[,operator2,value2]

Treat the value of the job net variable as a numeric value for comparison.

You can compare the job net variable against a single value or a range of values.

To compare against a single value, specify only "operator" and "value".

To compare against a range of values, also specify "operator2" and "value2". The job net variable is compared against the range from "value" to "value2" inclusive.

-char char comp method,char string

Treat the value of the job net variable as a string for comparison.

Specify one of the following comparison conditions:

Specify a string of up to 512 bytes excluding user-defined characters.

If nothing is entered for the comparison string, behavior will be as follows:

-z

Reverses the return values of the comparison.

Return Values

Return value

Meaning

0

Terminated normally

The -z option was not specified and the condition was met.

The -z option was specified and the condition was not met.

1

Terminated normally

The -z option was not specified and the condition was not met.

The -z option was specified and the condition was met.

2 or more

Terminated abnormally

Command Location

Windows

Systemwalker Operation Manager installation directory\MpWalker.JM\bin

Solaris
HP-UX
AIX
Linux

/usr/bin

Cautions

Example

An example job definition that checks if the value of job net variable "JOB.ABC" is equal to string "xyz" is shown below:

jobschchknetvar JOB.ABC -char EQ,xyz

Execution Result/Output Format

JOB.ABC=xyz