Turning on the audit journal and reading it with SQL
QAUDJRN is not on by default and cannot be enabled retroactively. The command to turn it on, the functions to query it, and the library they live in.
Articles tagged #sql — 13 results
QAUDJRN is not on by default and cannot be enabled retroactively. The command to turn it on, the functions to query it, and the library they live in.
No revolution, but three or four things that take manual work off whoever administers the system. And one that concerns anybody sending mail from it.
Calling an external API from an RPG program needs no extra software and no rewrite: it can be done in SQL, in a few lines. The available routes, and when each one makes sense.
When a query slows down, the cause is almost always a missing index or a condition written in a way the database cannot use. Here is how to find out instead of guessing.
How software is written, compiled and kept alive here. For anyone arriving from other languages, and for anyone who has never read the reasons written down.
How to write SQL inside RPG, why SQLCODE zero does not mean everything went well, and where injection hides on this platform too.
The same file is both a physical file and a table. When to stay with DDS, when to move to SQL, and what it costs not to decide.
Eighty-two COALESCEs are not the answer. What is left in the variables when a FETCH meets a NULL, and why ALWNULL has nothing to do with it.
Querying the contents of a spooled file without copying it into a physical file first.