SQL inside programs
How to write SQL inside RPG, why SQLCODE zero does not mean everything went well, and where injection hides on this platform too.
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.
Turning the seven-digit format into a real date with a single expression.
What WRKACTJOB shows on screen, but queryable and sortable.
And more to the point, which objects inside it are eating the space.
Db2 for i records which indexes it would have wanted, one query at a time. Creating them all is the quickest way to slow the database down.