CL Command Reference - APYPTF
CL Command List > APYPTF Reference
Description:
The Apply Program Temporary Fix (APYPTF) command applies program temporary fixes (PTF) to a specified product. Before a PTF can be applied, it must first be loaded by the Load Program Temporary Fix (LODPTF) command.
When a PTF is applied, it completely replaces the affected objects in the product. PTFs can be applied temporarily or permanently. If they are applied temporarily, the replaced objects are saved by the system and can later be restored to the product by the Remove Program Temporary Fix (RMVPTF) command. If PTFs are applied permanently, the replaced objects are deleted from the system.
The APYPTF command is used to apply immediate PTFs at the time the command is run, or to request PTFs to be applied during the next unattended initial program load (IPL). During an attended IPL, the Work with PTFs display is used to apply PTFs at the time the system is started.
Some IPLs may take longer than others when PTFs are being applied.
Restriction: To use this command, you must be signed on as QSRV, or have *ALLOBJ authority.
Examples:
Example 1: Applying PTFs Temporarily
APYPTF LICPGM(5722SS1) DELAYED(*YES)
This command applies all the programming fixes that affect the operating system (5722SS1). The fixes are temporarily applied at the next IPL.
Example 2: Applying PTFs Permanently
APYPTF LICPGM(5722SS1) SELECT(SI00003 SI00008 SI00012)
APY(*PERM) DELAYED(*YES)
This command permanently applies PTFs SI00003, SI00008, and SI00012 to the operating system in library QSYS at the next IPL.
Example 3: Applying All Loaded PTFs
APYPTF LICPGM(*ALL) DELAYED(*IMMDLY)
This command permanently applies all PTFs that can be applied immediately and sets the rest to be applied at the next IPL.
Example 4: Applying Immediate PTFs and their Immediate Corequisites and Prerequisites at the Time the Command is Run
APYPTF LICPGM(5722SS1) SELECT(SI00003 SI00008 SI00012)
APYREQ(*YES)
This command applies the identified PTFs and their corequisites and prerequisites at the time the command is run if the PTFs and their corequisites and prerequisites are defined as immediate. PTFs defined as delayed or defined with corequisites or prerequisites defined as delayed are ignored along with the delayed requisites.
Example 5: Applying PTFs and their corequisites and prerequisites at the next IPL
APYPTF LICPGM(5722SS1) SELECT(SI00003 SI00008 SI00012)
DELAYED(*YES) APYREQ(*YES)
This command applies the identified PTFs and their corequisites and prerequisites at the next IPL regardless of whether they are defined as delayed or immediate.
Example 6: Applying PTFs and their corequisites and prerequisites as soon as possible
APYPTF LICPGM(5722SS1) SELECT(SI00003 SI00008 SI00012)
DELAYED(*IMMDLY) APYREQ(*YES)
This command applies the identified PTFs and their corequisites and prerequisites at the time the command is run if the PTFs and their corequisites and prerequisites are defined as immediate. PTFs defined as delayed or defined with corequisites or prerequisites defined as delayed are applied during the next IPL along with the delayed requisites.