The default output file name will be the basename of the GRG file with .tex as the replacement extension. The default output filename and extension can be easily changed from within the GRG file. The output filename can also be changed at certain points during generation of the output so that multiple files can be created from one input database file. It is no longer automatically appended when not specified. These older extensions should not be used.
All variants enable debug mode.
When the -d option is used the program will display the GRG file subsequent to preprocessing and will also dump the contents of user defined macros, equates, environment variables, as well as the definitions assigned to system variables, and the text bodies. The -d4 variant dumps details of the loading and field references of any .dbf file. The first stage reads all the predefined macro definitions and expands any user defined macros. The entire file is broken down into its component parts and stored internally. The output file is then generated in the second stage by writing the stored text bodies at the appropriate places.