The service that lists every IBM i Service

Everything I have shared over these last weeks has one thing in common: it comes from an IBM i Service, one of those QSYS2 or SYSTOOLS views that turn the operating system into something you can query. So today, let me give you the key to the whole kingdom, the one that lets you find all the others yourself.

The services are catalogued in a service:

SELECT SERVICE_SCHEMA_NAME, SERVICE_NAME,
      SQL_OBJECT_TYPE, EXAMPLE
 FROM QSYS2.SERVICES_INFO
 ORDER BY SERVICE_SCHEMA_NAME, SERVICE_NAME;

That is the complete list of every IBM i Service on your system. What it is, what type it is, and here is the wonderful part, an EXAMPLE column with working sample SQL for each one. IBM literally ships you a runnable example of how to use every service, right there in the catalog.

This is the single most empowering thing I can hand an administrator, because it means you never again have to wait for someone like me to show you a query. Whatever you are curious about, whether it is jobs, storage, security, network, PTFs, or something I have never mentioned, there is very likely a service for it, and this is how you discover it. Filter the SERVICE_NAME on a keyword like ‘%JOURNAL%’ or ‘%SECURITY%’ and see what IBM has already built for you.

I love these services because they represent a real philosophy: your system should be open to you, queryable, understandable, yours to explore. That is not true of every platform. It is true of this one. Plus, I sometimes forget the actual SQL service, so it’s a cheat sheet.

So consider this your invitation to go exploring. Run the catalog, pick a service you have never used, copy its example, and see what it tells you about your system. That habit, more than any single query I could give you, is what turns a good administrator into a great one.

#IBMi #SQL #Db2 #IBMChampion

Originally posted on LinkedIn. Join the conversation there.

Get new posts by email

Practical IBM i tips on SQL services, security and backup, sent when I publish. No spam, unsubscribe anytime.

Leave a Reply