troubleshooting Question

Stored Procedure job date when invoked from WebSphere

Avatar of astorer
astorer asked on
Operating SystemsDB2IBM System i
11 Comments2 Solutions1045 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 ?

Barry Harper

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 2 Answers and 11 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 2 Answers and 11 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004