7. Embedded SQL for Pascal : Preprocessor Operation : Command Line Operations : Link Precompiled Forms
 
Share this page                  
Link Precompiled Forms
The technique of declaring a pre-compiled form to the FRS is discussed in the SQL Reference Guide and in The SQL Communications Area (see page The SQL Communications Area) in this chapter. To use such a form in your program, you must also follow the steps described here.
To link a form
1. In VIFRED, select a menu item to compile a form. VIFRED then creates a file in your directory describing the form in the VAX-11 MACRO language. Select a name for the file.
2. Once you have created the MACRO file, assemble it into linkable object code with the VMS command:
macro filename
3. The output of this command is a file with the extension ".obj". Link this object file with your program by listing it in the link command, as in the following example:
$ link formentry,-
  empform.obj,-
  ii_system:[ingres.files]esql.opt/opt