Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

See content of a printer queue

 
SOLVED
Go to solution
Yyrkoon
Advisor

See content of a printer queue


Hi all,
I have a program which is sending data to a printer queue. My problem is that I would like to put this data into a file but I cannot modify program code. Can I redirect the queue to a file or see the content on this queue or something like that?

Thanks in advance.
8 REPLIES 8
P Muralidhar Kini
Honored Contributor

Re: See content of a printer queue

Hi Yyrkoon,

>> I have a program which is sending data to a printer queue.
Looks like you have a program which is printing data by sending it to a printer queue.

>> My problem is that I would like to put this data into a file but I cannot modify
>> program code.
The best & neat way to achieve this would be to modify the program itself.
Any particular reason that you dont want to modify your program ?

Also in case you redirect the output to a file, do you still want the data to get
printed ?

Regards,
Murali
Let There Be Rock - AC/DC
Yyrkoon
Advisor

Re: See content of a printer queue

Murali,
The program does not belong to my team, so despite we have the source code we are not authorize to change it.

I just can count with a queue with data to print, and of course with your kind knowledge :-)
P Muralidhar Kini
Honored Contributor

Re: See content of a printer queue

Hi Yyrkoon,

Discussion on a similar requirement -
http://www.computing.net/answers/openvms/print-queue-send-to-text-file/504.html

Looks like you can do it using the EXECSYMB (Executive Symbiont) utility.
You can find this in the openVMS freeware site -
http://www.openvms.compaq.com/openvms/freeware/

Check the above links and see it that suits your requirement.

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
Yyrkoon
Advisor

Re: See content of a printer queue

Ok, I gonna see what can I do with that.

Many thanks.
Joseph Huber_1
Honored Contributor

Re: See content of a printer queue


If going the EXECSYMB way, and the queue-name can't be changed (in the program or via logical name),
delete and re-create the original printer-queue under a different queue name.
Then create the EXECSYMB queue with the name of the old printer-queue.
The command-file executing under EXECSYMB can be rather trivial:
1. retrieve the queued file and user specification.
2. copy the file to the wanted user- or system-directory.

As an example how to retrieve the user and file/specs from the queue symbiont, see for example my convert-x-to-ps command file:
http://wwwvms.mppmu.mpg.de/vms$common/execsymb/CNV_ANSI_PS.COM
http://www.mpp.mpg.de/~huber