|
View previous topic :: View next topic
|
| Author |
Message |
vinu78
Active User
Joined: 02 Oct 2008 Posts: 179 Location: India
|
|
|
|
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 |
|
 |
Bill O'Boyle
CICS Moderator

Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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" ) 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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
| 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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
vinu78
Active User
Joined: 02 Oct 2008 Posts: 179 Location: India
|
|
|
|
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..
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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
| that' s exactly what we are trying to make You understand ! |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
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 |
|
 |
Bill O'Boyle
CICS Moderator

Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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....
Bill |
|
| Back to top |
|
 |
|
|