PRINT


1 PRINT(record,format)
Prints the record string in the specified format: SNGL or TABL.
Note:
  1. Only those fields that have been selected in the template are printed.
  2. If the record has been reformatted by template processing, the variable INREC contains the input record value and OUTREC will contain the reformatted output record.

Example 1

Print the first hundred records.
if PRTCOUNT() < 100 then PRINT(inrec,'CHAR')

Example 2

Print the current input record in TABL format.
rc = PRINT(inrec,'TABL')

Related tasks