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
 

 

Cursur position on pressing HOME key

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 151
Location: India

PostPosted: Thu Oct 28, 2010 3:45 am    Post subject: Cursur position on pressing HOME key
Reply with quote

Hi all,

My requirement is to posiiton the cursor on a particular field when HOME key is pressed.

I have tried moving -1 to that field through program but when Home key is pressed, it is going to the first unprotected field. Is there any way that we can control the cursor position on pressing HOME key ?

Thanks
Vinu
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Oct 28, 2010 3:53 am    Post subject: Reply to: Cursur position on pressing HOME key
Reply with quote

I don't think this will work, because the "Home" key is not a valid 3270-value.

Look in CICS copybook DFHAID and see if you find this definition.

If not, then there's no way to know whether "Home" (or "Not At Home" icon_wink.gif) was pressed unless your using some sort of keyboard mapping emulator.

Here's what you can do. Place the transaction under CEDF, go to task termination and say "Yes". As soon as the screen is displayed, press the "Home" key and review the value in EIB field EIBAID.

Bill
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10275
Location: italy

PostPosted: Thu Oct 28, 2010 11:08 am    Post subject: Reply to: Cursur position on pressing HOME key
Reply with quote

Quote:
Is there any way that we can control the cursor position on pressing HOME key ?

NO!
the HOME key is an HARDWARE defined key which by 3270 definition/functionality will move the cursor to the first unprotected field on the screen.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 28, 2010 7:12 pm    Post subject:
Reply with quote

Hello,

If the program places the cursor on "field 6" and then the user presses the "Home Key" why should the cursor not reposition to the first unprotected field?

If the cursor was where it was supposed to be, why was it moved?

Possibly the fields need to be re-arranged?
Back to top
View user's profile Send private message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 151
Location: India

PostPosted: Thu Oct 28, 2010 7:42 pm    Post subject: Reply to: Cursur position on pressing HOME key
Reply with quote

Thanks for the reply.

The program places the cursor on the ITEM NO (second unprotected field in the screen) and that is what is required. So in the initial load, the cursor will be at the ITEM NO field only. The reqt is that when the user presses HOME key, the cursor should be at this ITEM NO field only. But now it is going to the NEXT ID (first unprotected field).

I tried searching for the equivalent EIBAID value when HOME key is pressed but not able to find it out..icon_sad.gif

As Bill and Enricoo has mentioned, if HOME key is hardware defined, then I think this can't be done, right

Thanks
Vinu
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10275
Location: italy

PostPosted: Thu Oct 28, 2010 8:07 pm    Post subject: Reply to: Cursur position on pressing HOME key
Reply with quote

that' s exactly what we are trying to make You understand !
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 28, 2010 8:56 pm    Post subject:
Reply with quote

Hello,

Quote:
The reqt is that when the user presses HOME key, the cursor should be at this ITEM NO field only.
I believe a more useful requirement would be that the user NOT move the cursor when it is already at the proper field. . .

If the cursor should be on ITEM NO, why is this not the first unprotected field? If they (the users) should not go to the first field, protect it and then ITEM NO will be the first unprotected field.

Or, as i mentioned earlier, re-arrange the fields on the screen.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Fri Oct 29, 2010 3:02 am    Post subject:
Reply with quote

if you are using a 3270 Terminal emulator , such as TN3270 or hummingbird,

map your keyboard home key accordingly, and it will work.

If you have old technology physical 3270 terminal, your out of luck.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 29, 2010 3:16 am    Post subject: Reply to: Cursur position on pressing HOME key
Reply with quote

Earl,

I wrote an XEIIN GLUE-Program, which actually checked for some crazy emulated aid byte (X'89') that the users wanted for a "Hot Key" to return to the Main Application Programmer Menu, no matter where they were in the system.

I had to check the R1 parmlist of the current CICS API and when I found a RETURN TRANSID t/w this X'89' Aid-Byte, (this is where it gets ugly), I built an XCTL parmlist on the fly (no commarea though), on top of the RETURN TRANSID parmlist, changed the existence bits and provided the name of the Main Menu program, returned to XEIIN and the XCTL actually worked!

The only thing about XEIIN that I don't like is that it gets invoked for EVERY CICS API, so the up front logic to get out ASAP had to be finite and tight.

I have this exit socked away "Somewhere"?

But, it was fun.... icon_wink.gif

Bill
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts ISREDIT - Position Cursor on the Comm... Tarique Anwer TSO/ISPF 5 Wed Feb 03, 2016 12:44 pm
No new posts Adjust Heading Position in Easytrieve thesumitk CA Products 4 Mon Dec 21, 2015 3:26 pm
No new posts set column position record? italo_pm CLIST & REXX 3 Wed May 27, 2015 2:18 am
No new posts Job position for Tech Lead Escapa Mainframe Jobs 0 Sat Nov 15, 2014 7:09 am


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