MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scheduling

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
tarandeep_singh
Beginner


Joined: 07 Mar 2005
Posts: 6
Topics: 3

PostPosted: Thu May 17, 2007 11:51 pm    Post subject: Scheduling Reply with quote

I have a requirement where a Db2 table needs to be updated every 1 hour across 24 X 7 . (except a weekly 2 hr maintenance).
Apart from a scheduler where a job can be scheduled for this.

Is there any other way , may be thru CICS or anyother DB2 related way.

awaiting a reply
Thanks
Taran
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 18, 2007 4:36 am    Post subject: Reply with quote

Why would you not want to use the scheduler - that is what it is there for and what it is good at?

There are other ways - you could sit there and do it yourself but if you want automation then the scheduler is the correct tool to use.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri May 18, 2007 6:51 am    Post subject: Reply with quote

tarandeep_singh,

Quote:

I have a requirement where a Db2 table needs to be updated every 1 hour across 24 X 7


what is the source of your update 'trigger'. what i mean is: why are there updates to be done?

from the web, an mqs-queue, a file received?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
tarandeep_singh
Beginner


Joined: 07 Mar 2005
Posts: 6
Topics: 3

PostPosted: Fri May 18, 2007 7:19 am    Post subject: Reply with quote

The source of trigger is rates from a file or MQ that come every 1 hour
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri May 18, 2007 8:00 am    Post subject: Reply with quote

tarandeep_singh,

Write a CICS transaction that gets invoked from MQ to perform the update.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri May 18, 2007 8:15 am    Post subject: Reply with quote

tarandeep_singh,

to reduce the amount of 'posting tag' (like phone tag)
i will make the following assumptions:
  • 1 original source of rates are both file and MQ
  • 2 validation/proofing is required before DB2 update


I would consider this is a batch activity; I would not waste CICS resources for this process.

1. MQ message design would include a field to indicate original source
file processed and written to MQ or MQ-msg from outside source.

2. The creation of the file would trigger a job to reformat and write to MQ. DFSORT
can do this, so no need to write a program to write the msgs.

3. Would write a batch run-unit (many modularized COBOL pgms) that would run 24/7.

4. the MQGET would use the option to wait until a msg is available.
The run-unit would be idle when no msgs available.

5. would use RRSAF; really relieves the programming effort on commits and rollbacks.

6. any validation/proofing would be accomplished by the run-unit. rejects would be
written to a second queue, which would be read by another run-unit to provide audit
and reporting.

7. would take advantage of the inherent MQS facilities for additional audit.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group