420 pts.
 Problem in positioning cursor in display file!
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
ASKED: November 17, 2011  9:52 PM
UPDATED: November 18, 2011  4:25 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  November 18, 2011  4:25 am  by  CharlieBrowne   32,855 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,855 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 44,180 pts.