View previous topic :: View next topic
|
Author |
Message |
Elixir
Active User
Joined: 08 Feb 2009 Posts: 116 Location: CHENNAI/NEW JERSEY - INDIA/USA
|
|
|
|
Hi,
In our application programs, the ENDBR is always accompanied with NOHANDLE condition.
I am not sure why NOHANDLE is used.
Can there be some error while ENDBR? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
This link may give you a hint. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Basically, in your example, an ENDBR with a NOHANDLE or a RESP indicates that the programmer didn't care about the ENDBR outcome, unless EIBRESP is tested for a ZERO or non-ZERO value.
Many times, an ENDBR is issued as a fail-safe prior to issuing a STARTBR.
Bill |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Bill,
I follow you 'failsafe' logic - that insures that there are no active BROWSEs.
but I thought that a NOHANDLE (or RESP) effectively turned-off
any active HANDLEs in the module. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Hi Dick,
Yes, but only for the API where the NOHANDLE is specified.
Bill |
|
Back to top |
|
|
|