Precompiling the application

The format of the command to precompile an Embedded SQL/COBOL 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]

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

NoteThe precompilers for 64-bit applications are cobpre64 and cobpre_r64. The cobpre64 is the non-reentrant precompiler, and cobpre_r64 is the reentrant version.

Some of the options are switches that activate features of the precompiler, such as generating stored procedures. By default, these features are off, you can turn turn them on by including the option on the cobpre command line. Other command qualifiers specify values for the preprocessor, for example, a password. Enter the value after the option (with or without intervening spaces).

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

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