Previous Topic: Include inactive code: *IGNNext Topic: Using the Exclude System Objects and Current Objects Only Specifi


Examples

The two examples in this section depict the new impact analysis for objects containing deactivated (commented out) code. Consider the following scenario:

Example 1—Include Inactive Code = *YES
*Scope  . .  *NOMAX  Reason . .  *ALL*  
Opt Object                  Typ Atr Owner                   Lvl Reason  WRN
    Function_C              FUN RPG 17009615                000 *OBJECT
    Function_B              FUN RPG 17009615                001 *ACTION  *
    Function_A              FUN RPG 17009615                002 *ACTION  *
    Function_A              FUN RPG 17009615                001 *ACTION

Note: Function_B's record has a '*' in character 2 of the WRN field, to indicate that the action diagram call to Function_C has been deactivated (commented out). Hence the Function_A (LVL 002) which calls Function_B) is also marked with a '*' in the WRN field. However the Function_A (LVL 001) which calls Function_C directly) is not marked with a '*' in the WRN field.

Example 2—Include Inactive Code = *NO
*Scope  . .  *NOMAX  Reason . .  *ALL* 
Opt Object                  Typ Atr Owner                   Lvl Reason  Wrn 
    Function_C              FUN RPG 17009615                000 *OBJECT
    Function_A              FUN RPG 17009615                001 *ACTION

Note: Because Function_B's call to Function_C is deactivated (commented out)* Function_B is not included in the usages report and not expanded, therefore Function_A (LVL 002) is also not included.

Example 3–Include Inactive Code = *IGN

*Scope . . *NOMAX Reason . . *ALL*
Opt Object Typ Atr Owner Lvl Reason WRN
Function_C FUN RPG 17009615 000 *OBJECT
Function_B FUN RPG 17009615 001 *ACTION
Function_A FUN RPG 17009615 002 *ACTION
Function_A FUN RPG 17009615 001 *ACTION

Note: These are the same results that you would see with 8.1 SP2. They also look the same as with Include Inactive Code=*YES but the WRN field is not used, since there is no differentiation between active and deactivated code.