Re: export to

From: Jonathan Leffler (jonathan.leffler_at_gmail.com)
Date: 02/16/05


Date: Wed, 16 Feb 2005 10:04:24 -0800
To: Stephane Legault <stephanelegault@yahoo.com>

I'm not a DB2 expert, but the analogous facility in Informix is UNLOAD
and that is emulated in the client (command line) program. That is,
IDS (Informix Dynamic Server) does not recognize UNLOAD as a statement
but DB-Access (CLP analogue) pretends that it does.

Similar problems affect other DBMS.

On Wed, 16 Feb 2005 08:43:33 -0500 (EST), Stephane Legault
<stephanelegault@yahoo.com> wrote:
> Hi, I'am using DBI::DB2 for a lot of program and now I
> need to create a programme to archive data. So, I
> would like to export data from database to a file and
> then load that file in another db2 database.
>
> Here is what I try:
> $dbh->do(q{export to test.ixf of ixf select * from
> steph_test}) or die $dbh->errstr;
>
> But this give an error:
> DBD::DB2::db do failed: [IBM][CLI Driver][DB2/NT]
> SQL0104N An unexpected token "test" was found
> following "export to ". Expected tokens may include:
> "JOIN". SQLSTATE=42601
>
> If I'am using the export command on a command line,
> it's work well. This sould not work within perl and
> DBI?

-- 
Jonathan Leffler <jonathan.leffler@gmail.com>  #include <disclaimer.h>
Guardian of DBD::Informix - v2003.04 - http://dbi.perl.org
"I don't suffer from insanity - I enjoy every minute of it."


Relevant Pages

  • Re: dbcopy over secure/encrypted line
    ... Are you using a later version of informix because HPL is now much ... The onpladm command works great. ... Can you just use HPL to unload the data and then sftp to ... Create a device array in HPL on the target server consisting of PIPE ...
    (comp.databases.informix)
  • Re: dbcopy over secure/encrypted line
    ... Subject: dbcopy over secure/encrypted line ... The onpladm command works great. ... Can you just use HPL to unload the data and then sftp to ... there might be a way to use named pipes, ssh, and unload / load, to get ...
    (comp.databases.informix)
  • RE: dbcopy over secure/encrypted line
    ... Are you using a later version of informix because HPL is now much ... The onpladm command works great. ... Can you just use HPL to unload the data and then sftp ... Create some named pipes on the target server with the mkfifo ...
    (comp.databases.informix)
  • Re: Shell launch / Process End
    ... some refresher programming courses, I'll have to at some point. ... I have a simple VB 6 app that I run two ways. ... command with command line arguments from another app. ... handles are closed then the unload me is called. ...
    (microsoft.public.vb.general.discussion)
  • Re: bde to ado
    ... // MessageId: DB_E_ERRORSINCOMMAND ... The command text contained one or more errors. ... Providers should use OLE DB ... > oleprovide = informix ole provide ...
    (borland.public.delphi.database.ado)