Can any one give detailed functionality of SFLRCDNBR

85 pts.
Tags:
SFLRCDNBR
Subfile
I would like to know the fuctionality of the SFLRCDNBR. Can any one help me in this regards ? Eg: When I am using Load All Subfile programming I have 1000-records, page size-5. Now I am at 200th record , when I will take enter, it goes to 1st record. I hope in this case only we can used SFLRCDNBR. If it is Page-At-A-Time Subfile programme we can directly write code for this case.
ASKED: November 24, 2008  2:25 PM
UPDATED: November 24, 2008  3:30 PM

Answer Wiki

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

Hi,

If you use SFLRCDNBR(CURSOR) you should stay on the same page when you press enter. Is this what you need?

Regards,

Martin Gilbert.

More detail
You’re DSPF control record might look a little like this
A SFLCSRRRN(&SFLCSRLOC)
A SFLCSRLOC 5S 0H
A REC# 4S 0H SFLRCDNBR(CURSOR)

and in RPG like this
rec# = SFLCSRLOC;

The SFLCSRRRN is one way to capture the RRN number of the location of the cursor when returning to the RPG program and the SFLRCDNBR is used for placing the cursor on return to the screen.

Phil

Discuss This Question:  

 
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

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