Hi Lawrence:
We use repeat_data to do just what you're asking. We will open a PDF file as follows:
02305 if dup_out then close (dup_out)
02310 dup_out=unt; open (dup_out,opt="MARGINS=250:500:500:500;OVERWRITE;FILE="+px_pdf$+file_name$)%wdx$+"*pdf*"
02315 print (dup_out)'font'(%bill_font$,%font_size,""),'DF',
02320 print (dup_out)'lpi'(6),'cpi'(10),
Once the file is opened, we then do this:
repeat data to out on dup_out
where 'out' is our output channel (*winprt*).
I hope this helps.
Regards
Dave Fullerton