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

Attention keys are not working in CICS-COBOL module


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

New User


Joined: 28 Jul 2006
Posts: 4
Location: pune

PostPosted: Sun Apr 18, 2010 5:15 pm
Reply with quote

I have defined map using SDF facility. My CICS program is working fine except Attention keys PA1, PA2 and Clear key. When first time map gets displayed Clear key works but then afterwards after any other key hit or data display the Attention keys do not work. I tried to debug the program but after pressing Clear key the control does not come to my module it directly goes to CICS. Please help me in resolving this problem as early as possible.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Apr 18, 2010 6:09 pm
Reply with quote

Quote:
Please help me in resolving this problem as early as possible.
Your urgency is not our urgency -- please remember there are volunteers answering questions here.

Line 379 of your code is wrong.

Seriously, if you cannot provide adequate information for us to help you, just what do you expect? At a minimum, you need to describe how your program sends the map, receives the map, RESENDS the map, and returns to CICS.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Apr 18, 2010 6:24 pm
Reply with quote

itsmeaparna wrote:
I have defined map using SDF facility. My CICS program is working fine except Attention keys PA1, PA2 and Clear key.
The 'Clear key' is not an 'Attention key', its effect is local to the terminal screen only, like the EOF key.
Quote:
When first time map gets displayed Clear key works but then afterwards after any other key hit or data display the Attention keys do not work.
You are saying that once the screen is cleared, CICS terminal control is the only responder to any Attention, Function or Enter keys?
Quote:
I tried to debug the program but after pressing Clear key the control does not come to my module it directly goes to CICS. Please help me in resolving this problem as early as possible.
In a pseudo-conversational setting, the easiest way to create your symptoms would be to place the next transid into the first four bytes of the map with the MDT set, possibly dark and definitely protected.

It's an old technique and it works, but the Clear key does defeat it. Why not insure return to your program by using the TRANSID on the RETURN command, this would allow you to handle the mapfail after the user clears the screen.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sun Apr 18, 2010 10:30 pm
Reply with quote

Quote:
I tried to debug the program but after pressing Clear key the control does not come to my module it directly goes to CICS. Please help me in resolving this problem as early as possible.


You have program logic problems, as CICS GUY indicates, look at EXEC CICS RETURN TRANSID

Have you tried debugging your program with CEDF ?

If you are not familar with CEDF, ask your Manager or contact your CICS technical support people.
Back to top
View user's profile Send private message
itsmeaparna

New User


Joined: 28 Jul 2006
Posts: 4
Location: pune

PostPosted: Tue Apr 27, 2010 9:13 pm
Reply with quote

thanks for help.. the problem got solved. It was not a programming error, attentions keys were not working because of incorrect function table entry for my new transaction. After correcting the function table entry, attention keys are working fine icon_smile.gif
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top