WIDTH primary command

In Browse, View, and Edit, the WIDTH command sets the display width for one or more fields in TABL display format. You can also specify a display width by specifying a value in the output width field on the field attributes panel in the template editor; use the E prefix command to access the field attributes panel.


Read syntax diagramSkip visual syntax diagram
          | '-fldname--' '-nnn-' |   

A single field reference (for example, #1), a range (for example, #2-#5), or a list of single field references/ranges separated by spaces (for example, #1 #4 #6-#7). A single field specification is #n; n is a positive integer and cannot exceed the number of fields in the template being processed.
The name of a field in the template, which is optionally preceded by the pound symbol (#).
A positive integer that represents the desired display width for the fields. If this parameter is omitted, the display width is reset to the default value. The minimum value of nnn is 6. The maximum value of nnn depends on the data type:
Table 1. Maximum value of parameter nnn for different data types
Data Type Maximum value of nnn
binary integer 30
binary floating point 35
packed decimal 45
Other data types If the value of the display length is less than 20, the maximum value of nnn is 30. Otherwise, the maximum value of nnn is the value of the display length plus 10.


The WIDTH command is available on most editor panels. In particular, to allow you to modify how the data is displayed, it can be used in the following panels:

Related tasks and examples