14 22 3 The Double Bracket Trap

LANSA Technical

14.22.3 The Double Bracket Trap

If a command is forced to be accepted (as described above), it will often be necessary to further alter the command to ensure that the correct RDML command will be generated by the template. For example, if this command is required:

GROUP_BY NAME(#PANELDATA) FIELDS(@@LST03)

 

If this command is forced to be accepted by canceling the command, the resulting command will look like this:

GROUP_BY NAME(#PANELDATA) FIELDS((@@LST03))

 

After executing an application template containing this RDML command, and assuming list number 3 contains selected fields, an invalid RDML command will be generated as follows:

GROUP_BY NAME(#PANELDATA) FIELDS(((#EMPNO *OUTPUT) 

         #SURNAME #ADDRESS1 #ADDRESS2))

or

GROUP_BY NAME(#PANELDATA) FIELDS((#EMPNO #SURNAME 

         #ADDRESS1 #ADDRESS2))