Expand All Subfile

425 pts.
Tags:
AS/400
AS/400 Subfiles
For Expand All Subfile processing, we define SFLSIZ(11) and SFLPAG(10). Case: First page of 10 records loaded, then user pressed pagedown. however actually we are restricting the subfile size to only for 11 records. Anyway the subfile is expanded and next set of records gets loaded. My question is: How the system handles the expanding subfile size? bases on what value the system expands the subfile size?

Software/Hardware used:
Iseries

Answer Wiki

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

See answer to other question you just asked.

http://itknowledgeexchange.techtarget.com/itanswers/loadall-subfile/

===============================================================

The system <b>doesn’t</b> handle expanding subfile size. Your program has to handle it, by adding more records, by redisplaying the existing subfile or by doing whatever else you program it to do. The system only allocates additional blocks of memory to hold the new subfile records that you WRITE; if you don’t write any, then the system doesn’t do anything about it.

When a user attempts to scroll past the last record of the subfile that you built, the system will return control to your program. Your program then must decide how to “handle” things.

Tom

Discuss This Question: 3  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
  • Splat
    I seem to remember that the SFLSIZ is what the system reserves when the display file is opened. I use the SFLSIZ = SFLPAG + 1 for convenience as I can write more records to the subfile than SFLSIZ indicates, but I wouldn't recommend doing it for a subfile intended to hold a large number of records. I generally prefer SFLSIZ = SFLPAG & handling the functions in the program.
    7,665 pointsBadges:
    report
  • TomLiotta
    I seem to remember that the SFLSIZ is what the system reserves when the display file is opened. That's pretty much my understanding too. IIRC, the subfile used to be stored in the PAG. Memory was allocated in the PAG based on what was configured for SFLSIZ(). With ILE and multiple activation groups and (apparently) some preparatory work for multi-threading and who knows what all else, I haven't paid attention to this; so I don't know where it might be stored nowadays. I'd expect it to be tied to an AG, but beyond that...? SFLSIZ = SFLPAG + 1 for convenience That's probably the most common by far. I'd say that SFLSIZ = SFLPAG * n might be better, but I doubt if a lot of sites would notice a difference. Tom
    125,585 pointsBadges:
    report
  • Splat
    The SFLSIZ = SFLPAG + 1 I use for small groups of records, generally confirmation pages and the like. Subfile performance picked up dramatically on the S/38 when IBM stopped keeping the entire subfile in memory & started swapping it out to disk.
    7,665 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