Syntax
The syntax for the GENERATE
command is:
Clauses:
GENERATE EXCLUDE | INCLUDE
COMMON
DATAVARS
SCREENS screen, ...
SORTIDS
VARS variable, ...
ACTIVITIES permissions
AT [r][,c]
CLEAR 'c'
DATA HILITE | VIDEO options
LABELS n
PAD [n][,m]
PROMPT HILITE | VIDEO options
The general clauses on the GENERATE
command apply to all of
the fields generated by the command. The AT
clause refers to
the position of the first field.
EXCLUDE
Omits classes of variables or specific variables from the
GENERATE
. When EXCLUDE
is specified, any
variable (screen) not EXCLUDED
is INCLUDED
automatically.
INCLUDE
Includes classes of variables or specific variables in the
GENERATE
. When INCLUDE
is specified, any
variables (or screens) not INCLUDE
d are
EXCLUDED
.
COMMON
Specifies all common variables.
DATAVARS
Specifies all data fields.
SORTIDS
Specifies all key fields (sort ids).
SCREENS
Specifies screen names to be INCLUDE
d or
EXCLUDE
d in menu screens.
VARS
Specifies a list of named variables.
For example, to specify particular options for three fields and
then bring in all the remaining fields in the EMPLOYEE
record:
RECORD EMPLOYEE / COMPANY.EMPLOYEE
TEXT 'This is the Demographic Record' UNDERLINE CENTER AT +2
FIELD ID PROMPT 'Employee ID:' DATA VIDEO INVERSE
FIELD NAME PROMPT 'Name of Employee' REQUIRED
FIELD SSN PICTURE 'ddd-dd-dddd'
GENERATE EXCLUDE VARS ID NAME SSN
ENDRECORD