HPlogo ALLBASE/SQL Advanced Application Programming Guide: HP 3000 MPE/iX Computer Systems > Chapter 2 Flagging Non-Standard SQL with the FIPS Flagger

Coding Tips

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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

LanguageDirective
Cccxl ... ;info='-Aa'
COBOL$CONTROL STDWARN
FORTRAN$OPTION ANSI ON$
Pascal$standard_level 'ANSI'$

 

Feedback to webmaster