Page 1 of 1

Sending file to Print Que

Posted: Fri May 20, 2005 12:20 pm
by Jay
Hi All,

Has anyone ever sent a file to a Printer ?

Is it possible to do it in DataStage ?

The printer is a remote printer. Checks are supposed to be printed out by the printer.

Thanks in advance
Jay

Posted: Fri May 20, 2005 12:45 pm
by chulett
How would you do it outside of DataStage? More than likey, I'd say you will end up writing to a flat file and then (after job) issuing whatever command is necessary to get the file printed to the remote printer.

Posted: Fri May 20, 2005 12:56 pm
by Jay
Yes, you are right.

Its a PDF file. So i think all i have to do is FTP it to the Print Server. I have its IP Address. It should automatically get placed on the print que.

i have to ask the client some more details. How exactly are they doing it currently, outside of DataStage.

i'll keep you posted, most likely next week....

have a good weekend
Jay

Posted: Fri May 20, 2005 5:58 pm
by ray.wurlod
You can do anything for which there exists a command line in DataStage, either through ExecSH/ExecDOS or through DSExecute (or through Perform or Execute in DataStage BASIC).

Whether it makes sense to do so is an entirely different question.

For example, you could invoke a script to perform the FTP operation you suggest. If it were a text file, you could invoke the lp or lpr command directly. And so on.

Posted: Mon May 23, 2005 11:58 am
by Jay
thanks, Ray...will keep you all posted....

till now the client is working out the exact procedure they are going to follow...

Posted: Tue May 24, 2005 1:38 pm
by Jay
this process has been shelved ...