AS/400: Load all subfiles

620 pts.
Tags:
AS/400
AS/400 Subfiles
DSPF
In load all subfile i'm loading 100 records and displaying 10 records per page in the screen(i.e, SLFSIZE=100,SLFPAGE=10). But I need to display records from 3rd page onwards..how to do that, can I use SFLRCDNUM in DSPF. Please help me.
1

Answer Wiki

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

You should define a hidden field with 4S 0 and set SFLRCDNBR(CURSOR) for this field.

CURRRN 4S 0H SFLRCDNBR(CURSOR)

You should move the RRN of the record to this field to point cursor.

Maybe in your case, you could consider moving ’21’ to this field to have the cursor on 3rd page.

Click Here for Sample Code.

Pradeep.

Discuss This Question: 4  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.
  • hunshabbir7
    Do you want to show first two pages if a user presses PageUp or you never want to show first two pages?
    2,900 pointsBadges:
    report
  • chowas400
    yes, i want to show first two pages if a user presses page up.
    620 pointsBadges:
    report
  • philpl1jb

    Then the answer above should work.

    CURRRN 4S 0H SFLRCDNBR(CURSOR)


    54,090 pointsBadges:
    report
  • deepu9321
    Then, My First reply should work for you.

    Click Here to get sample code.

    Pradeep.
    4,980 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.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: