‎2011 Jul 01 7:58 AM
Hi,
I have a file in application server i want my program to directly fetch the file from the application server and send it to the printer?
Can any one please help me in this?
Thanks,
Sandeep.
‎2011 Jul 01 1:53 PM
Hi Sandeep,
open/read dataset as text file, use WRITE / to output to spool. No way to circumvent the spool.
Regards,
Clemens
‎2011 Jul 01 3:33 PM
Hi Clemens & Sandeep, hi everybody.
you may "surround" the write statements with a NEW-PAGE PRINT ON... NEW-PAGE PRINT OFF in order to send the output directly to the printer.
For example:
WRITE: / 'Hi, on screen'.
NEW-PAGE PRINT ON.
WRITE: / 'now to the printer'.
NEW-PAGE PRINT OFF.
WRITE: / 'back on screen'.
I hope it helps. Kind regards,
Alvaro