Search found 18 matches

by saikiran
Thu Jan 07, 2010 9:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic in stage variable
Replies: 12
Views: 4423

This worked perfectly fine.
Thanks a million for all the help

Sai
by saikiran
Wed Jan 06, 2010 11:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic in stage variable
Replies: 12
Views: 4423

Ray:

Below is the O/P

DR
DR DR
DR DR DR
DR DR DR DR
DR DR DR DR DR
DR DR DR DR DR DR
DR DR DR DR DR DR DR
DR DR DR DR DR DR DR DR
DR DR DR DR DR DR DR DR MH
DR DR DR DR DR DR DR DR MH MH

REQUIRED O/P
DR DR DR DR DR DR DR DR MH MH

Thanks
Sai
by saikiran
Wed Jan 06, 2010 8:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic in stage variable
Replies: 12
Views: 4423

Chulett, This is order svCurrentValue = input.field svPreviousValue = svCurrentValue svValueHasChanged = If svCurrentValue = svPreviousValue Then 0 Else 1 If svValueHasChanged = 1 Then inlink.col2value Else If IsNull(inlink.col2value) Then svOutputRow Else If Len(svOutputRow) >= 20 Then svOutputRow ...
by saikiran
Wed Jan 06, 2010 5:37 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic in stage variable
Replies: 12
Views: 4423

Chulett,

I implemented in the followin oder ,I just mistyped it
(
svCurrentValue = input.field
svPreviousValue = svCurrentValue
)

Still I am not geeting the o/p which I need.

Thanks
Sai
by saikiran
Wed Jan 06, 2010 4:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic in stage variable
Replies: 12
Views: 4423

Ray, Thanks for your responce I implemeted the Change key using svValueHasChanged stage variable as below.Please correct me if I am wrong. svPreviousValue = svCurrentValue svCurrentValue = input.field svValueHasChanged = If svCurrentValue = svPreviousValue Then 0 Else 1 svCounter = If svValueHasChan...
by saikiran
Wed Jan 06, 2010 11:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic in stage variable
Replies: 12
Views: 4423

Sainath, Thanks for the response Let me reiterate my qestion I have to concatinate rider types for every unique rider option. And only 10 such values have to be concatinated and if null is encountered in between it has to be droped. Like this X13 DRDRDRDRDRDRDRDRMHMH M10 VSVSVSBIBIBIBIVSVSVS Please ...
by saikiran
Wed Jan 06, 2010 9:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic in stage variable
Replies: 12
Views: 4423

Logic in stage variable

Hello there, Dataset o/p RIDER RIDER_TYPE x13 DR x13 DR x13 DR x13 NULL x13 DR x13 DR x13 DR x13 DR x13 DR x13 MH x13 MH x13 MH M10 VS M10 VS M10 VS M10 BI M10 NULL M10 BI M10 BI M10 BI M10 VS M10 VS M10 VS M10 VS M10 VS M10 VS M10 VS OUTPUT X13 DR:DR:DR:DR:DR:DR:DR:DR:MH:MH M10 VS:VS:VS:BI:BI:BI:BI...
by saikiran
Wed Sep 17, 2008 10:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: string to timestamp
Replies: 5
Views: 3266

It's not necessary to have multiple threads open for the same question. Please delete your other post. The easy choice is to add a date to the front of your time, then convert the whole to a timestamp. StringToTimestamp(DateToString(CurrentDate, "%yyyy-%mm-%dd") : " " : InLink.M...
by saikiran
Sat Sep 13, 2008 3:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: string to timestamp
Replies: 5
Views: 3266

string to timestamp

Hello DSgurus,

I need to convert the source column which is in format hh:nn:ss to timestamp.Souce is sequential file and the target is oracle table.Can anyone crack this :)

Thank you
by saikiran
Mon Aug 25, 2008 10:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Implementation of Logic transformer
Replies: 1
Views: 1178

Implementation of Logic transformer

Hi there,

I need to convert a field in the following pattern

MULTIPLY BY 100 TO SHIFT DECIMAL
CONVERT THE ABOVE RESULT TO STRING THEN
PAD LEFT WITH ZEROS

Please can someone explain in detail situation.

Thank you
Sai
by saikiran
Mon Aug 25, 2008 7:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: concatination operator in transformer stage
Replies: 3
Views: 2403

concatination operator in transformer stage

Hi there,
What is the concactination operator used to in transformer stage.
can any one please highligh it with an example.
Thank you
by saikiran
Sun Aug 24, 2008 11:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: type conversion functions
Replies: 1
Views: 1275

type conversion functions

Please can any one suggest how to convert a time stamp to string with CCYYMMDD and MMDDCCYY formats.Can any one highlight with examples.

Thank you
by saikiran
Sun Aug 24, 2008 8:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Time stamp conversion
Replies: 1
Views: 1443

Time stamp conversion

Please can any one suggest how to convert a time stamp to CCYYMMDD and MMDDCCYY formats
by saikiran
Sun Aug 24, 2008 7:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Concatination of columns
Replies: 2
Views: 1711

Concatination of columns

Hi there, How to concatinate different columns in transformer stage. The datatypes of the columns varies from varchar ,timestamp,bigint. How to concatinate 70 odd colums which have the above mentioned datatypes. Let me know the operator for this concatination. Also please provide me with a example. ...
by saikiran
Sun Aug 24, 2008 7:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Concatinate columns
Replies: 1
Views: 1173

Concatinate columns

Hello there,

I have a sequential file with 76 coloums with the following datatypes

varchar,decimal,Integer,timestamp

How can I combine all these fields to one column and what should be the datatype of the resulting column.

Thank you
Sai