Display PTF Apply Information (DSPPTFAPYI) command
Software Pre-requisite for IBM i 7.1:
The DSPPTFAPI command is delivered with PTF SI52034, which is included in TR8 (Technology Refresh PTF group SF99707 level 8).
You can select a list of PTFs for a product, a PTF group, or all Not-applied PTFs for selected products. The output shows your input selection, a list of all selected PTFs that are not applied (including requisites), and an "Apply immediate" field that Indicates if the selected PTFs can be applied immediately from *SERVICE.
The possible values for "Apply immediate" are:
- *YES - The selected PTFs can be installed immediately.
- *NO - An IPL is required to install the selected PTFs.
- *PRECND - The selected PTFs can be installed immediately if all of the preconditions are met. Note the F20 function key will show a list of all preconditions that must be met to immediately apply all of the selected PTFs.
The DSPPTFAPYI command requires that the PTFs and requisites that are not applied exist in save files in *SERVICE on the partition. If you've downloaded your PTFs as save files, you can immediately run the command. If you've downloaded your PTFs as an image, you need to copy the PTFs into *SERVICE before running the DSPPTFAPYI command. You can use the Copy PTF Save Files (QPZCPYSV) API to copy the PTFs and PTF groups from the optical image to *SERVICE.
DSPPTFAPYI SELECT(*PTFGRP) PTFGRP(SF99709)
This command displays the PTF apply information for all PTFs in the latest level of the HIPER PTF group SF99709 that are not applied.
DSPPTFAPYI LICPGM(*ALL) SELECT(*NOTAPY) OUTPUT(*PRINT)
This command produces a printout of the PTF apply information for all PTFs in *SERVICE that are not currently applied.
DSPPTFAPYI LICPGM(5770SS1) SELECT(SI12345) OUTPUT(*OUTFILE) OUTFILE(MYLIB/MYOUTFILE)
This command directs the PTF apply information for PTF SI12345 to database file MYOUTFILE in library MYLIB. If the output file does not already exist, a new file is created using system file QSYS/QADSPAPY with a format QPZDSAPY as a model.
An SQL alternative approach can be used to answer questions about PTFs. Refer to the IBM i Knowledge Center for more details.
09 January 2020