Sorry, you do not have permission to ask a question, You must login to ask a question.

Sorry, you do not have permission to ask a question.

brainchime.com

brainchime.com

brainchime.com Navigation

  • Home
  • About Us
  • Contact Us

Mobile menu

Close
  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

brainchime.com Latest Questions

Admin
Admin
Asked: October 6, 20242024-10-06T18:26:50+05:30 2024-10-06T18:26:50+05:30In: IBM i

How to check if a PTF is applied on an IBM I machine?

I have been struggling to find a way to check whether a PTF is applied on my IBM i machine or not since I have to code an RPG program to first check if the PTF is applied on IBM i machine then only execute some set of IBM i commands.

as400ptf
  • 0
  • 0
  • 11
  • 2
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Related Questions

  • what is level check error and how to resolve level check error?
  • What are AS400 systems. Please provide a introduction of AS400 systems?
  • Is there any online server available for practicing on AS400 system?
  • What are the menus available in AS400?
  • What is subsystem in AS400?
  • How to copy a save file from IFS to a library?
  • How to transfer savf from as400 to pc?
  • How to copy ifs file to another directory?
  • How to copy savf from ifs to pc?
  • How to copy ifs file to physical file?
  • How to copy save file to ifs?
  • How to copy spool file to ifs?
  • How to copy physical file to ifs?
  • How to copy file from pc to IFS?
  • How to download spool file from AS400?
  • How do I delete a library in AS400?
  • How do I copy data from AS400 to excel?
  • What is library in AS400?
  • How to find all the source physical file available in AS400?
  • How to find all libraries in AS400?
  • How to change the library list in AS400?
  • What is access path in AS400?
  • What is the difference between source physical file and physical file in as400?
  • how to find the source file of an object in as400?
  • how to change record length of source physical file in as400?
  • What is cpf4174 error in as400?
  • What is the use of varying keyword in rpgle?
  • What is DDS in AS400?
  • What is the difference between PF and LF in as400?
  • Why do we use CHGPF command in AS400?
  • how to create physical file in as400?
  • What are the data types supported by physical files in AS400?
  • how to add data in physical file in as400?
  • how to view journal entries in as400?
  • what is the use of ovrdbf in as400?
  • What is an array in AS400?
  • what is a data queue in as400 and why do we use data queue?
  • How to run stored procedure in AS400?
  • How to resolve session and device error in AS400?
  • how to check as400 system values?
  • How to check triggers on a file in as400?
  • How to find damaged objects in AS400?
  • what is module in as400?
  • How to create binding directory in as400?
  • how to create ifs folder in as400?
  • What is ASP in AS400?
  • What is JOBQ and how to create a JOBQ in AS400?
  • What is PSDS in AS400?
  • What is SEU in AS400 and why do we use it?
  • What is the multi-format logical file in AS400?
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Admin
    Admin
    2024-10-06T18:36:42+05:30Added an answer on October 6, 2024 at 6:36 pm

    You can check if a PTF is applied on an IBM i machine. There are various ways to check it.

    1. There is a GO PTF command that you can use to work with the PTF-related things. You need to type it on the command line and press Enter. You can check for specific PTF using option 5 display Program temporary fixes (PTF) information. Option 5 triggers the DSPPTF command and displays the command screen where you have to provide more details to be able to find information about the PTF.
    2. If you have a PTF number available with you then you can use this SQL query to check if PTF is applied on your IBM i machine or not.
      Select ptf_identifier, ptf_loaded_status 
      from qsys2/ptf_info 
      where ptf_identifier = 'SI71091'

      If the above query does not return any row then that means PTF is not applied. If it returns a row then we need to check for loaded status if the loaded status is PERMANENTLY APPLIED then PTF is applied on your IBM i machine and if the loaded status is SUPERSEDED then as per the IBM page that means A later PTF existed on the system, but it may not be applied. If this PTF has been superseded, display the PTF details to determine the PTF number that supersedes this PTF, and then display the PTF to determine its status. You can get the latest superseding PTF details by also selecting the column PTF_SUPERSEDED_BY_PTF from QSYS2/PTF_INFO and then you need to check Loaded Status of PTF for this superseding PTF to confirm if the PTF is applied on your IBM i machine.

      Select ptf_identifier, ptf_loaded_status,
      ptf_superseded_by_ptf 
      from qsys2/ptf_info 
      where ptf_identifier = 'SI71091'
    3. You can also use api QPZRTVFX to retrieve the PTF information. However, this api returns PTF loaded status in the form of numbers ranging from 0 to 6 instead to text because statuses are translatable text instead of special values.
      0: the PTF has never been loaded.
      1: the PTF has been loaded.
      2: the PTF has been applied.
      3: the PTF has been applied permanently.
      4: the PTF has been permanently removed.
      5: the PTF is damaged. An error occurred while applying the PTF. It needs to be reloaded and applied.
      6: the PTF is superseded, meaning another PTF with more recent changes has been loaded on the system. The ptf id that has been loaded can be found in the superseded by ptf id field.
      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Sidebar

Statistics

  • Questions 143
  • Answers 177
  • Comments 0
  • Popular
  • Answers
  • Admin

    Why do we use OVERLAY keyword in data structure subfields ...

    • 12 Answers
  • Admin

    How to call sql stored procedure with output parameter from ...

    • 6 Answers
  • Admin

    How to use declare global temporary table statement in RPGLE?

    • 5 Answers
  • Admin
    Admin added an answer CPF4131 is a record format level check error. This indicates… October 18, 2024 at 1:58 am
  • Admin
    Admin added an answer To open the command prompt with administrator rights you can… October 17, 2024 at 12:27 am
  • Admin
    Admin added an answer In AS400, "AS" stands for Application system. This article discusses… October 13, 2024 at 12:49 pm

Related Questions

  • Admin

    what is level check error and how to resolve level ...

    • 1 Answer
  • Admin

    What are AS400 systems. Please provide a introduction of AS400 ...

    • 1 Answer
  • Admin

    Is there any online server available for practicing on AS400 ...

    • 1 Answer
  • Admin

    What are the menus available in AS400?

    • 1 Answer
  • Admin

    What is subsystem in AS400?

    • 1 Answer

Trending Tags

.htaccess (1) as400 (123) bing-webmaster (2) control-language (12) db2 (33) ftp (8) google-adsense (1) google-search-console (3) https-redirect (1) iasp (4) ifs (22) jar (4) operations (3) php-my-admin (1) qshell (3) robots.txt (4) rpg (26) stored-procedure (3) stroed procedure (1) triggers (1) yoast (4)

Explore

  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

Footer

BrainChime

BrainChime is a blog that posts question-and-answer-based format articles on diverse topics and engages in discussions by allowing people to provide answers/comments without the need to register and log in.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • FAQs
  • Categories
  • Tags

© 2024 BrainChime. All Rights Reserved
by BrainChime.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.