When you create a program and SQL package for a non-DB2® UDB for iSeries™, and try to use SQL statements that are unique to that relational database, the CRTSQLxxx GENLVL parameter should be set to 30.
The program will be created unless a message with a severity level of greater than 30 is issued. If a message is issued with a severity level of greater than 30, the statement is probably not valid for any relational database. For example, undefined or unusable host variables or constants that are not valid generate a message severity greater than 30.
The precompiler listing should be checked for unexpected messages when running with a GENLVL greater than 10. When you are creating a package for a DB2 Universal Database™, you must set the GENLVL parameter to a value less than 20.
If the RDB parameter specifies a system that is not a DB2 UDB for iSeries system, then the following options should not be used on the CRTSQLxxx command: