Previous Topic: Generate an ElementNext Topic: How Autogen Span Options Work


How Generate Element In Place or Generate Element NoSource Works

The Generate Element NoSource option and the Generate Element In Place option are mutually exclusive. They cannot both be set to Y. An error message is generated if both fields are set to Y.

If Generate Element In Place is set to Y on the Action Options panel:

If Generate Element NoSource is set to Y in the Action Options panel:

If both options are set to N:

After the successful completion of the GENERATE action, one of these messages is displayed: *Gen/Cpybk (generated with Copyback) or *Gen/Inplc (generated in place).

Be aware of the following before you request the GENERATE ELEMENT option:

How Generating Elements with Autogen Works

Autogen is available in batch only for the Add, Update, and Generate actions and cannot be used in packages. When an element is generated, either by the Generate statement or through an Add or Update request, and the Autogen option is specified, CA Endevor SCM processes the request as follows:

  1. An ACMQ search is performed for all elements that use the component element being generated.
  2. For each using element, a Generate action is created and added to the list of actions to be performed. However, duplicate Generate actions are eliminated, so that each using element will only be generated once, even if multiple components are being generated that are used by use the same element.

    The Generate action created for each using element will perform as follows:

    Accordingly, the using elements are generated as if the following Generate statement had been specified:

    GENERATE ELEMENT name 
    FROM <inventory location in the original command> 
    TYPE type 
    OPTION CCID <same ccid> 
    COMMENT <same comment> 
    <override signout, if specified on original command> 
    NOSOURCE.
    

    If the Copyback option is specified on the original action, then the Copyback only applies to the component element that is specified on the original request. The NoSource option is always used on all the Generate statements built for the using elements, unless the administrator has activated the AUTOGEN_SOURCE option in ENCOPTBL.

  3. Autogen only acts on components whose Types are listed in the Global Type Sequencing table. If the component's Type is not listed in the Global Type Sequencing table, the Autogen request is ignored.
  4. Global type sequencing is used to determine the order in which the elements are generated. However, with the Autogen option, SCL requests are fully resolved based on current inventory contents prior to any action being processed. When multiple actions are specified and the Autogen option is specified on at least one of the actions, all the actions are expanded before any of the actions are processed. All name masking is resolved and individual actions are built and then the expanded actions are executed according to the Global type sequence order.

    Consequently, if the Generate Autogen option is specified and several Move actions are included in the same request, the Move actions do not include any of the additional elements that are copied back as a result of the Generate action.

Example: Autogen Processing when Move actions are included on the same request

In this example, Macro MD1 exists at the DEV stage 1 location. This macro is used in program PD1 located at the DEV stage 1 location and in programs PQ2 and PQ3 located at the QA stage 2 location. The following two actions are included in the same batch job:

SET FROM ENV DEV SYS SYS1 SUBS SUB1 STAGE NUM 1.
GENERATE ELE MD1 OPTION AUTOGEN.
MOVE ELE *.

The Generate action results in elements MD1, PD1, PQ2, and PQ3 being generated at the DEV stage 1 location. However, the Move action results in only the MD1 and PD1 elements being moved to the next location in the logical map. This is because PQ2 and PQ3 were originally not at the STG1 location, so they remain at the DEV stage 1 environment.