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

Cursur position on pressing HOME key


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

Active User


Joined: 02 Oct 2008
Posts: 179
Location: India

PostPosted: Thu Oct 28, 2010 3:45 am
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Oct 28, 2010 3:53 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Oct 28, 2010 11:08 am
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

Moderator Emeritus


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

PostPosted: Thu Oct 28, 2010 7:12 pm
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: 179
Location: India

PostPosted: Thu Oct 28, 2010 7:42 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Oct 28, 2010 8:07 pm
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

Moderator Emeritus


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

PostPosted: Thu Oct 28, 2010 8:56 pm
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 29, 2010 3:16 am
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 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 compare two file to find position/dat... SYNCSORT 2
No new posts Group selective VB records - Trailer ... DFSORT/ICETOOL 16
No new posts Position BSAM file on multi volume PL/I & Assembler 3
Search our Forums:

Back to Top