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).
  1. Option DBVARIABLES – displays information about fields and variables.
    1. Sub-option DEFINE displays only defined variables.
    2. Sub-option FIELDVAR displays only fields for the form in the current READ and RELATE tables.
    3. Sub-option LIST followed by a list of variable names displays only the information about the listed variables.
  2. Option DBVIEWS – displays information about forms and other Epi Info 7 specific tables in a database.
    1. Sub-option is the path of the database. Omitting the sub-option displays information for the current project database.
  3. Option TABLES – displays information about tables in a database, whether Epi Info 7 specific or generic.
    1. 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