Problem in positioning cursor in display file!

435 pts.
Tags:
Display File
RPGLE
I have a display file which have 3 fields A,B,C ..And these are input/output both fields. What i want is to position cursor on that field which have reverse image indicator on .(I am putting it on when that particular field has error)...Please suggest how to do ? I know RTNCSRLOC or CSRLOC will do for me but i tried them in  vain 

Software/Hardware used:
as400 V6R1

Answer Wiki

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

Use DSPATR(PC)
or since you are already doing DSPATR(RI) do DSPATR(PC RI)

You Can Switch ON the Corresponding Field Indicator when ever Error Occurs with that field.
If You have Error in all the three fields(Or two fields), Then Cursor will point to the First Error Position.

Discuss This Question: 3  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
    Is this a Subfile? For non-subfile Here is one method - using display attribute ((PC) Position Cursor keyword. Each field would have a different indicator. Turn on the one you want to position to. Turn off the others. MYFLD 3Y 0B 10 45 39 DSPATR(PC) Phil
    51,305 pointsBadges:
    report
  • munduuu
    [...] Munduuu is having problems positioning a cursor in display file, but Deepu9321 offered some [...]
    0 pointsBadges:
    report
  • munduuu
    [...] Munduuu is having problems positioning a cursor in display file, but Deepu9321 offered some [...]
    0 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