talexb has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use DB2's EXPORT function to dump out a portion of a database table. The command works fine from a DB2 prompt, fine from a shell script, but fails from a Perl script with the vague (to me, anyway) error, Database error: No such file or directory at foo.pl ..
My SQL is along the lines of
with schema and table names anonymized.export to trans15 of del select trans_id, time from foo.bar fetch firs +t 15 rows only
If someone has pointers on what I'm doing wrong, I'd appreciate it.
Update: Sorry, replaced $script with a non-variable script name foo.pl. Just trying (perhaps a little too hard) to anonymize my work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OT: Failing to export from DB2
by Anonymous Monk on Mar 30, 2009 at 14:25 UTC | |
by talexb (Chancellor) on Mar 30, 2009 at 17:55 UTC | |
by Anonymous Monk on Mar 31, 2009 at 06:27 UTC | |
|
Re: OT: Failing to export from DB2
by andreas1234567 (Vicar) on Mar 31, 2009 at 07:30 UTC | |
by talexb (Chancellor) on Mar 31, 2009 at 15:23 UTC | |
by andreas1234567 (Vicar) on Apr 01, 2009 at 05:27 UTC |