Any valid ILE RPG variable name can be used for a host variable
with the following restrictions.
- Do not use host variable names or external entry names that begin with
the characters SQ, SQL, RDI, or DSN. These names are reserved for the database
manager.
- The length of host variable names is limited to 64.
- The names of host variables must be unique within the
program. The one exception is that if a stand-alone field, parameter, or both,
are defined exactly the same as another stand-alone field, parameter, or both,
the duplicated name is accepted.
- If a host variable is a duplicated name and does not
belong to the exceptional category mentioned in the previous item, but does
have the same type, the precompiler issues SQL0314 as a severity 11 error
instead of its normal severity of 35. If you want to ignore these severity
11 errors, change the GENLVL parameter value on the CRTSQLRPGI command
to be 11 or higher.