Search found 602 matches

by abc123
Thu Aug 09, 2007 8:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Calculation problem
Replies: 7
Views: 2554

All I get is blanks when I use StringToDecimal. It was the first thing I tried.
by abc123
Thu Aug 09, 2007 7:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Calculation problem
Replies: 7
Views: 2554

What I meant was, I did something similar and it worked when I used to DecimalToDecimal. Would appreciate any help. Thanks.
by abc123
Thu Aug 09, 2007 7:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Calculation problem
Replies: 7
Views: 2554

I tried that. It doesn't work. I have a previous situation where DecimalToDecimal made it work. Without DecimalToDecimal, I get all blanks. By the way, my incoming columns are CHAR data types.
by abc123
Thu Aug 09, 2007 4:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Calculation problem
Replies: 7
Views: 2554

Decimal Calculation problem

I am trying to do a decimal calculation and write to a decimal and/or char column (I have tried both types). I get a value of all 0s. My incoming column values are IncomingCol1 =1 and IncomingCol2=1000. I have tried with other values as well such as 2,7 and 12. I still get all 0s. I also tried: Deci...
by abc123
Tue Aug 07, 2007 2:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Is there a way to set default display columns?
Replies: 1
Views: 1004

Is there a way to set default display columns?

Let's say I have 100+ columns in a sequential file and I want to view just 2 columns every time. Instead of displaying and scrolling through all columns, is there a way to set a default of the columns I want to see?

Thanks.
by abc123
Fri Aug 03, 2007 10:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting a numeric char to decimal
Replies: 5
Views: 1745

I need all digits after the decimal. With "trunc_zero", it seems like it discards stuff after the decimal.
by abc123
Fri Aug 03, 2007 10:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting a numeric char to decimal
Replies: 5
Views: 1745

According to the Help, StringToDecimal has the following options with "trunc_zero" being the default: ceil, floor, round_inf and trunc_zero For all of these options, the decimal part is cut off, according to the Help. I am pasting the entire text here. How can this be true? Thanks. -------...
by abc123
Thu Aug 02, 2007 10:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting a numeric char to decimal
Replies: 5
Views: 1745

Converting a numeric char to decimal

I would like to convert a char number such as:

12345 to 123.45

I know I can do it using Left and Right functions but I was wondering if there is a better solution.

Thanks.
by abc123
Wed Aug 01, 2007 10:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid and StringToDate
Replies: 8
Views: 9491

balajisr, your solution worked. However, can you tell me why:

StringToDate(IncomingCol, "%yyyy-%mm-%dd")

returns all *
by abc123
Tue Jul 31, 2007 10:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid and StringToDate
Replies: 8
Views: 9491

IsValid and StringToDate

My incoming column has data such as "19950301" and it is char(10). I am trying to do: StringToDate(IncomingCol, "%yyyy-%mm-%dd") (this by ltself returns all *) and then I am trying to do: Isvalid("date",StringToDate(IncomingCol, "%yyyy-%mm-%dd")) I also tried:...
by abc123
Mon Jul 30, 2007 6:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field function question
Replies: 2
Views: 1269

Field function question

NowStr = TimeDate() ;* e.g. "09:59:51 03 JUN 1997"
NowDateStr = Field(NowStr, " ", 2, 3)

This returns: 03 JUN 1997

Can anyone explain why this is being returned? I would think that

Field(NowStr, " ", 1, 3)

should return 03 JUN 1997
by abc123
Fri Jul 27, 2007 10:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Migration & Version Control
Replies: 16
Views: 7816

Kim, can you explain little bit as to what you have in DataStageBackup.bat? Also, what do you have in the Datastage wrapper script? Thanks.
by abc123
Thu Jul 26, 2007 3:46 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Experience with DS8 installation, development, QualityStage
Replies: 0
Views: 701

Experience with DS8 installation, development, QualityStage

Can anyone share their experiences with Datastage 8.0 installation, developement and use of the QualityStage stages? I searched through the posts in this forum. I found that Raftsman had problems. I am seeing a lot of posts from people using 8.0 so I think Raftsman's situation is rare. Please share ...
by abc123
Thu Jul 26, 2007 3:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage EE with windows
Replies: 20
Views: 10887

Raftsman, can you tell me if you resolved your issues? If you did, what steps you took? We are thinking of migrating as well but this post is scaring me.

Thanks.
by abc123
Mon Jul 23, 2007 1:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Difference between ODBC and DRS stage for SQL Server
Replies: 4
Views: 4056

It seems to have more options to do things. Also, there is a way around this last character cutoff. There are certain drivers that you need to install (IBM has them) or you can add a space and increase output column length by 1 in a transformer right before writing to the table.