Search found 18 matches

by new_ds_man
Thu Oct 25, 2012 1:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: concatenate row values into one column based on keys
Replies: 3
Views: 1978

Thanks much BHASDS. I now have the result based on your solution. Really appreciate your time and help.
by new_ds_man
Mon Feb 13, 2012 12:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: string to time
Replies: 6
Views: 3314

pandees, i tried that, says invalid format...Invalid Format [%hh%nn%ss%c] used for string_from_time type conversion. James, The requirement is a little different in this case. I am just trying to understand why the conversion would not work for 7 length time field (Ex: 1010103). Thanks for the repli...
by new_ds_man
Mon Feb 13, 2012 9:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: string to time
Replies: 6
Views: 3314

Thanks for the quick reply James.
The source column that is sending the time value is a char(7).

Please bear with me on below.
If i understood you correct, are you suggesting that i move this to a char/varchar with a format string.
will this preserve the time format still?

Thanks.
by new_ds_man
Mon Feb 13, 2012 9:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: string to time
Replies: 6
Views: 3314

string to time

Hi All, I have a time value in format HHMMSSC, HH is hours, MM is minutes, SS is seconds and C is fraction of a second. I need to convert this to a valid time format. If i have 1212124 from the source, the result format should be 12:12:12.4. I tried StringToTime(sourcecol,"%hh%nn%ss"), whi...
by new_ds_man
Tue Jul 19, 2011 9:03 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Create Multiple years data from single record
Replies: 4
Views: 3557

Re: the "big ugly transformer" technique...

Great info there jgreve. Thanks for that and i will try to work a solution using the same. Will let u know soon enough.

Thanks Again.
by new_ds_man
Mon Jul 18, 2011 12:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Create Multiple years data from single record
Replies: 4
Views: 3557

Thanks Chulett for replying. About the decimal, you are right.
Going to the question, the date range is dynamic. Any number of years/months. could be 2 months or 36 months/ 3 years.
by new_ds_man
Mon Jul 18, 2011 9:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Create Multiple years data from single record
Replies: 4
Views: 3557

Create Multiple years data from single record

All, I would really appreciate some ideas on the below requirement. *********************************************************** Input is a single record from source, like below, with start year, end year and the total amount spent for those years: Start_Year End_Year Amt ____________________________...
by new_ds_man
Sun Dec 13, 2009 10:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: split
Replies: 3
Views: 1777

split

Hi All, I have a requirement to split the incoming data based on a key column data comes in as: Key column column2 column3 column4 A 1 2 3 A 4 5 6 A 19 20 21 B 7 8 9 B 10 11 12 C 13 14 15 C 16 17 18 and so on.................... I need all As,Bs,Cs in separate O/P links. Help appreciated. Thanks in ...
by new_ds_man
Wed Dec 02, 2009 12:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: concatenation
Replies: 2
Views: 1558

We went with a different alternative, fixed the data before we receive in ETL.
by new_ds_man
Wed Dec 02, 2009 9:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: concatenation
Replies: 2
Views: 1558

concatenation

Hi All,

I have a requirement to insert a special character (ex: +) into a description column.

Example:

Source value : "klhsdpjgljhsljkdgljh"

I need to insert a '+' after every 5 characters

the O/P should be "klhsd + pjglj + hsljk + dgljh"
by new_ds_man
Tue Oct 06, 2009 7:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date Calculations
Replies: 5
Views: 2231

Thanks Guys, I am planning on getting this done thru a SQL by looking up the table. I will updated this thread once the issue is resolved.
by new_ds_man
Mon Oct 05, 2009 1:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date Calculations
Replies: 5
Views: 2231

This 'month number' reference, where is it stored - in a database table? And the 'create month' is a string field? And are you saying there's more to this than just a lookup, that you have a starting month/number and you need to compute the result somehow? Or just convert '2009/10/05' to 'October-2...
by new_ds_man
Mon Oct 05, 2009 12:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date Calculations
Replies: 5
Views: 2231

Date Calculations

Hi All, I need some help on some Date calculations. My Requirement: I have a month_number assigned to every month starting 'MAY-2009'. Ex: Create_Date, Month_Number May-2009, 150 June-2009, 151 July-2009, 152 ........... as so forth I receive create date from source, which, say is today's date 2009/...
by new_ds_man
Mon Aug 03, 2009 8:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convertion in a string
Replies: 2
Views: 1308

Thanks ArndW, That works!!!