how to keep display the same page of the subfile from where record got deleted in as400?

1420 pts.
Tags:
AS/400
Hi, I have a load all subfile which is used to display the records of a file on the screen. I have the previlage to either enter/delete the  records on screen, which will be shown on the screen.Now, my SFLSIZE is 16 And SFLPAG  is 15. now i have 25 records on display. now i  am deleting 20th record,  after pressing F11(F11=delete) it got deleted. but my subfile is showing the first page only ..but i want it to display the second page from record got deleted.what should be done here..?

Software/Hardware used:
AS400, RPG 400,CLP/CLLE.

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
  • philpl1jb

    You might want to take a look at the the control record keyword:

     SFLRCDNBR

    49,970 pointsBadges:
    report
  • Sai4AS400
    Hi Phil,
    Thanks for the reply. I know only SFLRCDNBR will do the job. But when actually i need to pass RRN to SFLRCDNBR. I.e before EXFMT or else some where. i Have a Defined SFLRCDNBR in Display file as..

    WDRRN     4s      0H         SFLRCDNBR

    and, in the RPG...
     
    *LIKE        DEFINE         WDRRN          RRN .

    Now  my subfile with page(14) size (15) Is intiaaly displaying 35 Records. now i want delete the 30th Record (from page 3). And then it need to  show the remaining 34 Records, but then it should be displaying the 3rd  page instaead of first ..as of now it is diaplayin only first. Please tell me the way to go about it, in detail...Thanks!!

    1,420 pointsBadges:
    report
  • philpl1jb

    i'm not sure in this case ..

    you would typically set WDRRN to the RRN# that is changed.

    I'm not certain if you can use that value when you delete the RRN but give it a try.

    Phil

    49,970 pointsBadges:
    report
  • Sai4AS400
    Hi Phil,

    I tried and succeed... Thanks..Cheers!
    1,420 pointsBadges:
    report
  • philpl1jb
    Thanks for the feedback
    49,970 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