difference between between nohandle and ignore



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

difference between between nohandle and ignore

Postby mainframe1 » Wed Jun 03, 2009 4:43 pm

Could any one tell me with example the diif between nohandle and ignore in CICS.

regds
mainframe1
 
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Has thanked: 0 time
Been thanked: 0 time

Re: difference between between nohandle and ignore

Postby nayanpatra » Tue Jul 07, 2009 10:12 am

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).
nayanpatra
 
Posts: 19
Joined: Mon Jul 06, 2009 4:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: difference between between nohandle and ignore

Postby mainframe1 » Thu Sep 03, 2009 8:17 am

can u give examples..
mainframe1
 
Posts: 35
Joined: Wed Oct 08, 2008 11:39 am
Has thanked: 0 time
Been thanked: 0 time

Re: difference between between nohandle and ignore

Postby 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.
Nary
 
Posts: 8
Joined: Mon Jun 22, 2009 7:00 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post