Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Delivered
Workspace IBM i
Categories Print
Created by Guest
Created on Dec 4, 2020

Option to Respect Overrides on QDFRPRTA API

After applying OVRPRTF to a PRTF and then opening that file in a HLL program like RPG, I need to know the various Print File Attributes as applied vs the current "at creation time". The QDFRPRTA could have a new parameter like the QUSRMBRD (retrieve mbr desc) API does that Respects Overrides when it is run. This new parameter would then return the Print File Attributes as applied/used when the file had been open vs the creation-time attributes.


Use Case:

Writing an RPG IV program that needs to know both the Lines Per Inch (LPI) and Characters Per Inch (CPI) at runtime in order to adjust certain output. The lack of the ability to retrieve these runtime print file attributes is limiting.


Idea priority High
  • Guest
    Reply
    |
    Jun 8, 2021

    Yes, we've moved to using the RTVLASTSPLF API and then retrieve that SPOOLED File's attributes. Thanks.

  • Guest
    Reply
    |
    May 28, 2021

    The print application you describe strikes me as being very accommodating to your customers' print preferences. Many IBM i applications override the printer file to force their formatting choices on the users, which prevents them from making alterations to the output.

    Applications already have the means to determine the spooled file attributes ONCE the printer file has been opened. The Retrieve Identity of Last Spooled File Created (QSPRILSP) API will return the identity of the spooled file corresponding to the last printer file opened even before data is put to it. (https://www.ibm.com/docs/api/v1/content/ssw_ibm_i_74/apis/QSPRILSP.htm) This information can be then used to call the Retrieve Spooled File Attributes (QUSRSPLA) API to determine the LPI and CPI values. (https://www.ibm.com/docs/api/v1/content/ssw_ibm_i_74/apis/QUSRSPLA.htm)

    Please let us know if this approach cannot be used, for some reason, by your RPG IV application.

  • Guest
    Reply
    |
    May 7, 2021

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Print
    Operating system - IBM i
    Source - None

    For recording keeping, the previous attributes were:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Db2 for i
    Operating system - IBM i
    Source - None

  • Guest
    Reply
    |
    May 4, 2021

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Db2 for i
    Operating system - IBM i
    Source - None

    For recording keeping, the previous attributes were:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Application Development
    Operating system - IBM i
    Source - None

  • Guest
    Reply
    |
    Mar 23, 2021

    The CAAC has reviewed this requirement and recommends that IBM view this as a high priority requirement that is important to be addressed. This information is not available by any means other than an impractical print option that is unreliable. An API is needed, or an SQL interface, such as adding to SQL services for job info.

    Background: The COMMON Americas Advisory Council (CAAC) members have a broad range of experience in working with small and medium-sized IBM i customers. CAAC has a key role in working with IBM i development to help assess the value and impact of individual RFEs on the broader IBM i community, and has therefore reviewed your RFE.

    For more information about CAAC, see www.common.org/caac

    For more details about CAAC's role with RFEs, see http://www.ibmsystemsmag.com/Blogs/i-Can/May-2017/COMMON-Americas-Advisory-Council-%28CAAC%29-and-RFEs/

    Nancy Uthke-Schmucki - CAAC Program Manager

  • Guest
    Reply
    |
    Mar 4, 2021

    Overrides are an attribute of the job applied when a file is opened, as Bob remarks. There is an API, QDMRTVFO, but it only says what kind of override there is on the file specified. Not very useful. It IS possible to get the override settings with DSPJOB OPTION(*FILOVR) OUTPUT(*PRINT). That, of course, has the usual caveats about using SPLFs as data files.

    The program that actually displays overrides is not officially raised to level of an API we can safely call.

    An SQL service would be good, JOB_INFO and ACTIVE_JOB_INFO don't have this detail, nor does the OPEN_FILES table function.

    I've had a similar need when trying to work with any file in a generic file handler, where the name in the program might not be the actual object in use.