my requirement is like that ...i have to determine in which field the sursor is positioned on the map and based on that i have to perform different validation...so haw come i can determine the cursor position on the screen
If you had looked, you would have found that it is returned in the EIB: EIBCPOSN contains the cursor address (position) associated with the last terminal control or basic mapping support (BMS) input operation from a display device such as the 3270.
Joined: 23 Mar 2007 Posts: 149 Location: Ottawa Canada
I recall specifying CURSLOC on my SDF II maps. This option would let me test whether the cursor was sitting in a specific field without having to worry about the X,Y position of the cursor itself...
IF MAP-MSG1A = ATT-CURSOR OR ATT-ERASED-CURSOR
OR MAP-MSG2A = ATT-CURSOR OR ATT-ERASED-CURSOR
SET COMM-TRANSFER-DATA-FOR-RHDQ TO TRUE
MOVE COMM-RHDF-MESSAGES TO COMM-TRANSFER-RHDQ-DATA
DISPLAY "Navigate to error message screen"