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

Importance of "No handle" condition


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deepu.surya
Warnings : 1

New User


Joined: 01 Apr 2008
Posts: 10
Location: hyderabad

PostPosted: Fri Jan 02, 2009 7:02 pm
Reply with quote

Can somebody explain the importance of NO HANDLE in the following code. what will it do exaclty?


EXEC CICS SEND ERASE FREEKB
MAPSET('Testmap')
MAP('Testmap')
WAIT
NOHANDLE
END-EXEC.
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: Fri Jan 02, 2009 7:18 pm
Reply with quote

NOHANDLE option
You can use the NOHANDLE option with any command to specify that you want no action to be taken for any condition or AID resulting from the execution of that command. For further information about the NOHANDLE option, see RESP and NOHANDLE options the CICS Application Programming Guide.


Handling exception conditions by in-line code
This method of handling exception conditions is recommended for new applications ..., it involves either using the NOHANDLE option or specifying the RESP option on EXEC CICS commands, which prevents CICS performing its default exception handling. Additionally, the RESP option makes the value of the exception condition directly available to your program, for it to take remedial action.
Back to top
View user's profile Send private message
deepu.surya
Warnings : 1

New User


Joined: 01 Apr 2008
Posts: 10
Location: hyderabad

PostPosted: Fri Jan 02, 2009 7:48 pm
Reply with quote

When we specify a NOHANDLE condition....and then if we dont handle it in our application program...what would be the result??

EXEC CICS SEND ERASE FREEKB
MAPSET('typoiuy')
MAP('typoiuy')
WAIT
NOHANDLE
END-EXEC.

if it is defined this way...what will be the case if we dont handle this in our program and then we get a ABEND.
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: Fri Jan 02, 2009 7:52 pm
Reply with quote

deepu.surya wrote:
if it is defined this way...what will be the case if we dont handle this in our program and then we get a ABEND.
Huh? What type of ABEND?
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Fri Jan 02, 2009 10:09 pm
Reply with quote

Quote:
if it is defined this way...what will be the case if we dont handle this in our program and then we get a ABEND.


You need to check the eibresp field after execution of the command.

Did you bother to read CICS applicatoins programmers guide? The answer is there.
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 PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
Search our Forums:

Back to Top