HP 3000 Manuals

Coding Tips [ ALLBASE/SQL Advanced Application Programming Guide ] MPE/iX 5.0 Documentation


ALLBASE/SQL Advanced Application Programming Guide

Coding Tips 

It is highly recommended that you first preprocess an application without
setting the flagger until no ALLBASE/SQL errors are detected.  Then
preprocess using the flagger to determine if there are non-standard
extensions in your code.

Note that for static statements, flagger warnings are detected and
generated at preprocessing time.  Whereas, warnings for dynamic
statements are detected at preprocessing time and generated at run time.

Setting the ANSI Compiler Directive 

When you invoke the preprocessor with the FLAGGER option, your
application must contain an ANSI mode compiler directive in order for the
compiler to detect non-standard statements.  The following table lists
the appropriate directive for each language:

          Table 2-1.  ANSI Compiler Directives for Flagging Non-Standard Syntax 

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                  Language                   |                  Directive                  |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
|                      C                      |            ccxl ...  ;info='-Aa'            |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
|                    COBOL                    |              $CONTROL STDWARN               |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
|                   FORTRAN                   |              $OPTION ANSI ON$               |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
|                   Pascal                    |           $standard_level 'ANSI'$           |
|                                             |                                             |
---------------------------------------------------------------------------------------------



MPE/iX 5.0 Documentation