Previous Topic

Next Topic

Book Contents

Book Index

Global Variable Assignment and Syntax

Whenever a job (or SMART Table Entity) creates a Global variable and places it in the IOA Global Variable database, it assigns an owner to the variable.

The job that creates the variable can assign itself as the owner (for example, JOBA defines a Global variable that is assigned to JOBA), but it does not have to do this. It can, instead, assign a different owner to the variable (for example, JOBA defines a Global variable that it assigns to GROUP_ABC).

In fact, when a Global variable is created, it can be assigned to any component (job, group, application, or even to Control-M) in the database. It is this ability to assign variables that makes the structure of the IOA Global Variable database so important.

The hierarchical structure of the IOA Global Variable Database, described above, is similar to the directory and subdirectory structure in Unix and DOS. Therefore, the same path structure and syntax that is used to describe directories and subdirectories is used to define and identify Global variables.

Note the following points about Global variable assignment and syntax:

Example 1

Assume JOB1 job with TBL_A group assigns variable %%A (with a value equal to 7) to JOB2 job in the same group (and assume the group has no application). Any of the following statements can be specified:

//* %%SET %%..\JOB2\A=7

//* %%SET %%\M\NO_APPL\TBL_A\JOB2\A=7

Example 2

Assume JOB1 job, with TBL_A group, which is in application APP_A, assigns variable %%A, with a value equal to 7, to JOB2 job with TBL_B group and which does not have an application.

Either of the following %% SET statements work:

//* %%SET %%\M\NO_APPL\TBL_B\JOB2\A=7

//* %%SET %%..\..\..\NO_APPL\TBL_B\JOB2\A=7

DO SHOUT TO TSO-U0014 URGENCY U

=**Problem Occurred. ID=%%\M\NO_APPL\TBL_A\JOB1\PROBID**

Parent Topic

Global Variables