Db2 for z/OS and MobileFirst Part 3: Using a stored procedure to execute RUNSTATS
In this article, we'll show you how to use a stored procedure to call a standard Db2 for z/OS® utility, RUNSTATS, from within a mobile app. You can apply the steps in this post to call other Db2 for z/OS utilities as well.
Before you begin
Make sure that you've set up your IBM MobileFirst® Platform environment by completing the steps in Part 1.
About this task
A version of this tutorial was originally published on developerWorks® on 21 September, 2015. The following author contributed to the original version of this tutorial:
- Jane Man, Senior Software Engineer, IBM®
Procedure
Results
The following figure shows what your application looks like in an Android emulator:

Now that you've learned how to use a stored procedure to call RUNSTATS, you can apply this knowledge to incorporate other Db2 for z/OS utilities into your mobile apps.
We hope that you've found this series of tutorials helpful and that they've given you a good glimpse at the capabilities of using IBM MobileFirst Platform to leverage the value of your Db2 for z/OS transactional data. Use the following resources to learn more about working with Db2 for z/OS data in mobile environments.