Joined: 05 Dec 2006 Posts: 147 Location: Columbia, MO
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
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.