The compform command compiles a form that is stored in a database and places it in a text file.
The compform command has the following format:
compform dbname |vnode::dbname[/server_class] form filename [-m]
[-uusername] [-Ggroupid]
Specifies the name of the database. Also specifies the vnode and server_class, if required, as described in Standard Flags and Parameters.
Specifies the name of the form. You can compile only one form at a time.
Specifies the name of the text file into which the compiled form is placed.
VMS: Compiles a form into OpenVMS macro code. Unless you specify this flag, compform compiles the form into C language code. This flag is set by default on OpenVMS machines. 
Specifies the effective user for the session, as described in Standard Flags and Parameters.
Specifies a group identifier, as described in Standard Flags and Parameters.
On VMS, enclose this parameter in double quotation marks ("-Ggroupid").
This command compiles the employees form, which is stored in the emp database, and places it in the file empform.c:
compform emp employees empform.c
Before you can link the compiled form to your application, you must translate the compiled form into object code. For more information, see the Character-based Querying and Reporting Tools User Guide.