Note that some RDML commands will not be accepted by the IBM CL syntax checker when they contain special variables such as @@LSTnn. They must be forced to accept the commands. An example of this is the following:
GROUP_BY NAME(#PANELDATA) FIELDS(@@LST03)
After executing an application template containing this RDML command, and assuming list number 3 contains selected fields, RDML commands like this will be generated:
FIELDS((#EMPNO *OUTPUT) #SURNAME
which is quite valid.
Take care not to code the original RDML command in the application template as in the following example:
GROUP_BY NAME(#PANELDATA) FIELDS((#@@LST03))
(which will be accepted by the command prompter) or
GROUP_BY NAME(#PANELDATA) FIELDS((@@LST03))
(which is the automatic result when the command prompting is canceled) as both these examples will generate invalid RDML commands.
It is absolutely essential that all application templates which include RDML commands with special variables are thoroughly tested to ensure that the correct RDML command will be generated by the application template.