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
A mandatory field that specifies the name of the next process to be executed, provided that certain conditions are met. If no conditions are specified in the step containing the macro, the process executes automatically.
Relevant if the process specified in the Process field contains variables that require you to pass values to them.
If the specified process does not require any passed values, this field remains empty.
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 © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |