PTF exit program

60 pts.
Tags:
APYPTF
CL
Exit programs
PTFs
I am about to write a PTF exit program in CL. I have gone through the infocenter docuementation but some questions: 1. If I have 10 PTFs and that is already been loaded using LODPTF, how many times PTF exit programs will be called if I issue APYPTF? If it is 10 times then in which sequence? I mean which PTF will be resposible for the first call and so on. 2. What is meant by PRE-REMOVE TEMPORARILY, PRE-REMOVE TEMPORARILY, PRE-APPLY PERMANENTLY and PRE-REMOVE PERMANENTLY. Are there iSeries commands for those? 3. Infocenter mentioned about sending CPF3638 *ESCAPE message from exit program which will backout the changes. My question is who will take care about backing it out? If it is by system then ok but how to achieve this otherwise. 4. Does anyone have a table showing the combinations of Current PTF status and PTF operation and action to be taken? Many thanks Sudip

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

My first question is why do you want/need to write a PTF exit program? What do you want to achieve with this?

1. I assume that it’s the same order that you list them in the APYPTF command – I don’t know this for sure.

2. This is also an assumption – PRE-REMOVE TEMP would be before you remove a TEMP applied PTF, PRE-APPLY TEMP, before temporarily applying a PTF and the same would then go for the perm PTFs.

3. This I don’t know.

4. This would depend upon your version and which hardware you have – so I think it would be reasonably specific to your machine.

Regards,

Martin Gilbert.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Raju400
    Martin, Following are the reasons for writing a PTF exit pgm: We want to ensure that prerequisites to apply a PTF are met, like subsystem is down, related process and jobs are not running, additional dependent s/ws are installed etc. Calrifications to your answers: 1. If APYPTF is *ALL then will it sequence it from LODPTF? 4. Copy paste from infocenter: ===================================================================== Current PTF status INPUT; CHAR(1) The current status of the PTF. A PTF is not considered to be fully applied or removed until the PTF exit program has completed any post-apply or post-remove processing. The PTF status does not change until after the PTF exit program has been called. Therefore this parameter will contain the status of the PTF prior to the PTF operation. 0 Loaded but not applied 1 Applied temporarily PTF operation INPUT; CHAR(1) The change being made to the status of the PTF. 0 Remove temporarily 1 Apply temporarily 2 Apply permanently 3 Remove permanently 4 Pre-remove temporarily 5 Pre-apply temporarily 6 Pre-apply permanently 7 Pre-remove permanently ===================================================================== These are the possible values of Current PTF status and PTF operation. I was looking for all combinations of these two and expected actions like: Current PTF status=0, PTF operation=0, Action=? Current PTF status=0, PTF operation=0, Action=? etc
    60 pointsBadges:
    report
  • Gilly400
    Hi, OK, I see what you mean. 1. I would assume that to be correct. 4. If Current status is 0, then I think all operations except 0 are valid. If current status is 1, then I think operations 2 - 7 are valid. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following