Precompiling the application

The format of the statement to precompile an Embedded SQL source program is as follows:

cobpre 
     [-Ccompiler] 
     [-Ddatabase_name]
     [-Ffips_level]
     [-G[isql_file_name]] 
     [-Iinclude_path_name] 
     [-Jcharset_locale_name] 
     [-Ksyntax_level]
     [-L[listing_file_name]]
     [-Ninterface_file_name]
     [-Otarget_file_name] 
     [-Ppassword] 
     [-Sserver_name] 
     [-Ttag_id] 
     [-Uuser_id] 
     [-Vversion_number] 
     [-Zlanguage_locale_name]
     [@ options_file]
     [-a] [-b] [-c] [-d] [-e] [-f] [-l] [-m] [-r] [-s] [-u] [-v] [-w] [-x] [-y]
     filename[.ext]

NoteOptions can be flagged using either a slash (/) or a dash (-); therefore, cobpre -l and cobpre /l are equivalent.

If you enter an invalid option, the precompiler lists the options that are available.

program is the name of the Embedded SQL/COBOL source file. You must enter the name of the source file. The default extension for program is .pco. The cobpre option generates an output file with a .cbl extension.

Some of the options are switches that activate features of the precompiler, such as generating stored procedures. These features are “off” by default. To turn them “on” include the option on the cobpre statement line. Other statement qualifiers specify values for the preprocessor—a password, for example. Enter the value after the option (with or without intervening spaces).

Refer to Appendix B, “Precompiler Reference,” for a detailed description of the cobpre options.