IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how come i can determine the cursor position on the screen


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
swapnajit

New User


Joined: 18 Apr 2007
Posts: 2
Location: mysore

PostPosted: Thu Apr 19, 2007 3:53 pm
Reply with quote

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
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Apr 19, 2007 4:02 pm
Reply with quote

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.
Back to top
View user's profile Send private message
rajesh_mbt

New User


Joined: 27 Mar 2006
Posts: 97
Location: India

PostPosted: Tue Apr 24, 2007 6:37 pm
Reply with quote

Hi Swanpa

The following code will help to identify the cursor position

COMPUTE WS-CURSOR-LINE = (EIBCPOSN / 80) + 1

Where WS-CURSOR-LINE PIC S9(4) COMP
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Thu Apr 26, 2007 12:10 am
Reply with quote

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


PL-HANDLE-MSGLINE-PROMPT SECTION.
*------------------------------
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"
END-IF
.
Back to top
View user's profile Send private message
munikumar
Currently Banned

New User


Joined: 18 Apr 2007
Posts: 24
Location: India

PostPosted: Thu Apr 26, 2007 12:27 pm
Reply with quote

The above are correct. But when you want to check which symbolic field is currently having the cursor, then we can validate as follows:

IF (symbolic fieldL) = -1 then that field is having the cursor at that moment.

Does any one correct me if I am wrong.

Regards
Munikumar G
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Cobol program to determine the sequen... COBOL Programming 2
No new posts Data for newly added fields not displ... IMS DB/DC 6
No new posts How to determine TLS/SSL version in m... TSO/ISPF 2
Search our Forums:

Back to Top