If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Informix 4gl and Whenever

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-04, 09:53
Bob Elliot Bob Elliot is offline
Registered User
 
Join Date: Jan 2003
Posts: 6
Informix 4gl and Whenever

I am an experienced Informix 4gl user and have made much use of the Whenever statement.

Recently I have inherited a program with no Whenever clauses in it.

I have assumed up until now that WHENEVER ERROR defaults to CONTINUE - but this program is compiling as WHENEVER ERROR STOP.

This can be seen in the ec which contains calls to fgl_fatal after every SQL statement.
e.g.
$ begin work;
status = sqlca.sqlcode;
if (status < 0)
{
fgl_fatal(fgl_modname, 73, status);
}


The manual appears to back my assumption.

Is there some compiler directive in operation or is my interpretation of the manual - or the manual itself - wrong.

I do not want to change the behaviour of this module - so I am reluctant to enter WHENEVER statements into it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On