Search found 227 matches

by paddu
Wed Mar 14, 2007 4:12 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date help
Replies: 20
Views: 6530

Date help

I have dates coming from the source Flat file as Varchar 11022006 (MMDDYYYY) I have to load this into oracle as MM/DD/YYYY . I acheived this by using FMT(src_out_AMA_LICENSE.Raw_St_Lic_expr_dt,'R##/##/####') .It loads as MM/DD/YYYY in varchar field in oracle. how do i convert MMDDYYYY into MM/DD/YYY...
by paddu
Thu Mar 08, 2007 2:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

us1aslam1us ,

Ray addressed me as Son in one of his posts .So i just corrected. that's it.
by paddu
Thu Mar 08, 2007 1:53 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

what do you mean by "Are you kidding".

I am a female not Male .
by paddu
Thu Mar 08, 2007 1:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

Ray

I am your daughter :) not SON

I see that Disable BBCode in this post option is checked for me by default.
i unchecked it

Code: Select all

It's  working   now
:D
by paddu
Wed Mar 07, 2007 10:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

i fixed the problem . i changed the order of my stage variables. i had vcount -Dcount(sv1,' ') sv1-Trim(src_hcrs.City_State_Zip) now it is sv1 first and vcount next . i am extremely sorry for my act of ignorance. the logic is working and the results are as i expected. Thank you everyone paddu
by paddu
Wed Mar 07, 2007 10:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

code tags did not help . when i previewed the data , it is trimming the spaces .

may be i am using it incorrectly.

i did something like this

[code]a b[/code]

results in single space between a and b
by paddu
Wed Mar 07, 2007 10:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

kumar ,

i need to tell one more thing

In the actual data there is one space between city and state and two spaces between state and zipcode . After Trim function there is one space between the city,state and zip.

so i used only single space as delimiter
by paddu
Wed Mar 07, 2007 10:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

i do not know when i posted the actual value with the spaces after the zipcode in the first field ,the previous post removed the spaces.

how can i post the data with spaces. what option should i use?
by paddu
Wed Mar 07, 2007 9:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

Actual Value,Trim(field),vcount,city,state,zip 'S PASADENA FL 33707 ','S PASADENA FL 33707',1,'S','PASADENA','FL' the true zipcode is missing but for some records it is fine. to understand easily ,i used quotes to differentiate the acutal length of the data and comma to separate the fields .
by paddu
Wed Mar 07, 2007 9:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

i did exactly the same way .

Field ,Trim(Field),vcount(count of delimiter),city,state,zip
by paddu
Wed Mar 07, 2007 9:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: String Concatenation
Replies: 2
Views: 1370

(If( Write_Reversal.END_USER_NAME<> Read_SpaChannelHistory.END_USER_NAME Then 'AOO |') Else '') : '|' : ( If (Write_Reversal.CHANNEL_FLAG<> Read_SpaChannelHistory.CHANNEL_FLAG Then 'CF' )Else '' )

try using this
by paddu
Wed Mar 07, 2007 8:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

i don't mean that there are some records with single delimiter. i do not know why for one record the Dcount is 4 and for the other 3. they are exactly same data . Am i missing something. before triming the field there were two spaces between the state and zip . after the trim there is one space betw...
by paddu
Wed Mar 07, 2007 7:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

as suggested i did used two stage variables 1. sv1-Trim(input.field) 2.vcount-Dcount(sv1,' ') transformer logic for City-if vcount>3 Then Field(sv1,' ',1):' ':Field(sv1,' ',2) Else Field(sv1,' ',1) state-if vcount>3 Then Field(sv1,' ',3) Else Field(sv1,' ',2) zip- if vcount>3 Then Field(sv1,' ',4) E...
by paddu
Wed Mar 07, 2007 5:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: splitting a string into three fields
Replies: 33
Views: 6708

splitting a string into three fields

I have a fixed width file. One of the column is City_state_Zip length 30 i need to split the column into three separate columns city,state& zip. how do i achieve this? i tried with field function with space as a delimiter but did not help me because my data looks like this .The city has two valu...
by paddu
Thu Mar 01, 2007 6:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: problem with dates loading in Oracle
Replies: 30
Views: 7798

Craig-Well... there ya go. Your time transformation is failing for some reason. Now just need to puzzle out the why of it... yes that's why i asked ,was something wrong with my right function (time transformation)???in my earlier post. I used the stage variable you suggested and finally the results ...