Page 1 of 2

JCL to send alert when VPS printer goes down

PostPosted: Thu Dec 10, 2009 1:38 pm
by kalyanbrata.dhar
Hi,
Any help guys!!
Can we write a JCL that will send an alert whenever a VPS printer installed in that mainframe system goes down?

Any other means than JCL script that can solve the purpose of alerting VPS printer down is also welcome.


Thanks & Regards
Kalyan

Re: JCL to send alert when VPS printer goes down

PostPosted: Thu Dec 10, 2009 4:07 pm
by expat
/RANT ON
Once more let us clarify exactly what JCL is.
it is Job Control Language.

By itself it does nothing. It is used to invoke the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.

JCL does not have magical powers that solve all problems, JCL is merely the vehicule for telling the processor which program you want it to execute.
/RANT OFF

So, if you know of a program that will monitor the status of the printer(s) then you can create a batch job that will monitor the status and send an email accordingly.

Re: JCL to send alert when VPS printer goes down

PostPosted: Fri Dec 11, 2009 7:58 am
by kalyanbrata.dhar
@expat,

Thanks for the info.. but it is not helping me...

Guys, I need some script that will help me to monitor VPS printer in mainframe, in the way that it send some alert to me with the information that VPS printer is down. I am not narrow to JCL scripts, it may be anything..

I hope u can understand my requirement. It is something I am trying to cut down the operator's activities in mainframe..


Regards
Kalyan

Re: JCL to send alert when VPS printer goes down

PostPosted: Sat Dec 12, 2009 12:43 am
by dick scherrer
Hello,

Does the computer operator console show some kind of message when one of these printers "goes down"? Are these printers defined as local or as remotes?

Re: JCL to send alert when VPS printer goes down

PostPosted: Mon Dec 14, 2009 12:58 pm
by kalyanbrata.dhar
Probably, they do not throw any message in console ..
They are remote printers..

Re: JCL to send alert when VPS printer goes down

PostPosted: Tue Dec 15, 2009 12:16 am
by dick scherrer
Hello,

they do not throw any message in console
Bummer - that could be used to trigger a process to send an e-mail. . .

They are remote printers..
You might talk with the people who do admin for the remote systems and see if something could be detected on the remote system and generate a message from there.

You might also see what happens on the mainframe to the job printing when the printer fails. Does the job show "printing" when displayed?

Re: JCL to send alert when VPS printer goes down

PostPosted: Tue Dec 15, 2009 10:06 am
by kalyanbrata.dhar
The printer status goes to either edrained status or wconnect status.

The output remains in the queue showing printing.

Re: JCL to send alert when VPS printer goes down

PostPosted: Wed Dec 16, 2009 12:06 am
by dick scherrer
Hello,

The printer status goes to either edrained status or wconnect status.
You might implement something that checks printer status and sends an e-mail when this happens.

The output remains in the queue showing printing.
You might implement something that will send an e-mail if a job is "printing" for too long a time. . .

Personally, i prefer that remote printers be watched over by remote staff/users.

Re: JCL to send alert when VPS printer goes down

PostPosted: Thu Dec 17, 2009 2:31 pm
by kalyanbrata.dhar
Hi,,

,,You might implement something that checks printer status and sends an e-mail when this happens.,,

This is really a good idea.. Can you please give me some guidance about this?

Thanks
Kalyan

Re: JCL to send alert when VPS printer goes down

PostPosted: Fri Dec 18, 2009 12:39 am
by dick scherrer
Hello,

How do you look at the printer status to see the "drained" or "wconnect" condition?