Previous Topic

Next Topic

Book Contents

Book Index

String Expressions

A string expression has the following basic format:

<variable>=<value>[.]<value>...

Syntax rules

The following syntax rules apply to a string expression:

EXAMPLE: %%X resolves to 0312:

The following sequence passes a value to %%PARM1 based on the day of the month. This example illustrates building the name of a variable in the expression:

The %%BackupTape_%%DAY expression is resolved in two steps (from right to left):

Given that the system date is Dec. 3, %%DAY resolves to 03. The resulting expression is:

%%PARM1=%%BackupTape_03

Next, Control-M resolves the %%BackupTape_03 variable. Since the value of this variable is 303, the resulting expression is:

%%PARM1=303

Parent Topic

Control-M Variable facility