Search found 42189 matches

by chulett
Thu Mar 26, 2009 8:04 am
Forum: General
Topic: The 0 column(s) defined on this link do not match the 0 ...
Replies: 3
Views: 2555

Interesting. A couple of points... Does it work if you add a semi-colon (or whatever SQL Server uses) statement terminator after each piece of dml? I've never had a select '*' work out well and you're just asking for trouble selecting something that technically can change into a fixed number of colu...
by chulett
Thu Mar 26, 2009 7:58 am
Forum: General
Topic: Is the table name in the DRS stage available as a variable?
Replies: 3
Views: 943

Automatic? No. You'll need to either take the job parameter route for use downstream in common code or shared containers or simply code the tablename in any other sql you use.
by chulett
Wed Mar 25, 2009 10:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Setting column value as Parameter
Replies: 4
Views: 1909

You could create two jobs - one to fetch the values and pass them as parameters to the second job to do the creation. Use UtilityRunJob() in the first job to run the second job once per record read.
by chulett
Wed Mar 25, 2009 10:50 pm
Forum: General
Topic: Is the table name in the DRS stage available as a variable?
Replies: 3
Views: 943

Sure, parameters can be used pretty much anywhere that text can be entered, including for the schema and/or tablename. And you could use that same job parameter in any of the before/after sql wherever you needed it. We kept the schema ('owner') and tablename as separate parameters and dictated that ...
by chulett
Wed Mar 25, 2009 6:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can not get excluesive access to data stage job, monitoring
Replies: 3
Views: 1878

Anyone could be monitoring the job and causing this issue, not just you. 'Cleanup Resources' from the Director will at the very least show you who and maybe also be used to solve the problem, depending on the permissions involved.
by chulett
Wed Mar 25, 2009 6:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datetime on Sequential File
Replies: 4
Views: 1581

When you say "on" a sequential file, do you actually mean *in* a sequential file? You won't be able to do pure "string manipulation" as you can't just rearrange the original value to get the desired result. So, hack off the time and then use the normal "date conversion funct...
by chulett
Wed Mar 25, 2009 3:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: getting rows between two dates
Replies: 11
Views: 3235

If you want to apply the query in the source itself, use the condition below - to_char(your_date_column, 'YYYYMMDD') BETWEEN '20090306' AND '20090312' Wait... you can use the between like that after the to_char() to cause it to generate multiple values? In all my born days I've never seen the like ...
by chulett
Wed Mar 25, 2009 3:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: List of SYS tables
Replies: 6
Views: 1643

:lol:

Wow... never knew I was privy to the complete list.
by chulett
Wed Mar 25, 2009 3:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: List of SYS tables
Replies: 6
Views: 1643

They are purposefully not published.
by chulett
Wed Mar 25, 2009 3:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 4932

Since for whatever reason you don't seem to have "Insert then Update" as an option, then yes - go manual and include only the insert dml.
by chulett
Wed Mar 25, 2009 12:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 4932

As noted, either will work but "Insert then Update" would be the smarter choice. :wink:
by chulett
Wed Mar 25, 2009 12:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Junk characters in char column of DB2 Table
Replies: 5
Views: 2611

It's 0x20 (not 20x0) for a space and you can override the environment variable in just this job, no need to change your project-level default.
by chulett
Wed Mar 25, 2009 12:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 4932

Sure, but the question is in what order are the operations performed? Either way will work as desired - provided the updates are filtered out - but best to perform the insert attempt first so that you don't burn two database operations for every record. I don't have any kind of access right now, do ...
by chulett
Wed Mar 25, 2009 10:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Inserts
Replies: 21
Views: 4932

I'm not sure you need to set both as I believe one overrides the other but yes - zero should mean only on successful completion. I'm unsure what the defaults are when those are not set, however... perhaps leaving them unset means the same thing?