Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Importance of "No handle" condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Importance of "No handle" condition
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: 2150
Location: At my coffee table

PostPosted: Fri Jan 02, 2009 7:18 pm    Post subject:
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    Post subject: NOHANDLE condition
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: 2150
Location: At my coffee table

PostPosted: Fri Jan 02, 2009 7:52 pm    Post subject: Re: NOHANDLE condition
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us