Search found 42189 matches

by chulett
Fri Jun 22, 2007 10:36 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DB2 TO ORACLE TIMESTAMP
Replies: 12
Views: 6949

No, as a Timestamp with generated SQL there should be no problem if the DB2 timestamp is indeed in the format you say it is.

Post the TO_DATE() portion of your insert sql for this field.
by chulett
Fri Jun 22, 2007 10:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DB2 TO ORACLE TIMESTAMP
Replies: 12
Views: 6949

Change the datatype to Timestamp in your job and ensure the stage generates the SQL. Do that, remove the milliseconds and then you'll be fine.
by chulett
Fri Jun 22, 2007 9:49 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DB2 TO ORACLE TIMESTAMP
Replies: 12
Views: 6949

Hack off the milliseconds if your Oracle target is a DATE datatype. You can leave them on if you have an appropriate TIMESTAMP datatype, however.
by chulett
Fri Jun 22, 2007 8:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: when lookup returns multiple rows - accomidate in same row
Replies: 2
Views: 1268

Could you not also do the pivot in the source query that builds the lookup? Especially if you know it will 'always be three', return a single record there with the three fields rather than all the shenanigans to do it afterwards.
by chulett
Fri Jun 22, 2007 7:32 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reverse the string in Datastage server job
Replies: 4
Views: 6522

Ah... thanks for that Ken, not something I was aware of. :wink:
by chulett
Fri Jun 22, 2007 6:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Pivot stage giving very poor performance
Replies: 8
Views: 2656

There's a poster by the name of Larry.Griffith who has written pivot BuildOps. One of the posts where he mentions that is in here. Might be worth contacting him and see if he can help, if he doesn't stop by and post something here.
by chulett
Fri Jun 22, 2007 6:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading BLOB data
Replies: 7
Views: 4348

Errr, ok. If this was a CLOB you would be golden. However, being a BLOB or Binary Large Object I'm not sure there's a way to 'convert to char' in any kind of meaningful way. Whatever you need to do will need to happen in the source select. If you are on 10g then look into the use of the DBMS_LOB.SUB...
by chulett
Fri Jun 22, 2007 6:14 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Lookups
Replies: 13
Views: 3598

I tried it using two different hash files like you suggested... The suggestion was to use two different hashed file stages both referring to the same hashed file name. Is that what you did? From there it's just a matter of getting the constraints right. What happened to DB2 in your latest 'job desi...
by chulett
Fri Jun 22, 2007 6:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Regarding log maintanance in datastage
Replies: 9
Views: 2080

Actually, no you don't have to set it there though it is recommended. Remember, that is the default value used only when new jobs are created - it does not affect existing jobs. You'll need a custom routine or job to make mass changes to existing log auto-purge settings. Ken Bland has such a thing a...
by chulett
Fri Jun 22, 2007 5:59 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reverse the string in Datastage server job
Replies: 4
Views: 6522

You might want to test the routine code you post first. It's close, but it would help if 'x' existed and it actually reversed the string rather than duplicating it. :wink:

How about:

Code: Select all

Ans = ""
For i = Len(Arg1) to 1 step -1
  Ans := Arg1[i,1]
Next i

Bare bones.
by chulett
Thu Jun 21, 2007 6:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading BLOB data
Replies: 7
Views: 4348

What are you planning on doing with this BLOB field? There's no 'transformations' you can do on it and (as you are finding) they aren't really supported. What is your goal and does this really need to be accomplished with an ETL job?
by chulett
Thu Jun 21, 2007 5:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem with dsapi.h
Replies: 1
Views: 1565

Either ensure the $DSHOME/include directory is in the appropriate path environment variable or include the full path to the file in the include preprocessor directive.
by chulett
Thu Jun 21, 2007 3:34 pm
Forum: IBM<sup>®</sup> SOA Editions (Formerly RTI Services)
Topic: Can not compile on certain clients.
Replies: 4
Views: 2868

'Certain jobs' = Sequence jobs? As Ray noted, search the forums for your error phrase 'The system cannot locate the resource specified' and you'll see it's a fairly common problem. And you'll find the solution as well.
by chulett
Thu Jun 21, 2007 2:37 pm
Forum: General
Topic: Error running a batch file
Replies: 12
Views: 6263

PATH issue, as in the directory where dsjob lives is not in your production PATH environment variable.
by chulett
Thu Jun 21, 2007 1:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: NUll to oracle date
Replies: 5
Views: 1834

A nullable date should take a null without issue. Doesn't sound like you are inserting what you think you are inserting. Why not try replacing the OCI stage with a Sequential File stage and see what ends up in the file?