calling export from db2 stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
times29
Premium Member
Premium Member
Posts: 202
Joined: Mon Sep 22, 2008 3:47 pm

calling export from db2 stage

Post by times29 »

Hi,
i used after sql in db2 stage to call below export its giving errors any idea
if i can do this in datastage.

EXPORT TO C:\Datastageexports\emea\test.ixf
OF IXF MESSAGES "C:\Datastageexports\emea\test.msg" select * from SYSIBM.SYSDUMMY1
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You've marked your post with an O/S of UNIX - is that actually the case? If so that would make it difficult for it to use the paths you've posted. And it also helps when you say something is "giving errors" to actually post those errors so we have some idea what is going on.
-craig

"You can never have too many knives" -- Logan Nine Fingers
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Re: calling export from db2 stage

Post by MT »

Hi times29

the problem is that you used "after sql" in db2 stage
but export is a utility and so a DB2 command and not SQL.

Two things you could do
1. use a OS script and call that
2. use admin_cmd stored procedure to wrap the export command and call the stored procedure (the call statement is SQL) - my recommended way
regards

Michael
Post Reply