troubleshooting Question

Stored Procedure job date when invoked from WebSphere

Avatar of astorer
astorer asked on
Operating SystemsIBM System iDB2
11 Comments1 Solution1045 ViewsLast Modified:
We use WebSphere Application Server 5.1 and access data in DB2/400 over JDBC using the toolbox driver in jt400.
There are instances where we call stored procedures (RPG) in DB2/400.  These stored procedures make use of Job Date in their processing.  The SQL and stored procedures run in the QZDASOINIT job.  

Ok the problem is that this job date is the date the job was started, so as we pass midnight, the job date is incorrect.  So, we can end those jobs at midnight and new ones will be started automatically as WebSphere needs them (they are prestart jobs).

Unfortunately, the job date of the new jobs is not the date that QZDASOINIT is started, it is the date that WebSphere is started.  It "inherits" the start date from WebSphere.  Note also that WebSphere and/or OS/400 take care of starting extra QZDASOINIT jobs as required - I cannot manage the starting of these jobs myself.

So, to get the right job date, we must
Before midnight
 - stop the QZDASOINIT jobs
 - stop WebSphere
After midnight
 - start WebSphere
 - When WebSphere  tries to use JDBC, QZDASOINIT jobs are started with the correct job date

Is there an alternative solution here that means I do not need to restart WebSphere as I want to run 24x7 ?

Thanks
Andrew
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros