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 Not under consideration
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Mar 29, 2017

RPG File Description Keywords SFLPAG and SFLSIZ

I'm missing 2 File Description Keywords, SFLPAG and SFLSIZ.
They should return the values from the subfile control record in a WORKSTN file.

Today we are hardcoding the values in the programs and have to remenber to change them if we change the subfile.

The syntax should be like the SFILE that exists today.


Use Case:

Example with a display file with 2 subfiles.

FXX1234DA CF E WORKSTN
F SFILE(F01SFL:F1RRN)
F SFLPAG(F01SFL:F1SFLPAG)
F SFLSIZ(F01SFL:F1SFLSIZ)
F SFILE(F02SFL:F2RRN)
F SFLPAG(F02SFL:F2SFLPAG)
F SFLSIZ(F02SFL:F2SFLSIZ)


Idea priority Low
  • Guest
    Reply
    |
    Aug 25, 2017

    BM does not intend to provide a solution to this request at this time, so it is being closed.

  • Guest
    Reply
    |
    Jun 7, 2017

    It is in the same category as the following request:

    "Program to System Field (P-Field) To Include Position Cursor"
    https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=100386

    I woulld suggest to do it in a professional way to solve all this kind of stuff:

    With the introduction of multilevel qualified data structures it is possible.

    All DDS display featres and attribues will become variables of qualified data structures:

    And in order to make sure 100% that there is no contradiction with any existing names in the program, it will begin with an asteric(*)

    Example:

    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_RI
    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_UL
    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.COLOR_YLW
    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_PC
    *DSPF.MYDSP.MYCTL1.SFLCLR
    *DSPF.MYDSP.MYCTL1.SFLPAG
    *DSPF.MYDSP.MYCTL1.SFLSIZ

    If *DSPF.MYDSP.MYCTL1.SFLPAG = *DSPF.MYDSP.MYCTL1.SFLSIZ; // * if SFLSIZ = SFLPAG.

    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_PC = *ON; // Set on Position Cursor attribue in dispaly file MYDSP, format MYDSPFMT1, field MYFLD1.

    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.COLOR_YLW = *ON; // Set on Color Yellow attribue in dispaly file MYDSP, format MYDSPFMT1, field MYFLD1.

    *DSPF.MYDSP.MYCTL1.SFLCLR = *on // Set on SFLCLR attribute in dispaly file MYDSP, Subfile control record MYCTL1.

  • Guest
    Reply
    |
    May 29, 2017

    or preferably: SFILE(recformat:rrnfield:sflpage:sflsize)

  • Guest
    Reply
    |
    Mar 30, 2017

    Hello,
    good idea. I think it would be better like this:
    A CTLRR1 4S 0H SFLRCDNBR

    An other option is a Hidden field and use it like:
    A SFLSIZ(&FIELD1)
    A SFLPAG(&FIELD2)
    A FIELD1 5S 0H
    A FIELD2 5S 0H