Search found 26 matches

by hcdiss
Tue Mar 10, 2009 7:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Incrementing values in datastage going wrong
Replies: 13
Views: 12221

Incrementing values in datastage going wrong

hHi, INPUT --> OLDKEY | 1234 1234 1234 1111 2345 2345 Output required ---> OLDKEY | NUMBER 1234 | 001 1234 | 002 1234 | 003 1111 |001 2345 |001 2345 | 002 What i am doing is using a stage variable which stores SvCurrentOLDKEY -- Stores current oldkey Sv PreviousOLDKEY -- Stores the previous key SvNU...
by hcdiss
Tue Mar 03, 2009 11:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How do to pattern matching in stage variable
Replies: 10
Views: 4360

[quote="Kryt0n"]Title - if count(customer_name, ',') = 0 then customer_name else ''[/quote]

Thanks Kryton....i had already tried the same yesterday and this was not working.
but today somehow this is working!!!!!!
:)

Will close the thread now.
by hcdiss
Tue Mar 03, 2009 10:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How do to pattern matching in stage variable
Replies: 10
Views: 4360

Requirement Changes

Thanks everyone for the replies. Now requirement has changes. INPUT---> CUSTOMER_NAME CHAR(60) hadley,chris,mr the occupier customer keith,ray a ,miss OUTPUT REQUIRED IS TITLE | FIRSTNAME | MIDDLE NAME | SURNAME mr | chris | | hadley the occupier | | | customer | | | miss |ray |a | keith Now to popu...
by hcdiss
Tue Mar 03, 2009 5:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How do to pattern matching in stage variable
Replies: 10
Views: 4360

[quote="Sainath.Srinivasan"]You can do a regular expression match in Oracle itself (in source SQL). In DataStage, you can do an Index()[/quote] can you give me any example of INDEX function.as i have already build the job i dont want to change anything on input end due to some other constr...
by hcdiss
Tue Mar 03, 2009 3:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How do to pattern matching in stage variable
Replies: 10
Views: 4360

How do to pattern matching in stage variable

Hi, My input table consists of Customer titles like owner ,occupier,customer with combination of "the" either "a" Customer Title OCCUPIER OCCUPIER,OWNER THE CUSTOMER A CUSTOMER EXECUTIVE EXECUTIVE THE Output requires --> I have to search the customer table and suppose if it conta...
by hcdiss
Fri Feb 27, 2009 4:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Calculating different due dates based on installment number.
Replies: 11
Views: 2839

hey ray,

Sorry about that, actually i am not a premium member hence was unable to read the post as it was marked premium.
by hcdiss
Fri Feb 27, 2009 3:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Calculating different due dates based on installment number.
Replies: 11
Views: 2839

so is there no way that i can handle this approach!!!!
by hcdiss
Thu Feb 26, 2009 7:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Calculating different due dates based on installment number.
Replies: 11
Views: 2839

[quote="chulett"]Do you know what the [i]maximum[/i] installment count can be? ...[/quote]

Unfortunately, No
and thats why i am stuck :(

But may be we can take installment count = 50 ( at the max) for now to get going with this.
by hcdiss
Thu Feb 26, 2009 6:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Calculating different due dates based on installment number.
Replies: 11
Views: 2839

Calculating different due dates based on installment number.

Current Scenario----> There is a customer table with customer number and number of installments taken by them.A date for payment is also set Input Table ---> CUSTOMER_NO INSTALLMENT_NO DATE 123 2 12-03-2009 Required Output We need to generate the installment dates for the customer.Suppose there are ...
by hcdiss
Tue Dec 16, 2008 12:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Splitting single column values(length not fixed)
Replies: 5
Views: 2261

Yo ho!!!! This works.Resolved

[quote="chulett"]For example: Field(Link.N_NAME_SEEK,",",1,1) = First Name Field(Link.N_NAME_SEEK,",",2,1) = Last Name Field(Link.N_NAME_SEEK,",",3,1) = Title ...[/quote] I used Stage variable in Transformer stage with this function and this works!!!!! Thanks ...
by hcdiss
Mon Dec 15, 2008 7:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Splitting single column values(length not fixed)
Replies: 5
Views: 2261

Splitting single column values(length not fixed)

Problem : I have a column named : N_NAME_SEEK Data in this column is as under : N_NAME_SEEK joe,robot,mr jain,juhi,miss lee,bruce,dr I want to split this data in 3 respective fields, FIRST NAME,LAST NAME,TITLE So output i want is : FIRST NAME LAST NAME TITLE robot joe mr juhi jain miss bruce lee dr ...