Attribute variable name missing hyphens in Gen IMS screen code (IGYDS1089-S compile error)

book

Article ID: 223468

calendar_today

Updated On:

Products

CA Gen

Issue/Introduction

Online PStep screen generated code compiler output shows missing hyphens for the attribute variable name "CHARGING CHECKPOINT COUNT" resulting in compiler errors:
+++
   002103                      05  CHARGING CHECKPOINT COU-0010AS  PIC X(1).                       BLL=00016+017,0000017 1C

 ==002103==> IGYDS1089-S "CHECKPOINT" was invalid.  Scanning was resumed at the next area "A"
                         item, level-number, or the start of the next clause.

   002104                      05  CHARGING CHECKPOINT COUNT-0010  PIC X(5).                       BLL=00016+018,0000018 5C

 ==002104==> IGYDS1089-S "CHECKPOINT" was invalid.  Scanning was resumed at the next area "A"
                         item, level-number, or the start of the next clause.
+++

The code has been generated on a Gen CSE for installation using the Gen z/OS IT.

Environment

Release : 8.6

Component : CA Gen Generator, Blockmode

Resolution

Support recreated in-house with the provided model. The default generation option is Enhanced Map which shows the problem. If generate for Standard Map option the hyphens are not missing.
Taking a closer look at the PStep, its import/export views show the attribute as "charging checkpoint count" with no underscores. Under the Data Model the attribute "CHARGING CHECKPOINT COUNT" also has no underscores.
In the current 8.6 Toolset it is not possible to add an attribute with spaces between words without it automatically replacing the spaces with underscores and Gen Engineering cannot remember this ever being allowed. It may be this attribute has been added in some non-standard way and not via the Toolset e.g. via api or some 3rd party tool.
There is a simple way to enable the Enhanced Map generator to generate good code by changing attribute "CHARGING CHECKPOINT COUNT" to have underscores instead of spaces between words i.e. "CHARGING_CHECKPOINT_COUNT". The generated code for Enhanced Mapping then has the missing hyphens:
+++
             05  CHARGING-CHECKPOINT-COU-0010AS  PIC X(1).
             05  CHARGING-CHECKPOINT-COUNT-0010  PIC X(5).
+++

It transpired that the Standard Map generation option was wanting to be used but to enable that option the environment variable TIMAPGEN=1 had not been set on the CSE server where generation was being executed. See KB article: How to set Screen Map option in CA Gen Toolset or CSE generation for a z/OS IT build
For future model integrity, it may be best to change the attribute "CHARGING CHECKPOINT COUNT" to have underscores instead of spaces.