Since the introduction of Group PTFs, it has become a little easier for system administrators to monitor and work with IBM i’s current PTF status. The Work with PTF Groups (WRKPTFGRP) command lists all currently installed or registered group PTFs, including the cumulative PTF (CUM) package, showing the current level and status as well as the PTF group’s text description.
The WRKPTFGRP list panel’s function key F6 also lets you print a group PTF list with your job’s current spooled output. If you manage more than one system and want to compare group PTF levels or need to keep an online inventory of your current group PTF level, you are, however, in for a challenge because there’s no output file option for the WRKPTFGRP command. To cover that missing angle, I decided to write a List PTF Groups (LSTPTFGRP) command.
In a recent article, I presented Work with Command Security (WRKCMDSEC), and for that command, I had to include an output file option. So for the output file part of the equation, I had the necessary building blocks. To obtain the group PTF information, a quick search in the IBM Information Center’s API section turned up the List PTF Groups (QpzListPtfGroups) API, which delivers the current system’s group PTF information to a user space.