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

Stop processing after throwing message on the screen ?


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

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Wed Apr 01, 2009 8:14 pm
Reply with quote

Hi All,

I'm modifying code to throw message on the screen and stop processing.

Requirement is that all the existing fields populated on the screen prior to sending the message should be there but should become protected after message is thrown on the screen.

Processing should stop completely. None of the function keys should be accepted except CLEAR command.

I used below command to send message on screen:

EXEC CICS SEND
FROM (WS-MESSAGE)
LENGTH (WS-LENGTH)
END-EXEC.

Please advise.
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: Wed Apr 01, 2009 8:47 pm
Reply with quote

You'll have to protect every field on the screen manually -- one field at a time. Check the manual (link at the top of the page) for the HANDLE AID CICS command.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Apr 01, 2009 8:59 pm
Reply with quote

I would do something like that (assuming pseudo-conversational):

Your map should have a message field.
Protect every field on the map,
move message to message field,
SEND the MAP.
Set a flag in your COMMAREA,
then RETURN TRANSID with COMMAREA.

When (re-)entering the program, check the flag.
If it is on, clear the screen and terminate.

(sorry, I stopped programming many years ago, I may have missed a RECEIVE somewhere... icon_confused.gif )
Back to top
View user's profile Send private message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Wed Apr 01, 2009 9:10 pm
Reply with quote

thanks Robert.

I used RETURN command after throwing the message on the screen. And the control goes back to calling module.

How do i stop processing. What is the equivalent in CICS to stop processing, None of the function keys or ENTER key should be accepted.

Basically the user should not be able to do anything after the message is thrown on the screen.

Please advise.
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: Wed Apr 01, 2009 9:27 pm
Reply with quote

The program will need to return to itself to keep the function keys from working; after you do the clear then return to the calling module.
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
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
No new posts How to get the message id thats trigg... Java & MQSeries 0
Search our Forums:

Back to Top