Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Have automation send a message to a job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Mar 26, 2009 1:05 am    Post subject: Have automation send a message to a job
Reply with quote

I've got an interesting project here, and I'm wondering if what I'm thinking might even be possible.

I'm writing a console automation routine for this message:

IEF244I INIT <JOBNAME> - UNABLE TO ALLOCATE 1 UNIT(S)

The storage guys want me to just cancel the job, i.e:

$CJ( jobid)

and they're not asking for any notifications or emails when this happens.

I was just thinking, it would be really cool if I could write a brief explanation into the job's JESMSGLG as to why it was cancelled. I've never heard of it being done, but is it feasible somehow?
Back to top
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Mar 27, 2009 12:08 am    Post subject:
Reply with quote

A JES2 command can write a message to the JOBLOG if you have the jobID. Not sure what else you would provide besides the "Unable to allocate" for a reason?

$d m j29,’your message here’

Also, have you looked at ALLOCxx in PARMLIB to take actions for these instances?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Mar 27, 2009 1:29 am    Post subject: Reply to: Have automation send a message to a job
Reply with quote

Thanks Bill, that'll work nicely.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HSM log message : GENMSG -ROU/1 -NL/! kadiresh JCL & VSAM 1 Sat Mar 03, 2018 5:52 pm
No new posts No message in reply queue!! Vignesh Sid Java & MQSeries 3 Thu Jan 11, 2018 10:45 am
No new posts Unable to send mail with SMTP commands harsh.saxena579 JCL & VSAM 10 Tue Dec 12, 2017 1:58 pm
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us