MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOW TO GRAB A PFKEY

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Thu Jun 11, 2009 9:04 am    Post subject: HOW TO GRAB A PFKEY Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Thu Jun 11, 2009 10:40 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Mon Jun 15, 2009 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Jun 15, 2009 9:02 am    Post subject: Reply with quote

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
View user's profile Send private message
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Tue Jun 16, 2009 1:58 am    Post subject: Reply with quote

thank you very much.bye
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group