How to move my cursor out of a subfile

970 pts.
Tags:
AS/400-Subfile Programming
SFLRCDNBR
Subfile
I have created a screen with two simple fields and a subfile. I am using SFLRCDNBR keyword with subfile which is working as desired. Problem is when screen is loaded cursor resides on subfile's first line. It should be on first non-subfile field. On loading screen I am initializing subfile and setting RCDNBR value to 1 (as it was giving me error on 0) it made the cursor to move on subfile's first record. How I can achieve this.

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: 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.

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

    Have you tried using the DSPATR(PC) to position cursor on the desired field in the DDS?

    8,500 pointsBadges:
    report
  • philpl1jb

    If these other fields are on the SFLCTL record

    1. use an indicator to Turn off SFLRCDNBR

    2. use DSPATR(PC) to position cursor

    49,570 pointsBadges:
    report
  • Splat
    ToddN2000 & philp1jb have it right about the DSPATR(PC). 

    Thing is, if you haven't anything to display in the subfile why display it?  SFLDSP can be conditioned in the DDS.
    6,875 pointsBadges:
    report
  • hunshabbir7
    Thnx all of you for helping. It was a simple solution but I dont know where my mind was.... I just added DSPATR(PC) with non SFL field with an indicator and set it accordingly and it is working fine now. Thanks again..
    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