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
 

 

Need help in handling function keys

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Need help in handling function keys
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

Site Director


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

PostPosted: Fri Jul 20, 2007 11:29 pm    Post subject:
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: 147
Location: Columbia, MO

PostPosted: Sat Jul 21, 2007 1:40 am    Post subject: Re: Need help in handling function keys
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    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
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts Joinkeys with duplicated keys juares castro SYNCSORT 19 Fri Sep 23, 2016 5:58 am
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am


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