Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4649
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: 4649
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 REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us