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
:SET &HND# = PREP_PROCESS_VAR(SOME.VARA)
: SET &line# = GET_PROCESS_LINE(&HND#)
: 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:
- 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.
- 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.