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
 

 

Question about IMS BMP jobs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
siebertr

New User


Joined: 25 Aug 2010
Posts: 7
Location: Brazil, Sao Paulo, Hortolandia

PostPosted: Fri Nov 05, 2010 12:08 am    Post subject: Question about IMS BMP jobs
Reply with quote

Hi,

i am trying to find one information about IMS BMP jobs. Currently im the system that i work with there is an automation process that issue the command:

/STO REG XX,ABDUMP

where XX is the region number of a specific BMP that is captured via REXX automation process by job name(this is done to cancel a 24x7 job). I'd like to know if it is possible to make a IMS BMP stop running with other command to make it complete with success(no cancel message, which generates an abend).
Back to top
View user's profile Send private message

mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Tue Nov 09, 2010 11:18 am    Post subject:
Reply with quote

Why there is a requirement to stop the BMP?

If you are making use of program DFSRRC00 to execute your batch program then I dont think there is need to use IMS command to stop the BMP. I think intention over here is to complete the process gracefully. But by issuing STOP (/STO) you are in fact forcibly closing the process. I suggest to handle the completion of the process in the source code itself and make it time dependent or on demand.
Back to top
View user's profile Send private message
siebertr

New User


Joined: 25 Aug 2010
Posts: 7
Location: Brazil, Sao Paulo, Hortolandia

PostPosted: Tue Nov 09, 2010 4:48 pm    Post subject:
Reply with quote

The BMP is stopped before the shutdown-IPL process. Every weekend we do a procedure that brings IMS down, run backups, shutdown the system and the IPL the system.

So, the BMP is always cancelled due to this procedure. I am trying to find a way to stop the BMP without having to cancel it to avoid a failure message.
Back to top
View user's profile Send private message
mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Wed Nov 10, 2010 8:58 am    Post subject:
Reply with quote

Is that REXX procedure scheduled one which brings down the region? If that so, then you must be knowing the specific time on which it runs. Now considering above is true there can be solutions as mentioned below.

1) Set a dependency between the REXX and your BMP via your scheduler if that is possible..so that REXX procedure do no run till BMP processing is completed

2) Run the BMP after REXX procedure is done. I mean change the scheduled time

3) If above is not possible then you can gracefully close your processing of BMP programmtically, on a time just before the REXX procedure runs.

Hope this will help....
Back to top
View user's profile Send private message
siebertr

New User


Joined: 25 Aug 2010
Posts: 7
Location: Brazil, Sao Paulo, Hortolandia

PostPosted: Wed Nov 10, 2010 6:56 pm    Post subject:
Reply with quote

The problem is that this BMP is a process that runs 24x7. It will never complete. I was wondering if there is any way to set it to complete in a specific time. I can manage the REXX code that issue the /STO REG XX,ABDUMP command to run at any time i want, but the problem is that i don't see a possibility of setting the execution of this BMP to complete in a determined time.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 647
Location: Whitby, ON, Canada

PostPosted: Wed Nov 10, 2010 7:04 pm    Post subject:
Reply with quote

If changing the BMP is an option, you can use some sort of control database to signal the BMP to stop running. IOW, you would create a separate process to update a flag in the control database. When the BMP sees this flag, it could gracefully terminate itself.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2429
Location: Netherlands, Amstelveen

PostPosted: Wed Nov 10, 2010 7:32 pm    Post subject:
Reply with quote

Quote:

an automation process that issue the command:

/STO REG XX,ABDUMP


Automation process : is that a SA/390 automation process ?
What kind of BMP are we talking about :

Message Driven BMPs (also called transaction oriented), which read and
process messages off the IMS message queue.

Non-message BMPs (batch oriented), which do not process IMS messages.

Transaction-oriented BMPs are not scheduled by IMS, so i guess bringing down IMS will have no influence on such a BMP.

Maybe the next link has some useable info :

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.ims11.doc.apg/ims_bmpprocessingtransoriented.htm
Back to top
View user's profile Send private message
mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Thu Nov 11, 2010 9:05 am    Post subject:
Reply with quote

Though requirement of your BMP is to run 24x7, it is actually not running 24x7 due to that REXX utlity. So anyways right now the process is dis-continued for a short period of time. Only problem with that is your BMP result into an abend. That you dont want to happen. On the other side you said you can manage the time of run of the REXX code, but problem is that you are still interupting the BMP as its running 24x7. So if you want to keep intact the 24x7 running nature of BMP then you have to abandon the REXX utility.

On the contrary, if you want the REXX utlity to run then you have sacrifice the 24x7 nature of the job for few minutes within a day. If that is accepatble then as don.leahy said you have devise a mechanism in such a way that your BMP comes to know that its time for REXX utility to run and better shut down to avoid abend. NAd after REXX utlity has run and resion is again started schedule the BMP again
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 -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm


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