A Gen 8.6 developer added a new attribute to an entity and column to this existing table. Then they wrote a new action block to add/create a record to this same entity/table. Within the action block there is no reference to the new attribute within the Gen code. When looking at the COBOL code, can see the new column was referenced, which later causes a bind failure.
Is it normal that this attribute/column would be referenced in the COBOL generated code when it is not in any view in the Gen action block?
Environment
Gen 8.6 Construction
Resolution
This is expected behaviour:
The new action block created contains a 'CREATE' of the entity/table that contains the new attribute. This will create references to this new attribute(even if the attribute was not defined in the action block entity view. It will create the reference to insert spaces to this optional field as it is part of the entity (it is a defined attribute within this entity) and it needs to be accounted for as it is creating the entire record.
Conversely, if the action block only had non-create or update statements, the resulting COBOL code will not have reference to the attribute that was not specifically defined in the action block views.