Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how come i can determine the cursor position on the screen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
swapnajit

New User


Joined: 18 Apr 2007
Posts: 2
Location: mysore

PostPosted: Thu Apr 19, 2007 2:52 pm    Post subject: how come i can determine the cursor position on the screen
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

Vinit Bhushan

New User


Joined: 17 Apr 2007
Posts: 4
Location: Gurgaon

PostPosted: Thu Apr 19, 2007 2:56 pm    Post subject:
Reply with quote

I don't think this is possible.
Anyways Let's wait for another reply.
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Thu Apr 19, 2007 2:58 pm    Post subject:
Reply with quote

I think u r talking about the MAPS.. please post urs in the relevant forum. So that u can get replies fastly.

Can u please explain clearly, Where did u get this problem.


Anyway, Can I know, What u r going to do depends on the cursor position on the screen.
Back to top
View user's profile Send private message
kak1981

New User


Joined: 19 Apr 2007
Posts: 6
Location: delhi

PostPosted: Thu Apr 19, 2007 2:59 pm    Post subject:
Reply with quote

by pressing the CTRL+home
Back to top
View user's profile Send private message
udaybarath

New User


Joined: 10 May 2005
Posts: 7

PostPosted: Tue Apr 24, 2007 9:28 am    Post subject:
Reply with quote

You can find the cursor postition using the EIB field EIBCPOSN

I t will give the cursor position in relative number
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu Apr 26, 2007 2:30 pm    Post subject:
Reply with quote

udaybarath has answered you..at the same time you need to recalculate the (X,Y) position by following method:

Say EIBCPOSN gives you value as 82, so to get the (X,Y) position, check you r screen size...say it's 21*71 screen..so for EIBCPOSN = 82 is:

to get the Y position ( If EIBCPOSN > 71 (max Y value)) then: 82-71 = 9, so (X,Y) = (2,9)..i.e. second line 9th column...X=2 as we have subtracted 71 in that once...

If i am sounding confusing..do let me know..
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS DC screen Access sivasaras IMS DB/DC 3 Fri Nov 18, 2016 6:38 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Increase the screen size after split mistah kurtz TSO/ISPF 2 Fri Sep 02, 2016 6:39 pm
No new posts Automation of data entry using Rexx i... zingy.rajeev CLIST & REXX 4 Mon Aug 22, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Automation of data entry using Rexx i... zingy.rajeev CICS 0 Mon Aug 22, 2016 4:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us