By default, numeric values are printed in fields eight characters wide. The RFIELD subcommand allows you to specify a field width of 1 to 40 characters. This is useful for formatting output or allowing a larger field for more significant digits. The numeric field width is set back to the default of eight after the PRINT statement completes. The form of the subcommand is:
@(RFIELD=numexpr)
where "numexpr" is a numeric expression with a value from 0 to 40.
Note: if RFIELD is set to 0, the field width will automatically be altered to exactly the width required by the printed numeric value.
Example:
PRINT 1,2,3 yields 1 2 3 PRINT @(RFIELD=1),1,2,3 yields 123 PRINT @(RFIELD=4),-4.567 yields -4.5 PRINT @(RFIELD=0),1,-2,5.1 yields 1-25.1
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.