We use VPS to route print from the mainframe to the windows server
and when the server goes down for maintenance etc, the vps printer
goes into an error status cause it can't communicate with the printer.
I can't rely on the network folks to communicate what they are doing to
me so I really need this to be automated.
I have developed a jcl that uses IKJEFT01 to issue an LPQ command
against the printer and some REXX code to extract the status. I can
schedule the job to run in 15 minute intervals and return a code of zero
if all is well or one if the printer is inaccessible.
I'm stuck with how to keep track of the status of the printer. Is there
some global variable I could set somewhere that would maintain the
value of the status of the printer(s) such as up or down.
Is there a better way to do this? Without purchasing new software of
course. Can the HEALTH CHECKER be used for this application?
Any Ideas?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to list...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
--
"I am as you, in you, for you. One as you in all, as all, forever. My call
is your call."
We also use DRS/TCPIP for LPR printers and error msgs from that product are trapped as well.
What do you need automated? VPS provides an exit point (#8) that you
can use to selectively retry failed connections.
--
David Andrews
A. Duda and Sons, Inc.
david....@duda.com
Thanks for all the suggestions,
Gil.
I have installed and supported VPS/VPSIP/DRS/DRSIP/VSV and VMCF in my shop since 1998. As David mentioned, VPS exit 8 handles automated reset/retries quite well, it is well documented, and can be easily customized if needed .
We have the same problem you have plus the vast majority of our customers' printers are multi-host, so there are plenty of times when the customer printer is busy and we have to retry as well. We deliver to both LPD and SOKs printers (we don't have SNA anymore), and lots of different brands/models.
Printer status messages are produced for everything happening with/for the printer. The status messages go to a log, a dataset, syslog, some combination, or they can be suppressed by local installation setup. I run all messages to the log, but I do suppress a few from the console
I have always had excellent support from the vendor.
HTH,
Linda Mooney
In VPS 1.8 EXIT08 was implemented in exit code. Oh yes, the exit code needs
to be told the TCP/IP error code so it knows to retry this type of error. But in
VPS 2.0, the strategy is available in parameters although I have not examined
them yet to see how easy it is. Hey this is what one doing printing suffers
from in the IP world of printing. As a side bar, if indeed the printer is set for 15
minutes timeout and there is very long print actually printing, since the
response does not come to the very end, then even though it is printing, the
printer will TIMEOUT and when it restarts, it starts over (thank you LPD
protocol). I try to stay away from large printouts and LPR/LPD protocol unless
there is no other way. This is why we always TRY to use SOCKET printing,
with timeout coded too, but doing checkpointing just like JES2 does (JES3
too).
Send me an e-mail offlist and be glad to send you the one I have run for
almost 20 years as a guide. I threw in all kinds of extra IP error codes as I
tripped over them.
jim
The printer keyword ERTABMEM and corresponding error table can replace
similar functions performed by VPS User Exit 08.
So he is going to check this out as well. While I was waiting, I was
also able to come up with a jcl routine that issued an LPQ to the printer
and with some rexx code extract the status of the printer. I then used
our mainframe Control-M scheduler to execute the jcl and either stop or
start the printer via VPS if the printer was not available. I used a
Control-M condition to keep tabs of the status of the printer. So far it
seems to be working and will do until the exit or ERTABMEM can be
implemented.
Thanks for all comments,
Gil.
Thanks and best regards,
Gil.
-----Original Message-----
From: Jim Marshall [mailto:Jim.ma...@OPM.GOV]
Sent: Wednesday, November 25, 2009 6:38 AM
To: IBM-...@bama.ua.edu; Gilbert C Cardenas
Cc: Jim Marshall
Subject: Re: Monitor lpr printer on Windows from Mainframe
jim
This e-mail (and any attachments) may contain information that is confidential and/or protected by law. Any review, use, distribution or disclosure to anyone other than the intended recipient(s) is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and delete all copies of this message.