WIDTH primary command

The WIDTH command sets the display width for one or more fields in TABL display format.

You can issue the command on the IMS data panel when the display format is TABL.

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.

Syntax


1  WIDTH
2.1  fieldref? nnn
2.1  fieldname? nnn
2.1 RESET
fieldref

A single field reference (for example, #1), a range (for example, #2-#5), or a list of single field references and 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 that is being processed.

fldname

The name of a field in the template, which is optionally preceded by the pound symbol (#). Use #RESET to avoid any syntactical ambiguity with command keywords.

nnn
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:
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.
RESET
Resets the display width of all fields to their default values.

Availability

IMS data panel when the display format is TABL.

Related tasks and examples