Vous êtes sur la page 1sur 3

System iNetwork Head Nav Subscribe Log In Contact Us Advertise User login Username: * Password: * Request new password

Search Primary links Forums Archives Code Blogs Podcasts Webcasts e-Learning Guides Newsletters About Us Contact Us About the Network Tech Editor Profiles Editorial Calendar Writers Kit Advertise Join Network Categories RPG Programming Other Languages Application Development Database/SQL Availability Security Systems Management Networking IT Mgmt/Careers Site Links Solutions Store Events UK Centre Jobs System iPortal Home Content Query Governor Control System for V5R4 Article ID: 56936Posted July 16th, 2008 in Systems Management By:Carsten Flensburg Are you sick of queries eating your lunch? In this and upcoming issues of the ne wsletter, Carsten provides us with a control system for easily managing query at tributes and optimizing query performance by User Profile. The control system consists partly of the custom-written commands presented here , including ADDUSRQRYA (Add User Query Attributes), CHGUSRQRYA (Change User Quer y Attributes), and RMVUSRQRYA (Remove User Query Attributes). These commands int eract with the provided Query Governor Exit Point program to put you in control of the queries your users run. (Look for other commands in an upcoming issue.) With these commands, you can specify an interactive query time limit and a QAQQI NI query options file to be used for each user profile. Using the CHGUSRQRYA com mand, you can also temporarily override the interactive query time limit and all ow interactive queries to run for the specified user, regardless of the estimate d query run time and without changing the interactive query time limit.

Here is IBM's documentation for the QAQQINI query control attributes. By specifying an appropriate copy of the QAQQINI query options file, you can enf orce different sets of query options for individual user profiles without hard c oding a Change Query Attributes (CHGQRYA) command in the user profile's initial program (or anywhere else). You will, however, need to include a Set User Query Attributes (SETUSRQRYA) command in the initial program and/or in your routing pr ograms. But one of the big advantages is that you can change the Query Attribute s for any user at any time without recompiling. Here is IBM's documentation on the V5R4 query governor exit point. In an upcoming issue of the newsletter, I'm going to present the aforementioned SETUSRQRYA command, as well as the Work with User Query Attributes (WRKUSRQRYA) command. I'll also provide you with further information about how to make all th ese components work together. Here's an overview of the sources included with today's newsletter: CBX979 CBX980 CBX980B CBX9811 CBX9811H CBX9811V CBX9811X CBX9812 CBX9812H CBX9812O CBX9812V CBX9812X CBX9813 CBX9813H CBX9813V CBX9813X RPGLE RPGLE SRVSRC RPGLE PNLGRP RPGLE CMD RPGLE PNLGRP RPGLE RPGLE CMD RPGLE PNLGRP RPGLE CMD Query Governor Exit Program User Query Attributes - services User Query Attributes - binder source Add Add Add Add User User User User Query Query Query Query Attributes - CPP Attributes - Help Attributes - VCP Attributes Attributes Attributes Attributes Attributes Attributes CPP Help POP VCP

Change Change Change Change Change Remove Remove Remove Remove

User User User User User User User User User

Query Query Query Query Query Query Query Query Query

Attributes - CPP Attributes - Help Attributes - VCP Attributes

CBX980M CLP User Query Attributes - build commands If you compile and run the CBX980M CL program and specify a target library as th e only parameter, all of the above objects will be created for you. Please be su re to read the CBX980M source header for further instructions. I've also included information about how to register the CBX979 Query Governor E xit Program in the source header of the CBX979 RPGLE source, but I would suggest that you to postpone that registration until the User Query Attributes command suite and the accompanying information has been completed. You can download a zip file containing all the source code here. Bookmark/Search this post with: Login to post comments Email this page Printer-friendly version Relate d Links Need Help with Indexes? Call the Advisor Query Optimization in DB2 for i5/OS Killer Club Tech Optimize ODBC and OLE DB Performance Properties

5 Cool Things About DB2 UDB for iSeries ProVIP Sponsors ProVIP Sponsors

Featured Links Sponsored Links Trevor Perry selects WebSmart PHP & Nexus Portal for KMR Systems - See Why! Barcode400 - Fully integrate & automate your labeling process. snap your back-end applications into any other application. FREE Paper: From WDSC to RDi - Making Software Change Easier with MKS. Footer Site Links Home Subscribe Now Advertise Contact Us Feedback Terms & Conditions Trademarks P rivacy Policy Copyright Penton Media

Vous aimerez peut-être aussi