IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

Where can I found the brodcast message for my jobs?

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
View previous topic :: View next topic  
Author Message
kalyanbrata.dhar



Joined: 02 Sep 2008
Posts: 2
Location: Kolkata

Posted: Tue Sep 02, 2008 6:00 pm    Post subject: Where can I found the brodcast message for my jobs?  

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  
Pedro



Joined: 01 Sep 2006
Posts: 536
Location: work

Posted: Tue Sep 02, 2008 9:30 pm    Post subject: Reply to: Where can I found the brodcast message for my jobs  

See this thread:
http://ibmmainframes.com/viewtopic.php?t=33708&highlight=
Back to top  
kalyanbrata.dhar



Joined: 02 Sep 2008
Posts: 2
Location: Kolkata

Posted: Wed Sep 03, 2008 1:41 pm    Post subject:  

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  
Pedro



Joined: 01 Sep 2006
Posts: 536
Location: work

Posted: Wed Sep 03, 2008 9:55 pm    Post subject: Reply to: Where can I found the brodcast message for my jobs  

Look at the TSO/E Customization manual here:
http://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  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM