Here is an example
of the DataSources
and Roles
elements:
<DataSources>
<DataSource name="PRIMARYDATA">
<Roles>
<Role type="A" maxVars="0" order="true" minVars="1"
name="VAR"> Required variable label</Role>
<Role type="N" maxVars="0" order="true" minVars="0"
name="OPTNVAR" exclude="VAR">Numeric variable label</Role>
<Role type="C" maxVars="3" order="true"
minVars="0" name="OPTCVAR">Character variable label<Role>
</Roles>
</DataSource>
</DataSources>
When you run this code,
you get the Data and Roles sections in this example:
A red asterisk appears
for the
Required variable label role because
you must assign a column to this role. In the code, this requirement
is indicated by
minVars=”1”
.