by Nary » Tue Sep 22, 2009 6:07 pm
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.