PowerLab400
Articles Guides Recipes Tools Software Errors Releases Jobs Other blogs
Log in

Browse

Loading…

The list did not load. Open as a page

Categories

All Software Hardware RPG Other Database System Security

Articles tagged #sql — 17 results

RPG

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.

Software

DDS and SQL: two ways of describing data

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.

RPG

SQLCODE -305: the FETCH that stops on NULLs

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.

Software

Reading a spooled file with SQL

Querying the contents of a spooled file without copying it into a physical file first.

Software

Converting a CYYMMDD date in SQL

Turning the seven-digit format into a real date with a single expression.

Software

Seeing which jobs use the most CPU

What WRKACTJOB shows on screen, but queryable and sortable.

Software

Finding out how much space a library uses

And more to the point, which objects inside it are eating the space.

Software

The indexes the system suggests, and which to create

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.

← Previous Page 2 of 2 Next →

Most read

  1. 1 Setting up IBM i Access Client Solutions
  2. 2 The library list
  3. 3 Project4i: what if sources had a project?
  4. 4 IBM i 7.6 TR2 and 7.5 TR8: what is in them
  5. 5 Opening a SAVF without an IBM i

Stay updated

A note when a new article or a new tool goes up. Nothing else.


PowerLab400

Articles, guides and tools for IBM i and AS/400.

LinkedIn

Community

Home About us Contact Privacy and cookies

Categories

Software Hardware RPG Other Database System Security

Contact

studio@powerlab400.com Log in

© 2026 PowerLab400

Resources for IBM i / AS400

PowerLab400 is an independent site, not affiliated with or endorsed by IBM. IBM, IBM i, AS/400 and Power are trademarks of International Business Machines Corporation.

This site uses cookies. More information

Necessary only Accept