# Meta Commands and File Redirection - [GAM Configuration](gam.cfg) - [Todrive](Todrive) - [Introduction](#introduction) - [Meta Commands](#meta-commands) - [Select section](#select-section) - [Display sections](#display-sections) - [Select output filter section](#select-output-filter-section) - [Select input filter section](#select-input-filter-section) - [Set configuration variables](#set-configuration-variables) - [Specify multiprocessing termination return code](#specify-multiprocessing-termination-return-code) - [File Redirection](#file-redirection) ## Introduction Meta commands are used to configure GAM operation. File redirection is used to intelligently redirect output from GAM: CSV data, stdout and stderr. The meta commands and file redirection must come before all other arguments and in this order, ... indicates that additional GAM arguments may appear. ``` gam [ ::= select
[save] [verify] ``` - `save` - Set `section =
` in the `[DEFAULT]` section and write configuration data to gam.cfg - `verify` - Print the variable values for the selected section - Values are determined in this order: Selected section, DEFAULT section, Program default ### Display sections Display all of the sections in gam.cfg and mark the currently selected section with a *. ``` showsections ``` ### Select output filter section Select an output filter section from gam.cfg and process a GAM command using values from that section. ``` ::= selectfilter|selectoutputfilter
``` The only `` recognized in this `
` are: * `csv_output_header_filter` * `csv_output_header_drop_filter` * `csv_output_header_force` * `csv_output_header_order` * `csv_output_row_filter` * `csv_output_row_filter_mode` * `csv_output_row_drop_filter` * `csv_output_row_drop_filter_mode` * `csv_output_row_limit` * `csv_output_sort_headers` ### Select input filter section Select an input filter section from gam.cfg and process a GAM command using values from that section. ``` ::= selectinputfilter
``` The only `` recognized in this `
` are: * `csv_input_row_filter` * `csv_input_row_filter_mode` * `csv_input_row_drop_filter` * `csv_input_row_drop_filter_mode` * `csv_input_row_limit` ### Set configuration variables Set variables in gam.cfg. ``` ::= config ( [=] )* [save] [verify] ``` - ` [=] ` - Set ` = ` in the current section - All `` except section are allowed. - The `=` is optional but must be surrounded by spaces if included. - `save` - Write configuration data to gam.cfg - `verify` - Print the variable values for the current section - Values are determined in this order: Current section, DEFAULT section, Program default You can prefix `` with `