Search found 504 matches
- Thu Jul 09, 2015 3:48 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading LOBs with RCP
- Replies: 7
- Views: 9170
If I recall, DB2 has a listagg function? If your version does have this function you could get cute and use something like the following to generate your select statement: select concat(concat(concat('select ',column_list),' from '),tbname) from (select listagg(name,',') within group (order by case ...
- Wed Jul 08, 2015 3:01 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: RCP - CDC Stage - Partitoning and Sorting
- Replies: 17
- Views: 10534
If you have a dynamic list of keys, then you need to be able to identify those key fields. Using your DBs system tables should allow you to do that. Using the system tables to identify the key values you can then generate an SQL statement which concatenates those values into a single output column a...
- Wed Jul 08, 2015 2:49 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading LOBs with RCP
- Replies: 7
- Views: 9170
And what error do you get with those settings in the DB2 connector stage? Rrrrr, not cool ! :evil: bye bye awesome select * from table + RCP :cry: And the generation of the select statement, whilst a little more complex does not remove the awesomeness of an RCP job. Its just replacing how the select...
- Tue Jul 07, 2015 3:46 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading LOBs with RCP
- Replies: 7
- Views: 9170
Its been a while since I used DB2, but I don't remember having that issue. What error do you actually receive? Is your array size set to 1? Anyway if that doesn't work, and you want to use RCP then you will need to look into generating a select statement prior to executing your job. You could use th...
- Fri Jul 03, 2015 7:26 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Use Value from Flat File on Where Clause in Oracle Stage
- Replies: 6
- Views: 3887
- Fri Jul 03, 2015 7:20 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Use Value from Flat File on Where Clause in Oracle Stage
- Replies: 6
- Views: 3887
It is possible, but the question is how you should accomplish it. You could use a sparse lookup, whereby you pass an individual SQL query per input row. This can be highly inefficient when you have many rows. Generally these are only used when the reference data is far larger than the input data. To...
- Fri Jul 03, 2015 3:19 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Parallel job problem with NLS/BOM
- Replies: 3
- Views: 4577
- Fri Jul 03, 2015 2:37 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal to HH:MM:SS in Datastage
- Replies: 5
- Views: 3092
Just one addon to ShaneMuir solution - You need to add 0 in your minutes and seconds if they are single digit, So add zero by checking if len(val)=1 else val Actually that was there in my solution. 2. Use Field() to split the converted value into separate parts (ie mins and seconds). Remember to pa...
- Thu Jul 02, 2015 9:34 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal to HH:MM:SS in Datastage
- Replies: 5
- Views: 3092
So it becomes a simple string manipulation. In a transformer 1. Convert your input decimal to a string value, using DecimalToString() remember to add the option to suppress_zero 2. Use Field() to split the converted value into separate parts (ie mins and seconds). Remember to pad your values to 2 ch...
- Thu Jul 02, 2015 9:11 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal to HH:MM:SS in Datastage
- Replies: 5
- Views: 3092
- Thu Jul 02, 2015 9:08 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to get string from VarChar from first non-numeric value
- Replies: 7
- Views: 5868
I am sure there is a better way but you could do the following (not sure it would work in all circumstances) Have 3 stage variables: svConvert=Convert('1234567890','', Lnk_input.STRING) svPart1=If svConvert ='' then Lnk_input.STRING else Lnk_input.STRING[svConvert,1,1] svPart2=If svConvert ='' then ...
- Thu Jul 02, 2015 9:02 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Sparse look up query
- Replies: 19
- Views: 9740
- Thu Jul 02, 2015 8:39 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Sparse look up query
- Replies: 19
- Views: 9740
- Thu Jul 02, 2015 8:28 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to get string from VarChar from first non-numeric value
- Replies: 7
- Views: 5868
- Thu Jul 02, 2015 8:11 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Parallel job problem with NLS/BOM
- Replies: 3
- Views: 4577