PRINTCSV |
![]() ![]() ![]() |
The PRINTCSV statement outputs CSV format data to a print unit.
Format
PRINTCSV {ON print.unit} var1, var2, ...
where
The assembled CSV format data is output to the requested print unit. Print unit -1 is always associated with the display and cannot be changed. Print unit 0 can be switched between the display and the printer by use of the PRINTER statement. Print units 1 to 255 direct their output to the hold file by default but can be redirected using the SETPTR command.
The optional trailing colon suppresses the normal linefeed after the data has been output.
Example
PRINTCSV PROD.NO, QTY
This statement prints the contents of the PROD.NO and QTY variables as a CSV format text string.
See also: |