| United States-English |
|
|
|
![]() |
ALLBASE/SQL Advanced Application Programming Guide: HP 3000 MPE/iX Computer Systems > Chapter 1 Using the PreprocessorStatic Conversion Mode |
|
The DYNAMIC preprocessor command line option provides a means of converting static SQL statements to dynamic statements with little or no change to existing source code. This is termed static conversion processing and provides the flexibility of running an application with either static processing or dynamic processing. In addition, an already dynamic application can be preprocessed without having to specify a DBEnvironment name in the command line. This functionality is available for C and Pascal applications. The following sections describe how to implement this feature. Note that additional information and examples regarding static and dynamic processing are found in the language specific ALLBASE/SQL application programming guides and in later sections in this chapter. Use one of the following statements to both check SQL syntax and create output files that can be processed by the compiler. All static SQL statements are converted to dynamic statements. Dynamic SQL statements remain dynamic. No module is created, and no DBEnvironment is connected to during preprocessing. RUN PSQLC.PUB.SYS;INFO= "(DYNAMIC [FLAGGER (FlaggerName)] [ANSI] [THREAD] )"
At run time, the owner of any unqualified object defaults to the user who is running the application.
Before running the preprocessor, remember to equate SQLIN to the name of the file containing the application you want to preprocess. After running the preprocessor, save and rename any output files you do not want overwritten. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||