Position Cursor Issue in subfile

365 pts.
Tags:
AS/400 Subfiles
RPG ILE
RPG IV
Subfile Display
I have a subfile with 'Position to' option in control format. so to keep the cursor in subfile recod, i have used DSPATR(PC) for option field and Reverse Image as well. But indicators are different, when I am trying to show error, i m setting the both indicators (PC,RI since i have used different Indicators)... RI is working as expected but the Cursor is always postioing in the 1st of record of the page.. The type of subfile is SINGLE PAGE. Please help!

Answer Wiki

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

You can use SFLRCDNBR with *TOP option to bring your error record to TOP of page display.

A REC# 4S 0H SFLRCDNBR(CURSOR *TOP)

Discuss This Question: 2  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
    Please show the DDS for the subfile and subfile control records. The code might suggest questions that need to be asked or might indicate that CSRLOC() on the control format is a better choice or that SFLRCDNBR(CURSOR) should be used. Tom
    125,585 pointsBadges:
    report
  • Splat
    What do you mean by 'single page'?
    6,995 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