ctmstvar

The ctmstvar utility resolves the current variable or function value.

  • UNIX:

    • A variable that does not contain a $ sign can be enclosed in ' (apostrophes) or " (quotation marks).

    • A variable that contains a $ sign must be enclosed in '. It cannot be resolved if it is enclosed in ".

  • Windows: Variables must be enclosed in ".

    The ctmstvar utility does not support the $WCALC variable.s

Viewing a Variable Value Using the ctmstvar Utility

This procedure describes how to run the ctmstvar utility, which enables you to resolve the current variable or function value.

Begin

  1. From an Agent, run the following command:

    ctmstvar <orderID> <variableString>

ctmstvar Parameters

The following table lists the ctmstvar utility parameters.

Variable

Description

<orderID>

Defines the run IDClosed The base-36 identification code for a SMART folder, sub-folder, or job execution. of a job that is waiting in the Active Jobs database—as displayed in the Job Details windows. To specify the run ID as a base 10 number, prefix the number with an * (asterisk), and enclose it in ".

Type "0" to indicate no specific run ID.

"*1234"

<variableString>

Defines the variable or string enclosed in quotation.

  • ctmstvar a1 ‘%%$CALCDATE %%ODATE -2’

  • ctmstvar 0 "%%ODATE"