Labels for stub

<< Click to Display Table of Contents >>

Navigation:  User guide > Text >

Labels for stub

Stub labels are defined using the V (vertical label) or the X (text) command.

All kinds of delimiters are allowed in stub labels. There is no difference in the appearance of CDH, CDO and CDS headers, but CDH headers will be suppressed if there are no CDI items printed following it, for example if format BRS (Blank Row Suppression) has been set.

The text is left-justified when printed.

If the text is too long to fit in the space allocated, it is split onto two or more lines.

If there are too many rows to fit on the page, CL splits the table onto two or more pages (this is called vertical overflow), repeating all the text down to the total rows.

Examples of stub labels:

v = 'Overall rating\Good;Average;Poor',

x = 'One;Two;Three',

When x is used the text is set for stubs, banners, and filter labels

The stub labels may be defined with the variable using colon or semicolon so:

dm v $fred=:'Header\',$128/1:'One',2:'Two',

dm v $fred=;'Header\',$128/1;'One',2;'Two',

is the same as:

dm $fred=$128/1,2,

v = 'Header\One;Two',

More than one label may be defined at the same time so:

dm vh $fred=        :'Row header\':'Col header\',

                         $128/1:'Row one':'Col one',

                         2:'Row two':'Col two',

is the same as:

dm $fred=$128/1,2,

v = 'Row header\Row one;Row two',

h = 'Col header\Col one;Col two',

 

For x the type can be omitted:

dm $fred= $128/        1;'Header\One',

                         2;'Two',

is the same as:

dm $fred=$128/1,2,

x = 'Header\One;Two',