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 > Compilation and execution error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-04, 16:31
eeedu eeedu is offline
Registered User
 
Join Date: Oct 2004
Posts: 4
Compilation and execution error

Hi everybody,

I have installed:
+ Red Hat 9
+ Informix SE v7.25 UC5
+ Informix 4GL v7.31 UC3
+ Informix RDS v7.31 UC3
+ Informix SQL v7.31 UC3

The installation of products went fine.

But I have some problems with RDS, I4GL and SQL and I think
they are related:

1.- I build one module 4gl with the following information:
------------ begin test.4gl ------------------
database test
main
define p_tab1 record like tab1.*
select * into p_tab1
from tab1
where
rowid = 1
display p_tab1.col1
end main
------------ finish test.4gl ------------------

2.- Problem with RDS:
The compilation is correct but when it runs
it shows this error (-1290 Unknown error message)

3.- Problem with I4GL:
When I compile with c4gl it gives me the
following errors (-1290 Unknown error message and
-4305 The database test not found or not .....)

4.- Problem with ISQL:
When I select the database the first time it
shows the error (-1290 Unknown error message),
but if I try again it works fine. It only shows
the errors the first time.

It seems that the first time that RDS, I4GL or ISQL
try to enter the database it shows the error -1290,
but only ISQL is allowed to try a second time.

The strange thing is that dbaccess can choose and work
with the database from the beginning.

I have found one very bad solution to make the compilation work:
------------ begin test.4gl ------------------
main

define p_tab1 record
col1 char(20)
end record

whenever error continue
database test
database test
whenever error stop

select * into p_tab1
from tab1
where
rowid = 1
display p_tab1.col1
end main
------------ finish test.4gl ------------------

As you can see, the first "whenever error" allows
the execution continues even though it gives an error.
There are two lines "database test" because the
first one will receive an error but the second
will not.

The most problematic is that I'm migrating one
application version 5 in SCO UNIX to LINUX with
SE v7.30, and I have (as is normal) a lot of
database record table declarations. And to solve
the problem as it is now, I have to reprogram a lot
of source line code.

Does anyone have any idea what could be happening??????

Thanks,

Edu
Reply With Quote
  #2 (permalink)  
Old 11-05-04, 06:37
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Please test if you INFORMIXSERVER = connection via TCP/IP or Stream Pipe.
I remember that tools 7.31 not work via IPC connection, depending of Informix version.

Gustavo.
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