IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Have automation send a message to a job


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
superk

Global Moderator


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

PostPosted: Thu Mar 26, 2009 1:05 am
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
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

Global Moderator


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

PostPosted: Fri Mar 27, 2009 1:29 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts UC Automation TSO/ISPF 9
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
Search our Forums:

Back to Top