CHAIN Macro

The CHAIN macro links the current process to another process that continues the execution.

You can chain processes together so that process A passes control to process B if certain conditions are met. You can define processes as modules and chain them as required. Use the CHAIN macro to chain processes. The macro sets the name of the target process and any associated parameters, and passes control to the target process.

Parameters: CHAIN Macro

Example: CHAIN Macro

In the following example, the PROC2 process is called and will be executed. PROC2 contains the variable &NAME which is given a value of TYOUNG.

PROD------ Automation Services : CHAIN Macro Parameter Definition ------------- Command ===> Function=UPDATE .- Process Details -----------------------------------------------------------. | | | Process ..... PROC2 | | | | Parameters .. NAME=TYOUNG | | ____________________________________________________________ | | | '-----------------------------------------------------------------------------'

In the following example, the PROC5 process is called and will be executed. PROC5 contains the variable &NAME which is given a value of &V1. The value of the &V1 variable can be set, for example, by an EventView message action rule.

PROD------ Automation Services : CHAIN Macro Parameter Definition ------------- Command ===> Function=UPDATE .- Process Details -----------------------------------------------------------. | | | Process ..... PROC5 | | | | Parameters .. NAME=&V1 | | | | | '-----------------------------------------------------------------------------'


Copyright © 2010 CA. All rights reserved.