* Capturing a print queue
@ 1998-12-22 5:00 Richard
1998-12-22 5:00 ` Brian Schenkenberger, VAXman-
1998-12-24 5:00 ` Alan Adams
0 siblings, 2 replies; 5+ messages in thread
From: Richard @ 1998-12-22 5:00 UTC (permalink / raw)
Hi,
We run a pharmacy system that is unable to produce its standard reports
in a csv format which to be honest is a pain!
The software prints using the print queues on an alpha and it has
occurred to me that I could probably install a backend on the print
queue that could manipulate the output from the software (text) and dump
it into a file as csv rather than to a printer.
However, I've searched the net and the online manuals with no joy for
instructions on how to install such a beast. I am contemplating writing
the conversion utility in Perl as it appears just the job but I cannot
see how a routine, once written, would fit on the backend of the queue!
Can anybody point me in the right direction? Even better, has this
already been done and is it freely available?
Many thanks
Richard
--
Richard Eyles | General techie anorak
Principal Pharmacist Computer Services | DOS Win95 AIX HP-Unix (just)
Queen Alexandra Hospital, Portsmouth | TCPIP IPX Novell
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capturing a print queue
1998-12-22 5:00 Capturing a print queue Richard
@ 1998-12-22 5:00 ` Brian Schenkenberger, VAXman-
1998-12-23 5:00 ` Richard
1998-12-24 5:00 ` Alan Adams
1 sibling, 1 reply; 5+ messages in thread
From: Brian Schenkenberger, VAXman- @ 1998-12-22 5:00 UTC (permalink / raw)
In article <lTBPpAAEn9f2EwtA@nugget.demon.co.uk>, Richard <Richard@nugget.demon.co.uk> writes:
>Hi,
>
>We run a pharmacy system that is unable to produce its standard reports
>in a csv format which to be honest is a pain!
What is a csv format for pharmacy systems?
>The software prints using the print queues on an alpha and it has
>occurred to me that I could probably install a backend on the print
>queue that could manipulate the output from the software (text) and dump
>it into a file as csv rather than to a printer.
>
>However, I've searched the net and the online manuals with no joy for
>instructions on how to install such a beast. I am contemplating writing
>the conversion utility in Perl as it appears just the job but I cannot
>see how a routine, once written, would fit on the backend of the queue!
I suspect you'd want to look into the PSM$xxx routines.
--
VAXman- OpenVMS APE certification number: AAA-0001 VAXman@TMESIS.COM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capturing a print queue
1998-12-22 5:00 ` Brian Schenkenberger, VAXman-
@ 1998-12-23 5:00 ` Richard
0 siblings, 0 replies; 5+ messages in thread
From: Richard @ 1998-12-23 5:00 UTC (permalink / raw)
In article <009D1137.85A4E69A@SendSpamHere.ORG>, Brian Schenkenberger,
VAXman- <system@SendSpamHere.ORG> writes
>In article <lTBPpAAEn9f2EwtA@nugget.demon.co.uk>, Richard
><Richard@nugget.demon.co.uk> writes:
>>Hi,
>>
>>We run a pharmacy system that is unable to produce its standard reports
>>in a csv format which to be honest is a pain!
>
>What is a csv format for pharmacy systems?
Sorry, by this I mean that it cannot create comma separated variable
(csv) files for easy import into Excel, Access etc.
>>However, I've searched the net and the online manuals with no joy for
>>instructions on how to install such a beast. I am contemplating writing
>>the conversion utility in Perl as it appears just the job but I cannot
>>see how a routine, once written, would fit on the backend of the queue!
>
>I suspect you'd want to look into the PSM$xxx routines.
Thank you, I'll look there
Richard
--
Richard Eyles | General techie anorak
Principal Pharmacist Computer Services | DOS Win95 AIX HP-Unix (just)
Queen Alexandra Hospital, Portsmouth | TCPIP IPX Novell
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capturing a print queue
1998-12-22 5:00 Capturing a print queue Richard
1998-12-22 5:00 ` Brian Schenkenberger, VAXman-
@ 1998-12-24 5:00 ` Alan Adams
1998-12-29 5:00 ` Richard
1 sibling, 1 reply; 5+ messages in thread
From: Alan Adams @ 1998-12-24 5:00 UTC (permalink / raw)
Richard wrote:
>
> Hi,
>
> We run a pharmacy system that is unable to produce its standard reports
> in a csv format which to be honest is a pain!
>
> The software prints using the print queues on an alpha and it has
> occurred to me that I could probably install a backend on the print
> queue that could manipulate the output from the software (text) and dump
> it into a file as csv rather than to a printer.
>
Dirty solution:
Make sure the queue is never started.
Using F$GETQUI from DCL you can find out the file name of the temporary
file,
then copy the file, delete the entry from the queue, and do your own
thing with the file.
Same works from compiled code, use SYS$GETQUI.
GETQUI is probably the most complex system service interface in VMS. The
HELP examples are useful in DCL, and it's wirth playing with the DCL
version
before trying the SYS version, which is even worse.
However, step by step, persistence, and patience produce results.
All this assumes a text printer. Postscript or PCL would be a pain.
(Valium might be useful too.)
--
Alan Adams
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capturing a print queue
1998-12-24 5:00 ` Alan Adams
@ 1998-12-29 5:00 ` Richard
0 siblings, 0 replies; 5+ messages in thread
From: Richard @ 1998-12-29 5:00 UTC (permalink / raw)
In article <36829F1A.608D@gecm.com>, Alan Adams <nospam@gecm.com> writes
>Dirty solution:
>
>Make sure the queue is never started.
>Using F$GETQUI from DCL you can find out the file name of the temporary
>file,
>then copy the file, delete the entry from the queue, and do your own
>thing with the file.
>
>Same works from compiled code, use SYS$GETQUI.
>
>GETQUI is probably the most complex system service interface in VMS. The
>HELP examples are useful in DCL, and it's wirth playing with the DCL
>version
>before trying the SYS version, which is even worse.
>
>However, step by step, persistence, and patience produce results.
>
>All this assumes a text printer. Postscript or PCL would be a pain.
>
>(Valium might be useful too.)
Thanks for all this info. I forgot to say that this is for a DEC Alpha
running OSF not VMS. Now I'm beginning to think I asked in the wrong
newsgroup!
The printers are all text printers (thankfully) so it will be a step by
step patient process. You've probably seen my sig so the Valium is quite
appropriate (although the generic is cheaper!)
Cheers
--
Richard Eyles | General techie anorak
Principal Pharmacist Computer Services | DOS Win95 AIX HP-Unix (just)
Queen Alexandra Hospital, Portsmouth | TCPIP IPX Novell
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-12-29 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-22 5:00 Capturing a print queue Richard
1998-12-22 5:00 ` Brian Schenkenberger, VAXman-
1998-12-23 5:00 ` Richard
1998-12-24 5:00 ` Alan Adams
1998-12-29 5:00 ` Richard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox