Data editing > Writing out data > Writing to a report file > Integer variables
 
Integer variables
Quick reference
To print the contents of an integer variable, type:
var_name[:field_width]
More information
If the report statement names a variable by itself, Quantum prints the variable’s value starting in the first print position available. If the specification includes a field width, Quantum prints the variable’s value right-justified in a field of the given width. Any extra columns on the left of the field width are shown as blanks.
If you type the variable name by itself, without a field width, Quantum prints it left‑justified starting in the first available position on the line. To print values right‑justified, follow the variable name with a colon and a field width. Quantum then prints all values for that variable right-justified in a field of the width you have given.
Example
report rfile codenums:5
prints the values of the variable called codenums right-justified in a field five positions wide. Values that are shorter than five characters are padded on the left with blanks.
See also
Writing to a report file