Syntax
Output can be printed in text mode using a columnar layout. The column statement enables configuration of the layout using the syntax:
local column NAME heading "HEADING" (width WIDTH)
The heading is printed above the column contents and the width in characters allows control of the column's width.
The layout for a column can be undefined using
local column NAME clear
Output column definition is only relevant when working in the text mode offered by Invantive Data Hub. In non-text mode the column layout can be defined, but has no effect on output.
Examples
The following example makes the first name column 5 characters and the second one 30, with custom headings:
local column FIRST_NAME heading "First Name" width 5
local column LAST_NAME heading "Last Name" width 30
select 'John' FIRST_NAME
, 'Doe' LAST_NAME