V (vertical label)

<< Click to Display Table of Contents >>

Navigation:  Reference > Commands >

V (vertical label)

The form of the V (stub labels) command is one of the following:

V variable = labels,

V table = labels,

V = labels,

The V command assigns text to be used to label the rows of a table. The first two forms assign text to a variable or table by name; in the last form, text is assigned to the last variable or table defined.

See also the chapter on text.

A stub label is expected for every table, except statistics and value distribution tables. Most tables receive stub labels from the variable that is used for the rows of the table on its first definition. A warning for missing text will be issued if no stub label is supplied.

If a stub label is assigned to a table or variable which already has a V assigned to it, the new text replaces the old one and a warning message appears. Only the last allocated text is used.

Formats RLW (Row Label Width) and LBR (Lines Between Rows) control the positioning of the row labels on the page. RLW specifies the margin width; if a line of text in a row label contains more than RLW characters, it is split at RLW characters and a warning message issued. LBR specifies the number of blank lines to appear before each row label.

There is a special format RHW (Row Header Width) which gives the margin for headers and overheaders in stub labels.

Format IRO (Indent Row Overflow) can be used to indent second and subsequent lines of row labels which are split into more than one line.

Row labels are left-adjusted when printed. Format IBM (Indentation Before Margin) can be used to leave a margin at the left hand side of the table.

Format NDIS can be used to suppress all the rows of a table except the statistics.

The number of labels specified, separated by the delimiter specified by format CDI (Character Delimiting Items), must be equal to the number of bits in the variable or rows in the table (excluding totals) to which it is assigned.

Note that ivars and wvars count as having one bit in V commands; this text is printed instead of %AVG when the variable is used in a statistics table.

Examples of V commands:

v $sex = 'Male;Female',

v #32a = 'Whether attended the show\yes;no',

v $rate1="How good\

Very good<v2>; 

Good<v1>; 

Average<v0>; 

Poor<v-1>; 

Very poor<v-2>; 

Don't know",