Retrieving Subfile Size in RPGLE

120 pts.
Tags:
RPG ILE
Subfile Size
Hi Is there any way for us to retrieve subfile size in RPGLE code instead of hard coding it by seeing from the display file. -Vivek

Answer Wiki

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

Discuss This Question: 5  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
  • andyhumphreys
    IO Feedback area? Take a look at http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/dm/rbal3ddiof.htm
    465 pointsBadges:
    report
  • TomLiotta
    Do you want "subfile size" or do you want the number of rows that have been written to the subfile? What will you do with the value? The "subfile size" has little useful meaning to a program. The "subfile size" might be (10) or (15) or many other values, but your program could still write up to 9999 rows to it. It won't make any difference to your program; your program will run the same. The "subfile size" only sets how much memory is allocated when you open the display file. As you add more rows, the system will allocate additional memory as needed. Only when SFLSIZ = SFLPAG does it matter -- that defines a page-at-a-time subfile. Now, SFLPAG can be more useful. For example, that can help you when determining how to reposition in a file when paging up/down with a subfile. Tom
    125,585 pointsBadges:
    report
  • RamvishakRamesh
    Tom, In that case, Is there a way to know the SFLPAG value inside my program? With the help of RRN value, we will be able to know the number of rows that have been written to the subfile right?
    2,505 pointsBadges:
    report
  • philpl1jb
    This http://www.mcpressonline.com/tips-techniques/programming/techtalk-may-2000.html discusses how to retrieve SFLSIZ and SFLPAG.
    49,970 pointsBadges:
    report
  • TomLiotta
    @Phil: Glad you found that. I have my own proc, but it seemed a little complex for posting here. @RamvishakRamesh: ...we will be able to know the number of rows that have been written to the subfile right? You should know how many rows have been written because you counted them as your program was writing them. Tom
    125,585 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