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

Need help in handling function keys


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

New User


Joined: 21 Feb 2007
Posts: 2
Location: indore

PostPosted: Fri Jul 20, 2007 6:37 pm
Reply with quote

I want to handle function keys(PF1 to PF12) in my program and have no clue how to do that, can someone help me with this?
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: Fri Jul 20, 2007 11:29 pm
Reply with quote

Hello shrads,

Are you working in CICS or tso/ispf?
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Sat Jul 21, 2007 1:40 am
Reply with quote

I am going to assume that this is CICS - and that you have some idea of what you are doing to begin with. After all, I can answer the question, but if you have no idea what's going on, the answer is useless.

To handle function keys, you have to include the copybook DFHAID in your program. It is supplied by IBM and has all the representations of the function keys.

Then you can just type


Code:
        IF EIBAID = DFHPF3


to check if function key F3 was pressed.

However, I have a sneaky suspicion that this tidbit won't do you any good. So to follow up, invest in a good CICS/COBOL manual. May I suggest Murach's CICS for the COBOL Programmer? The answer above was found on page 50.
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 Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
Search our Forums:

Back to Top