initialize_application

Description

Generates a call to set the application name on the global CS_CONTEXT handle. If precompiled with the -x option, it will also set the cs_config(CS_SET, CS_EXTERNAL_CONFIG, CS_TRUE) property.

Syntax

exec sql initialize_application 
 [application_name “=” application_name];

Examples

Example 1

    exec sql include sqlca;
     main()
     {
     exec sql initialize_application
         application_name = :appname;
     /* 
     ** The body of the main function goes here,
     ** including various Embedded SQL statements.
     */
     ...
     /* The init statement must be the first
     ** embedded SQL statement in the program. 
     */
     exec sql exit;
     }     /* end of main */

Usage

See also

exit