dbTalk Databases Forums  

load statement error on 4gl

comp.databases.informix comp.databases.informix


Discuss load statement error on 4gl in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
joe
 
Posts: n/a

Default load statement error on 4gl - 09-28-2010 , 10:02 PM






4gl version : 7.32.uc2
ids version: 11.5.uc7
redhat : as5

$ cat test.4gl
database test
main
LOAD FROM '/tmp/temp.dat' DELIMITER "|" insert into tt
display "status=",status
end main
$ fglpc test
$ fglgo test
SQL error number -846.
Number of values in load file is not equal to number of columns

But it run in
ids version :ids9.40.uc5
4gl : 7.32.uc2
aix : 5
is OK !
Someone help me Please !

Reply With Quote
  #2  
Old   
jack.parker4@verizon.net
 
Posts: n/a

Default Re: load statement error on 4gl - 09-28-2010 , 10:08 PM






Consider s terminsting "|" in your load file.

j.


Sep 29, 2010 03:05:17 AM, joeclhua (AT) gmail (DOT) com wrote:

===========================================

4gl version : 7.32.uc2
Quote:
ids version: 11.5.uc7
redhat : as5

$ cat test.4gl
database test
main
LOAD FROM '/tmp/temp.dat' DELIMITER "|" insert into tt
display "status=",status
end main
$ fglpc test
$ fglgo test
SQL error number -846.
Number of values in load file is not equal to number of columns

But it run in
ids version :ids9.40.uc5
4gl : 7.32.uc2
aix : 5
is OK !
Someone help me Please !


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
  #3  
Old   
John Fahey
 
Posts: n/a

Default Re: load statement error on 4gl - 09-28-2010 , 10:52 PM



Possibly an End-of-line problem (LF vis a vis CR/LF) ???

On Tue, Sep 28, 2010 at 11:08 PM, <jack.parker4 (AT) verizon (DOT) net> wrote:

Quote:
Consider s terminsting "|" in your load file.

j.


Sep 29, 2010 03:05:17 AM, joeclhua (AT) gmail (DOT) com wrote:

===========================================

4gl version : 7.32.uc2
ids version: 11.5.uc7
redhat : as5

$ cat test.4gl
database test
main
LOAD FROM '/tmp/temp.dat' DELIMITER "|" insert into tt
display "status=",status
end main
$ fglpc test
$ fglgo test
SQL error number -846.
Number of values in load file is not equal to number of columns

But it run in
ids version :ids9.40.uc5
4gl : 7.32.uc2
aix : 5
is OK !
Someone help me Please !


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



--
John Fahey
President
Mitchell & McCormick, Inc.
2165 West Park Ct Suite G
Stone Mountain, GA 30087
(770) 465-1511

Reply With Quote
  #4  
Old   
joe
 
Posts: n/a

Default Re: load statement error on 4gl - 09-28-2010 , 11:05 PM



I doubt that it owing to ids vs 4gl version not matches.

That program had running for years on ids 9.4 & 4gl 7.32.uc2 aix box.

Recently migrate to linux,
ids 11.5 ( newest version) & 4gl 7.32.uc2 ( old version )

Seems that It not allow UNLOAD statemnt in 4GL program .

Reply With Quote
  #5  
Old   
John Fahey
 
Posts: n/a

Default Re: load statement error on 4gl - 09-28-2010 , 11:55 PM



But is it possible that something about the O.S. change made it such that
the way the data (unload) file
was transferred to the server might have screwed up the E.O.L. in the file ?

On Wed, Sep 29, 2010 at 12:05 AM, joe <joeclhua (AT) gmail (DOT) com> wrote:

Quote:
I doubt that it owing to ids vs 4gl version not matches.

That program had running for years on ids 9.4 & 4gl 7.32.uc2 aix box.

Recently migrate to linux,
ids 11.5 ( newest version) & 4gl 7.32.uc2 ( old version )

Seems that It not allow UNLOAD statemnt in 4GL program .



_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



--
John Fahey
President
Mitchell & McCormick, Inc.
2165 West Park Ct Suite G
Stone Mountain, GA 30087
(770) 465-1511

Reply With Quote
  #6  
Old   
joe
 
Posts: n/a

Default Re: load statement error on 4gl - 09-29-2010 , 01:31 AM



On 9月29日, 下午12時55分, John Fahey <jjfa... (AT) gmail (DOT) com> wrote:
Quote:
But is it possible that something about the O.S. change made it such that
the way the data (unload) file
was transferred to the server might have screwed up the E.O.L. in the file ?

John,
Thanks! I got it.
the unload data file, has a carriage return inside .

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.