Blank line Input capable page at a time subfile

15 pts.
Tags:
AS/400
AS/400 Subfiles
AS400 RPGLE
Hi - I am a bit rusty subfile-wise and was hoping to find an example of a page at a time subfile that provides position to and blank line input capability on the user's request to add records to the file. I'm particularly curious about the paging concerns involved. What can I say...It's been a while. Thanks in advance.

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: 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
  • TomLiotta
    ...to add records to the file.   Is the expectation that users will be "adding a record" or "adding records" through the subfile? Is this the intended primary data entry method? Will the entire record be shown? Will there be an option code, e.g., 'Option 1=Create'?   Tom
    125,585 pointsBadges:
    report
  • MiamiAl
    Hi Tom... To answer your question...Yes, the expectation is that the user will be adding records via the blank lines provided. This (rather convoluted) program I am being asked to convert to page at a time was initially coded as a load all.  Before it began experiencing issues because of the 9999 limit, the load subfile routine was coded to write to the subfile and after exiting the input data file read/write loop it would check for either the NO records loaded condition or whether the user had requested via F6 key to add records. If either condition found true, it would load 10 blank lines to the subfile for data entry. What is happening now however, is that the data file has grown considerably. The user is presented with the maxed out subfile and immediately presses F6 to ADD. Without getting too into the admittedly bizarre  sequence of events.... because we check for the 9999 condition , pressing F6 is no longer able to comply with the request to  add blank lines. The current screen does show the field values needed for content entry to the data file.
    15 pointsBadges:
    report
  • Splat
    When doing an '1=Create' in the past I've kept that line as part of the subfile control record, with a 1 in the option field and a value (or values) in the primary field(s) directing the program to an entry screen/routine.
    6,855 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