:DEFINE Script Statement fails to check for double usage for the same array resulting in no error

Document ID : KB000084455
Last Modified Date : 14/04/2018
Show Technical Document Details
Error Message :

 The check on double usage of :DEFINE for the same array does not result in an error as expected.


The following code is used to depict the issue:


:DEFINE &MVSFILE#, string, 9

:  FILL &MVSFILE[] = STR_SPLIT(&line#,"§§§")
:  PRINT &line#

When executing this code there is no error, although according to the documentation there are 2 things wrong:
  1. Variable &a# is defined twice, in line 1 and 2. In the Automation Engine Script Guide > Ordered by Function > Script Structure and Processing > :DEIFINE  the documentation states that this is not allowed.
  2. ​In line 3 of the code above, a variable &MVSFILE# is defined and in line 7 &MVSFILE[] it is used. Though the # at the end is missing, the variable is accepted without an error.
Cause type:
Root Cause: The check on double usage of :DEFINE for the same array does not result in an error.
Update to a fix version listed below or a newer version if available.

Fix Status: In Progress

Fix Version(s):
AE Server and Initialdata
Automation Engine 12.2.0 - Planned release date: 2018-06-19
Automation Engine 12.1.1 - Available
Automation Engine 12.0.4 - Available
Automation Engine 11.2.6 - Available
Additional Information:
Workaround :