How To get The Cursor position on particular field?

185 pts.
Tags:
AS/400
Cursor operation
DSPF
RPG
RPGLE
My display File Contains three Fields as like

name= ........

 Roll =........

 Marks=.......

 But In that Case when Program Call, First Cursor Pos On name When Name Will Enter Roll No will Automaticalyy Disply. But I have To Modify Marks Field,,, So When I will Enter Name After That I want To cursor On Mark Field So how can i do this? (In Dislpay File Any Keyword for cursor plz mention in detail )

Answer Wiki

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

The display attribute DSPATR(PC) position cursor might be what you’re after
It would be placed as a keyword for the input field, on the same line as the input field

If you want to be able to turn it on/off put it on a line after the field with an indicator
45 DSPATR(PC)
when 45 is set on in your program the cursor will be shown in this field.
Phil

Discuss This Question: 1  Reply

 
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
  • Splat
    Another option would be to use the following:
    A                                      CSRLOC(ROW        COLUMN)
    A                                      RTNCSRLOC(&FORMAT &FIELD)
    A            ROW            3S 0H                               
    A            COLUMN         3S 0H                               
    A            FORMAT        10A  H                               
    A            FIELD         10A  H
    You don't need to keep track of indicators.
    7,215 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