IBM Data & AI

 Welcome to the IBM Data & AI Ideas Portal for Clients! 

We welcome and appreciate your feedback on IBM Data & AI Products to help make them even better than they are today!
Before you submit an idea, please perform a search first as a similar idea may have already been reported in the portal.  If a related idea is not yet listed, please create a new idea and include with it a description which includes expected behavior as well as why having this feature would improve the service and how it would address your use case.
IBM Employees:
Clients:
  • Our team welcomes any feedback  and suggestions you have for improving our offerings / products!  This forum allows us to connect your offering / product improvement ideas with IBM product and engineering teams.
  • If you have not registered on this portal please click on the following link and register.  To complete registration you will need to open the email you will receive from Aha to confirm your identity. http://ibm.biz/IBM-Data-and-AI-Portal-Register
Additional Information:
  • The shorter URL for this site is: https://ibm.biz/IBM-Data-and-AI-Ideas
  • To view our roadmaps: http://ibm.biz/Data-and-AI-Roadmaps
  • Reminder: This is not the place to submit defects or support needs, please use normal support channel for these cases
  • Please do not use the Ideas Portal for reporting bugs - we ask that you report bugs or issues with the product by contacting IBM support.

Need Instrumentation to handle Native Strored Procedures created with the AUTONOMOUS keyword

Need assistance with how to handle native stored procedures created with the ‘AUTONOMOUS’ keyword.  One of the benefits of using the Db2 instrumentation interface, is the ability to follow the flow of  Stored Procedure SQL from the calling application program to the Db2 Stored Procedures and then back to the calling application (this works as all of the SQL runs under the same thread and the same address space as the calling application.  However, the SQL, within Stored procedures created with the ‘AUTONOMOUS’ keyword get their own thread and are executed under the DBM1 address space.  We use the ASID ‘-START TRACE’ filter parameter or, if unfiltered, uses the QWHSACE (from the standard header) to get the address space id to determine if the trace record is one that we’re interested in.    

I tried adding the DBM1 address space id along with the address space id of the measured address space to the -START TRACE, but that caused the -START TRACE command to fail as it’s set up to allow only one address space id.  When I look at the trace records without an ASID() filter, I notice that value in QWHCAACE (in the correlation header) matches the measured address spaces ACE - QWHSACE (in the standard header).    

 

 

IFCID

Standard Header QWHSACE

Corr Header QWHCAACE

233 ‐ Begin Call Autonomous Native SP

259BC420 ‐ ACE points to the address being measured

259BC420

061 ‐ Begin Update SQL

259BC720 ‐ ACE points to DBM1 address Space

259BC420

061 ‐ End Update SQL

259BC720

259BC420

233 ‐ End Call Autonomous Native SP

259BC420

259BC420

 

Is there some way to include these trace records when specifying the ASID() parameter for the calling application?

  • Carol Priestley
  • Jan 13 2020
  • Need More Information
Why is it useful?
Who would benefit from this IDEA? Common customers that wished to trace stored procedures created with the AUTONOMOUS keyword.
How should it work?

Trace records should be returned with the calling thread

Idea Priority Urgent
Priority Justification Common customer cannot see their Stored Procedure SQL.
Customer Name Compuware Corporation
Submitting Organization
Submitter Tags
  • Attach files
  • Admin
    Janet Figone commented
    4 May 03:38pm

    Carol, I have reminded the developer reviewing your idea that we are awaiting details on the the information he needs. I will update you as soon as I receive his response. Thank you.

  • Admin
    Janet Figone commented
    21 Apr 05:33pm

    Hello, I'm following up with the Db2 for z/OS developer now to understand what information is needed and we will get it posted here as quickly as possible. Thank you.

  • Carol Priestley commented
    21 Apr 04:21pm

    This is flagged as needing more information. What information do you require?

NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "anonymous@euprivacy.out" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions