Previous Topic: How to Automatically Generate "Using" Elements with AutogenNext Topic: How the Autogen Action Option Affects Processing


Review Prerequisites

Before using the Autogen action option, complete the following prerequisites:

Autogen Action Option

When specified on an Add, Update, or Generate action for a component element, the Autogen action option automatically generates using elements. A using element is an element that uses a component element. For example, if Autogen is specified for copybook COPYA, then the programs that use that copybook are known as using elements. Specifying Autogen for an element of Type Macro automatically generates the source elements that use the macro, which then generates the appropriate LNK elements.

Autogen is available in batch only for the Add, Update, and Generate actions and cannot be used in packages. CCIDs and comments from the original generated element are used. Autogen generates only those using elements that are found at the same inventory location as the target component or are found higher up the logical map. To generate using elements located across Systems or Subsystems, you can use the Autogen Span options. For more information about the Span options, see Autogen Spans Across Systems and Subsystems in the Administration Guide.

If you specify the Autogen option on any one of a group of statements, then all of those statements are resolved based on the current inventory contents before any statement is executed. Statements such as GENERATE ELEMENT * create actions based on the location and options of the Generate action. During processing, duplicate Generate actions are eliminated, and the NoSource option is enabled for all the Generate actions built by Autogen. An administrator can change the behavior of the Autogen feature, by activating AUTOGEN_SOURCE in the Optional Features Table (ENCOPTBL). When this option is activated, the Generate actions for the using elements are built with the Copyback, instead of the NoSource, option.

Autogen improves processing by eliminating duplicate processing of components and reduces the work that is required of users, who no longer must use the Automated Configuration Manager Query facility (ACMQ) to create additional Generate actions for element components and then run another batch job to process them.

You can run Autogen in simulation mode, to preview the effects of an Autogen request.

The following restrictions apply to Autogen: