View previous topic :: View next topic |
Author |
Message |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Thu Jun 11, 2009 9:04 am Post subject: HOW TO GRAB A PFKEY |
|
|
hello everyone,
i need to test ,in my cobol cics application program ,if clear key is being hitted during a loop execution.
In this case i have to get out of the loop.
i try this ,but doesn't work..
IF EIBCALEN > 0
AND EIBAID = DFHCLEAR
GO TO LOOP-END.
In fact ,although i hit clear key during execution the statements in the loop, the values are always:
eibcalen = 8
eibaid = '
How can i do?
thanks |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
|
Posted: Thu Jun 11, 2009 10:40 am Post subject: |
|
|
enge,
Make sure your clear key is indeed mapped to clear.
Code: |
IF EIBAID = DFHCLEAR
EXEC CICS SEND CONTROL FREEKB
END-EXEC
EXEC CICS RETURN
END-EXEC
END-IF.
|
Kolusu |
|
Back to top |
|
 |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Mon Jun 15, 2009 7:52 am Post subject: |
|
|
excuse me kolosu,
i mean , i am not able to "refresh" the EIBAID value during the program execution.
i try :
EXEC CICS SEND CONTROL FREEKB
END-EXEC.
STATEMENT-BEGIN.
STATEMENT 1
STATEMENT 2
...
...
EXEC CICS RECEIVE MAP ('MYMAP') MAPSET ('MYMAPSET') INTO (MYAREA)
END-EXEC.
IF EIBAID = DFHCLEAR
EXEC CICS SEND CONTROL FREEKB
END-EXEC
EXEC CICS RETURN
END-EXEC
ELSE
GO TO STATEMENT-BEGIN
END-IF. |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Mon Jun 15, 2009 9:02 am Post subject: |
|
|
1. the EIBAID is set as/before your program is invoked. You don't have to CALL the RECEIVE API to populate EIBAID.
2. The RECEIVE will generate a MAPFAIL when the EIBAID is a DFHCLEAR. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Tue Jun 16, 2009 1:58 am Post subject: |
|
|
thank you very much.bye |
|
Back to top |
|
 |
|
|