JCL to send alert when VPS printer goes down



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL to send alert when VPS printer goes down

Postby kalyanbrata.dhar » Thu Dec 10, 2009 1:38 pm

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
kalyanbrata.dhar
 
Posts: 12
Joined: Wed Jul 09, 2008 3:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to send alert when VPS printer goes down

Postby expat » Thu Dec 10, 2009 4:07 pm

/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.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: JCL to send alert when VPS printer goes down

Postby kalyanbrata.dhar » Fri Dec 11, 2009 7:58 am

@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
kalyanbrata.dhar
 
Posts: 12
Joined: Wed Jul 09, 2008 3:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to send alert when VPS printer goes down

Postby dick scherrer » Sat Dec 12, 2009 12:43 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: JCL to send alert when VPS printer goes down

Postby kalyanbrata.dhar » Mon Dec 14, 2009 12:58 pm

Probably, they do not throw any message in console ..
They are remote printers..
kalyanbrata.dhar
 
Posts: 12
Joined: Wed Jul 09, 2008 3:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to send alert when VPS printer goes down

Postby dick scherrer » Tue Dec 15, 2009 12:16 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: JCL to send alert when VPS printer goes down

Postby kalyanbrata.dhar » Tue Dec 15, 2009 10:06 am

The printer status goes to either edrained status or wconnect status.

The output remains in the queue showing printing.
kalyanbrata.dhar
 
Posts: 12
Joined: Wed Jul 09, 2008 3:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to send alert when VPS printer goes down

Postby dick scherrer » Wed Dec 16, 2009 12:06 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: JCL to send alert when VPS printer goes down

Postby kalyanbrata.dhar » Thu Dec 17, 2009 2:31 pm

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
kalyanbrata.dhar
 
Posts: 12
Joined: Wed Jul 09, 2008 3:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to send alert when VPS printer goes down

Postby dick scherrer » Fri Dec 18, 2009 12:39 am

Hello,

How do you look at the printer status to see the "drained" or "wconnect" condition?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post