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

Where can I found the brodcast message for my jobs?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalyanbrata.dhar

New User


Joined: 02 Sep 2008
Posts: 13
Location: Kolkata

PostPosted: Tue Sep 02, 2008 6:00 pm
Reply with quote

I'm running several jobs and declaring notify <myid>. Now, my requirement is to get all the abend jobs list and send it to user. For that I tried as below:

// IF ABEND | RC > 3000 THEN
//STEP03 EXEC PGM=IEBGENER
//SYSUT1 DD *
JOB CSAEXDM7 HAS ABENDED
/*
//SYSUT2 DD DSN=CSCT.KALYAN.PSQ00.TEST2,DISP=MOD
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
// ENDIF

I added these lines as last step of my JCL. This is working fine when the job is abending.

But for JCL error, this is not working. I discussed with concrened groups, and they told as below:

--------------------------
If you look closely at the Messages in the spool, the problem lies here.



To make the step write data into your file, the Step has to run. Now the step will run if and only if there is an abend in the previous step. Now, what happens is, one the previous steps gets an abend and then some step later, it gets a JCL ERROR and stops further processing of the JCL, so the IF ABEND step is never encountered.



Now here is what the solution is:



You will see that if you provide a NOTIFY statement in your job card and provide a ID, the Job completion message goes to that ID. There is a BROADCAST Dataset where this message is stored. If in all your jobs if you have the same ID in the NOTIFY statement all the job completion notice will go to that USER ID’s BROADCAST Dataset, which can be read by a separate job and we can select only those jobs which has a abend message. But to do this, you have to select a ID which can be used in NOTIFY and also you have to find out the BROADCAST Dataset naming convention.
---------------------------------------

Now my question is, where should I look for these brodcast messages? how can I store them?

kalyan
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Sep 02, 2008 9:30 pm
Reply with quote

See this thread:
http://ibmmainframes.com/viewtopic.php?t=33708&highlight=
Back to top
View user's profile Send private message
kalyanbrata.dhar

New User


Joined: 02 Sep 2008
Posts: 13
Location: Kolkata

PostPosted: Wed Sep 03, 2008 1:41 pm
Reply with quote

Thank you Pedro.. I tried the same. But problem is no <user>.BRODCAST.LIST is getting created. I manually created the same. But it is not working. While I am using LISTBC NONOTICES command from TSO it is saying the following error:

IKJ56961E LISTBC TERMINATED. THE MESSAGE LOG COULD NOT BE ALLOCATED.+
IKJ56961E DYNAMIC ALLOCATION ERROR CODE OF 9700 AND INFORMATION REASON CODE OF
0000.
***


I am not sure either user level broadcast datasets are enabled or not. Can you please tell me how to enable this.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Sep 03, 2008 9:55 pm
Reply with quote

Look at the TSO/E Customization manual here:
www-03.ibm.com/systems/z/os/zos/bkserv/r10pdf/#tsoe
and look at Part 4, "Maintaining ... the broadcast dataset".

I do not think you can allocate just any dataset. I think it has to be a specific dsorg, and possibly initialized to correct format.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts How to create a list of SAR jobs with... CA Products 3
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top