The activate/deactivate line command (*,**) allows you to deactivate or activate a construct or block of constructs. The * line command is used to toggle the active/deactive flag for a construct. Deactivated constructs do not generate any associated code, nor does any otherwise active construct that is nested. Deactivating a construct is similar to wrapping an always false CASE structure around the construct. The action of the * line command depends on the status of the construct.
If the construct is currently active, * deactivates that construct. This then displays using the attributes of COLOR(WHT), DSPATR(HI). In addition, deactivated constructs have a *** symbol displayed to the right of the action diagram line.
If the construct is currently deactivated, * reactivates that construct. The method of display is now dependent on the activation status of its parent constructs. If any of its parent constructs (within which it is nested) are currently deactivated, the construct still displays as if it were deactivated but the symbol on the right will be a *. This indicates that the construct has inherited the deactivation status of its parent construct.

Note: The display of the * symbol for inherited deactivation is preserved for zooms into hidden structures within the same action diagram. However, it is not preserved for zooms into other action diagrams. These are deactivated only for use within the parent function. They are not generated within that function, but because they are not inherently deactivated, the deactivation is not indicated while editing them.
If a nested construct is currently deactivated when its parent construct becomes deactivated, its own deactivation status is not changed and it remains deactivated. If it is currently active, it inherits the deactivation status of its parent.

If a nested construct is currently deactivated when its parent construct becomes reactivated, its own deactivation status is not changed and it remains deactivated. If it is currently active, it no longer inherits the deactivation status of its parent and it is reactivated.

If a pair of **s is used, these must be defined at the same construct level. Each construct at the same level as the ** has its associated active/deactive flag toggled. This can lead to some constructs being deactivated and some being reactivated. Constructs nested within these constructs are not updated but still inherit the deactivation of their parent constructs.

| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |