cannot upload through ODBC

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
fahad
Participant
Posts: 15
Joined: Sat Aug 07, 2004 7:48 am

cannot upload through ODBC

Post by fahad »

Hi all,
i am trying to upload text file to as400/db2 table through ODBC stage. it doesn't upload the data and give this warning log:
"***BCIPut call to SQLExecute failed ****
[DataStage][SQL Client][ODBC][IBM][iSeries Access ODBC Driver][DB2 UDB]SQL7008 - Table2 in FahadLib not valid for operation."

what do you think is the problem? :roll:
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

That does not appear to be a DataStage problem. You need show this to your DBA and ask for info
ml
Participant
Posts: 82
Joined: Wed Jun 09, 2004 1:03 pm
Location: Argentina

Post by ml »

Hi fahad,

I think that you need to start journaling for those "Library.files" on as400 in order to allow DataStage(odbc) to insert/update/delete on those tables.

these are the step on AS400:

1 Create a journal receiver (CRTJRNRCV).
2 Create a journal (CRTJRN) specifying the journal receiver created in step one for the JRNRCV parameter.
3 Start journaling on the file (STRJRNPF).

regards,

mat
Titto
Participant
Posts: 148
Joined: Tue Jun 21, 2005 7:49 am

Post by Titto »

add WITH NONE; and the end of the SQL statement
Post Reply