Epi Info™ User Guide
Command Reference
Analysis Commands: DISPLAY
Description
This command displays table, form, and database information.
Syntax
DISPLAY <option> [<sub-option>] [OUTTABLE=<tablename>]
- The <option> determines the type and source of information displayed.
- The <sub-option> refers to the type of displayed information.
- The <tablename> represents the name of the data output table to receive results (optional).
- Option DBVARIABLES – displays information about fields and variables.
- Sub-option DEFINE displays only defined variables.
- Sub-option FIELDVAR displays only fields for the form in the current READ and RELATE tables.
- Sub-option LIST followed by a list of variable names displays only the information about the listed variables.
- Option DBVIEWS – displays information about forms and other Epi Info 7 specific tables in a database.
- Sub-option is the path of the database. Omitting the sub-option displays information for the current project database.
- Option TABLES – displays information about tables in a database, whether Epi Info 7 specific or generic.
- Sub-option is the path of the database. Omitting the sub-option displays information for the current project database.
Examples
Example 1: The DISPLAY command is used to show the tables, forms, and variables from an existing data source.
READ {.\Projects\Sample\Sample.prj}:Oswego DISPLAY TABLES DISPLAY DBVIEWS DISPLAY DBVARIABLES
Example 2: All forms in the Sample database are displayed.
DISPLAY DBVIEWS '.\Projects\Sample\Sample.prj'
Example 3: All tables in the Sample database are displayed.
DISPLAY TABLES '.\Projects\Sample\Sample.prj'
Example 4: All variables in the Oswego form of the Sample project are written to a new table in the Sample project called VarInfo.
READ {.\Projects\Sample\Sample.prj}:Oswego DISPLAY DBVARIABLES OUTTABLE=VarInfo