PRTCOUNT
Returns the current count of records printed.
Example
Print the first 10 input records.
if prtcount() < 10 then print(inrec,'CHAR')
Returns the current count of records printed.
Example
if prtcount() < 10 then print(inrec,'CHAR')