Assigning Values to Symbolic Variables

About this task

Use symbolic variables to assign values to variables before execution. The values are then substituted during execution whenever the symbolic variable is encountered.

To assign values to symbolic variables in a Process, from the Web Services:

Procedure

  1. Click New Transfer > Build a transfer > Browse script to open process file.
  2. Under Override Options, click Variable tab, change the bulleting accordingly for the rest.
  3. To create a new symbolic variable, type the symbolic variable name in the Variable Name field. Symbolic variable names are case-sensitive. Enter the symbolic variable exactly as used in the Process.
  4. To change a symbolic variable, select the symbolic variable statement in the Variable list. If necessary, edit the variable name.
  5. Type the symbolic variable value or built-in variable enclosed in quotation marks in the Variable Value field or edit the existing value.
    Built-in Variable Value
    %JDATE
    Specifies the date the Process was submitted in Julian format. The variable is resolved as the submission date of the Process in the format yyyyddd. Among other uses, the value returned is suitable for constructing a file name on the node receiving the file.
    Note: The value of the variable is resolved at Process submit time. The value will correspond to the date on which the Process was submitted, regardless of when or how many times the Process is actually executed.

    %NUM1

    Specifies the submission time of the Process in a 6-digit numeric-value format of minutes, seconds, and hundredths of seconds.
    %NUM2 Specifies the submitted time of a Process as 1 hex digit
    %PNODE PNODE name where the submit occurs
    %PRAND Pseudo-random number (6 hex digits)
    %SUBDATE Specifies the date the Process was submitted in Gregorian format. The variable is resolved as the submission date of the Process in the format cyymmdd where c is the century indicator and is set to 0 for year 19yy or 1 for year 20yy. The value returned can be used to create a file name on the node receiving the file.
    %SUBDATE1 Use this parameter to substitute the submitted date in the yyyymmdd date format.
    %SUBDATE2 Use this parameter to substitute the submitted date in the yyyyddmm date format.
    %SUBDATE3 Use this parameter to substitute the submitted date in the mmddyyyy date format.
    %SUBDATE4 Use this parameter to substitute the submitted date in the ddmmyyyy date format.
    %SUBTIME

    Specifies the time the Process was submitted. The variable is resolved as the submission time of the Process in the format hhmmss. The return value can be used to create a file name on the node receiving the file.

    Note: The value of the variable is resolved at Process submit time. The value will correspond to the time at which the Process was submitted, regardless of when or how many times the Process is actually executed.
    %USER Specifies a variable that resolves to the user submitting the Process
  6. To remove a symbolic variable, select the variable and click Delete.
  7. To save and add the variable to the Variable list, click Add.
  8. Click OK to close the dialog box or click one of the other tabs to continue modifying Process options.