|
View previous topic :: View next topic
|
| Author |
Message |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
 |
Bill Dennis
Active Member

Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| Thanks Bill, that'll work nicely. |
|
| Back to top |
|
 |
|
|