90 pts.
 How to Monitor File Changes done thru STRSQL
I need a solution for monitoring file changes done by programmers using the STRSQL from a command line for SOX purposes.

Software/Hardware used:
ASKED: June 17, 2011  6:44 PM
UPDATED: June 20, 2011  6:22 PM
  Help
 Approved Answer - Chosen by Apatheticnow

We have monitors on other tools that the programmers have access to.

How do you monitor the Qshell db2 utility? Or a REXX proc that accepts and runs SQL dynamically (like STRSQL would do)? With monitors for functions like those, adapting for STRSQL should be easy.

If STRSQL is explicitly needed, then either the QIBM_QCA_RTV_COMMAND exit point for a Command Analyzer Retrieve Exit Program or QIBM_QCA_CHG_COMMAND for a Command Analyzer Change Exit Program could be useful. An exit program might run a Start Database Monitor (STRDBMON) command to have a database monitor run while STRSQL is running.

Without additional work, a database monitor that is scoped to a job will continue to run until the job ends. But you can ignore anything collected that isn't in your chosen scope. The monitor will end when the job ends, if nothing else is provided to end it first.

Of course, you could also run STRDBMON for a system-wide monitor. In that scenario, you might want a daily scheduled job that ends and restarts the monitor. When a new monitor repository is created, the scheduled job could process what was in the previous day's repository and save relevant items into a permanent archive before deleting the old daily copy.

If you prefer vendor responses, post back.

Tom

ANSWERED:  Jun 17, 2011  11:47 PM (GMT)  by Apatheticnow

 
Other Answers:

You should be able to do this with an exit program.

Check out http://www.itjungle.com/fhg/fhg110806-story01.html on how to set one up.

Last Wiki Answer Submitted:  June 20, 2011  6:22 pm  by  Teandy   5,830 pts.
Latest Answer Wiki Contributors:  Teandy   5,830 pts.
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Do you want to monitor STRSQL usage or do you want to monitor accesses against or changes to records in database files?

Usually it’s far more important to monitor changes to your data (or accesses) than just to monitor a particular tool. That is, you might monitor STRSQL for years even though it’s only used for ad hoc work with temporary files. Meanwhile, someone uses UPDDTA to update critical company files, and you missed it.

Monitoring STRSQL lets you see some things being done by one of the many possible tools. Monitoring your data can let you track everything that happens without needing to care which tool is used.

Tom

 108,005 pts.

 

Looking to monitor changes made to production data to handle SOX audits. We have monitors on other tools that the programmers have access to. Per your response it sounds like you believe we should be Journaling, I’m not interested in that.

 90 pts.

 

Tom,
Thanks, we had been looking at the STRDBMON but was sure if there was an easier way.

 90 pts.