If you have ever wanted to know exactly which PTFs are on your system, when they arrived, and which ones are waiting on an IPL to take effect, you no longer need to page through DSPPTF one product at a time.
The whole PTF inventory is a table you can query:
SELECT PTF_PRODUCT_ID, PTF_IDENTIFIER,
PTF_LOADED_STATUS, PTF_SAVE_FILE,
PTF_IPL_ACTION, PTF_CREATION_TIMESTAMP
FROM QSYS2.PTF_INFO
WHERE PTF_IPL_ACTION <> 'NONE'
ORDER BY PTF_PRODUCT_ID;
As written, this SQL shows you every PTF that has an action pending at the next IPL. This is the list that answers the question “did my last PTF apply actually finish, or is it waiting for a restart I never scheduled?” That gap catches people constantly. They apply a Group PTF, the work seems done, and months later they are confused about why they are not getting the fix they know they installed, because it has been sitting in a pending state the whole time waiting for an IPL that never came.
Drop the WHERE clause, and you have your complete PTF inventory, queryable, joinable, and reportable. Want to know every PTF loaded in the last 90 days? Filter on PTF_CREATION_TIMESTAMP. Want to hand your auditor a clean list? Export it.
This pairs beautifully with the Group PTF currency check I shared a few weeks back. That one tells you how far behind you are. This one tells you whether what you have applied is actually live.
Between the two, you never again have to guess about the maintenance state of your system. You can just know. A good administrator knows this.
#IBMi #Power #SystemAdministration
Originally posted on LinkedIn. Join the conversation there.
Leave a Reply