Precompiling the application

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

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]

NoteYou can flag options using either a slash (/) or a dash (-); cobpre -l and cobpre /l are equivalent.

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

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

Some of the options 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).

See Appendix A, “Utility Commands Reference,” for a detailed description of the cobpre options.