How to identify all the PTFs to be restored for one specific PTF to be restored?
Release : 19.0
First to identify all the PTFs to be restored for one specific PTF to be restored run the following JCL :
000022 //SMPGO EXEC PGM=GIMSMP,REGION=4096K,PARM='DATE=U'
000023 //SMPCSI DD DSN=#######.R190.EAMP.CSI,DISP=SHR
000027 //SMPHOLD DD DUMMY
000031 //SMPPTFIN DD DUMMY
000033 //*
000040 //SMPCNTL DD *
000048 SET BOUNDARY(CAIT18).
000049 LIST PTFS.
This is the PTF to be restored:
LU02574 TYPE = PTF
DESCRIPTION = CONTINUOUS DELIVERY LEVEL SET 19.0.02 FOR IDMS
STATUS = REC APP
FMID = CAGJJ00
DATE/TIME REC = 23.213 09:52:28
INS = 23.213 09:57:16
SOURCEID = CAP2109
CAR2110
LEVELSET
PRE VER(001) = LU00020 LU00022 LU00024 LU00027 LU00037 LU00042 LU00045 LU00069 LU00103
LU00160 LU00229 LU00346 LU00444 LU00514 LU00604 LU00620 LU00631 LU00660
LU00753 LU00762 LU00800 LU00816 LU00852 LU00856 LU00869 LU00877 LU00953
LU01065 LU01120 LU01408 LU01684 LU01794 LU02051 LU02076 LU02136 LU02236
LU02498 LU02530 LU02538 SO04416 SO07433 SO08599 SO08855 SO09172 SO09336
SO09476 SO09600 SO09657 SO09820 SO09998 SO10031 SO10227 SO10249 SO10291
SO10358 SO10396 SO10516 SO10753 SO10839 SO10889 SO10947 SO10951 SO11091
SO11138 SO11156 SO11232 SO11517 SO11556 SO11594 SO11859 SO11908 SO11961
SO12008 SO12104 SO12198 SO12206 SO12262 SO12292 SO12360 SO12379 SO12383
SO12390 SO12399 SO12427 SO12434 SO12628 SO12693 SO12734 SO12755 SO12798
SO12811 SO12825 SO12950 SO12964 SO13164 SO13172 SO13295 SO13345 SO13449
SO13488 SO13831 SO13854 SO13926 SO14181 SO14268 SO14305 SO14503 SO14605
SO14627 SO14629 SO14636 SO14691 SO14798 SO15025 SO15041 SO15089 SO15100
SO15332 SO15370 SO15493 SO15611 SO15638 SO15642 SO15643 SO15663 SO15666
SO15759
SUPING VER(001) = LT02050 LT02272 LT02460 LT02574
IFREQ = SO09362 SO12009 SO12810
MOD = RHDCLVLS
Explanation from this example:
Since LU02574 has IFREQ = SO09362 SO12009 SO12810 this explains the inclusion of the three PTFs in the list
and what needs to be done about them.
SO09362 This PTF has no IFREQ and the only PTF with DATA = CICSCSD so it has no PTFs to include in this list.
SO12009 has IFREQ = SO12693 so SO12693 is included, it also has:
MAC = CICSOPT IDMSINTL INTCGLBL
MOD = IDMSCCM0 IDMSLCM0
However there are no other PTFs with any of these SMP/E entities to be included.
SO12810 has IFREQ = SO12811 and it is the only PTF with MOD = UCFCICE0 so only SO12811 should be included.
Also PTFs that replace MOD UCFCICEO and since there are no other PTFs in the report for with MOD = UCFCICE0 only SO12811 should be included.
Finally LU02574 also has MOD = RHDCLVLS apart from the IFREQ. The report contains only one other PTF with MOD = RHDCLVLS, LU02530, so that PTF should be included as well.
In general the PTFs listed in the target PTF's IFREQ clause will need to be restored, along with the PTFs listed in *their* IFREQ clause, and so on, until the chain has no more PTFs.
The first test result that was successful:
000005 GIM20501I SET PROCESSING IS COMPLETE. THE HIGHEST RETURN CODE WAS 00.
000006
000007
000008 RESTORE CHECK SELECT(
000009 LU02574
000010 SO09362
000011 SO12009
000012 SO12810
000013 SO12811
000014 SO12693
000015 LU02530).
000016
000017 GIM20501I RESTORE PROCESSING IS COMPLETE. THE HIGHEST RETURN CODE WAS 00
You can avoid the analysis and simply include all the applied PTFs in the target ZONE with a RESTORE CHECK SELECT.