Page 1 of 1

difference between between nohandle and ignore

PostPosted: Wed Jun 03, 2009 4:43 pm
by mainframe1
Could any one tell me with example the diif between nohandle and ignore in CICS.

regds

Re: difference between between nohandle and ignore

PostPosted: Tue Jul 07, 2009 10:12 am
by nayanpatra
The NOHANDLE option covers all conditions that can occur for the commands on which you have specified NOHANDLE; the IGNORE CONDITION command covers specified conditions for all commands (until you change its effect by specifying a HANDLE CONDITION command that names one or more of these conditions).

Re: difference between between nohandle and ignore

PostPosted: Thu Sep 03, 2009 8:17 am
by mainframe1
can u give examples..

Re: difference between between nohandle and ignore

PostPosted: Tue Sep 22, 2009 6:07 pm
by Nary
Hi,

IGNORE CONDITION will not cause any action to be taken if the condition specified (for ex: LENGERR) occurs in the program.

For ex:
EXEC CICS IGNORE CONDITION
LENGERR
END-EXEC.
EXEC CICS RECEIVE
INTO (---)
LENGTH(----)
END-EXEC.

Here, at the time of execution of RECEIVE command, if the LENGERR condition occurs, the condition will be ignored
(note that only on LENGERR exception no action will be taken)
and control will be passed to next statement after the RECEIVE command.

NOHANDLE option will not cause any action to be taken for any exceptional condition occurring during execution of this command.

For ex:
EXEC CICS SEND
FROM(-----)
LENGTH(----)
NOHANDLE
END-EXEC.

Here, during execution of SEND command, even if some exceptional condition(what ever the exception it might be) occurs, no action will be taken.
Control will be returned to next statement after the SEND command

Hope, this helps.