Search found 83 matches

by ririr
Mon Nov 08, 2004 4:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Error
Replies: 1
Views: 1391

I think you have the column defined with Lengh and scale on the source side. Modify the target column's length and scale to be in sync with the source. It should work..
by ririr
Mon Nov 08, 2004 8:54 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: I want to conver varchar to integer
Replies: 4
Views: 1844

Please create a routine (ToInteger) using the following code.. I am using it to convert the strings such as "001234" to integer, and it works great.. If Num(Arg1) = 1 and IsNull(Arg1) = 0 Then d = Field(Arg1, ".", 2) If IsNull(d) = 1 Then Ans = Int(Arg1) End Else If d[1,1] >= 5 T...
by ririr
Fri Oct 29, 2004 10:21 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sysdate-1 Date as Job Parameter
Replies: 5
Views: 3578

We are in test mode. Eventually all of jobs will be scheduled. On your comment "sort of Job Control wrapper that computes the data and then assigns the resultant value to the parameter" can you please be more specific. Also, how is the parameter default value different in jobs and sequence...
by ririr
Fri Oct 29, 2004 9:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sysdate-1 Date as Job Parameter
Replies: 5
Views: 3578

sysdate-1 Date as Job Parameter

I need to pass sysdate -1 as default value to one of the job parameters to all of our datastage jobs. I tried to use Oconv(@DATE, "D-YMD[4,2,2]") in the default value and it throws an error: "Must have a valid date(not including time)"..

Any help is appreciated!

Thanks
by ririr
Mon Oct 18, 2004 2:49 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Setting up Account Name in Hash File Stage
Replies: 5
Views: 1312

Re: Setting up Account Name in Hash File Stage

ririr wrote:Hello -

I wanted to modify the hash file stages in some of our jobs to use the account name instead of directory path. What information do I need in order to handle the above situation.

Any help is appreciated!!

Thanks
You are correct kim.. This is a followup to my previous post

Thanks
by ririr
Mon Oct 18, 2004 12:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Setting up Account Name in Hash File Stage
Replies: 5
Views: 1312

Setting up Account Name in Hash File Stage

Hello -

I wanted to modify the hash file stages in some of our jobs to use the account name instead of directory path. What information do I need in order to handle the above situation.

Any help is appreciated!!

Thanks
by ririr
Wed Oct 13, 2004 12:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Execute Oracle Stored Procedure in Routine
Replies: 10
Views: 9792

Use the Exec_SH(Routine). Call a shell script that executes the database procedure. I can send information, if interested.
by ririr
Tue Oct 12, 2004 1:16 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: USING COMMAND FROM DS ADMINISTRATOR
Replies: 1
Views: 644

USING COMMAND FROM DS ADMINISTRATOR

I have some 500 Jobs that are using Hash Files as lookups and also populating Hash Files. The project is supplied by our vendor. Is there a command that I can use from the DS Administrator to update the Directory path to all the hash stages in jobs. PS: All the hash files will be using the same path...
by ririr
Mon Jul 19, 2004 3:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Holding Previous Key Data Value
Replies: 2
Views: 2127

Holding Previous Key Data Value

The source data is read out of Oracle DRS Stage. I have a situation where I need to hold the previous row key data value in the source link and compare it with the current row key data value in the source link, If they value in the previous and curent row matches then I need to write the row to a di...
by ririr
Fri Jul 09, 2004 3:43 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using the "LIKE" operator in DS Routine
Replies: 3
Views: 1959

Thanks John, It worked like a charm!
by ririr
Fri Jul 09, 2004 1:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using the "LIKE" operator in DS Routine
Replies: 3
Views: 1959

Using the "LIKE" operator in DS Routine

I am trying to find a pattern in the source column and return Null, if the pattern is found.

For Ex: Source Column Record 1 has : "TBADA'
Record 2 has : "ADTBAAD"
Finding Pattern: "TBA"
Result : @NULL

Any help is appreciated!
by ririr
Wed Jun 02, 2004 5:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Handling Database Functions from the Transformer Stage
Replies: 4
Views: 1770

I know it is a mess, but i have a requirement for doing so. I have a database function that inserts a record in to the table and returns a value, if the parameter passed is not found in the in the table from wich the function is returning the value. I need to know if i can call a database function i...
by ririr
Tue Jun 01, 2004 4:16 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Handling Database Functions from the Transformer Stage
Replies: 4
Views: 1770

Handling Database Functions from the Transformer Stage

Can I call a database function from the transformer stage. I have a situation where I am doing a lookup in an hashfile to get the code value(Sequence Number generated by the DB) of the data flowing from source. The requirement that I have is, if the code value is not found in the hashlookup then pop...
by ririr
Tue Jun 01, 2004 9:34 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Conditional INSERT/UPDATE
Replies: 13
Views: 4686

Vincent You mentioned that you were able handle the update action by switching it across to Generated SQL and modify the UPDATE statement to replaced CREATED with UPDATED: When I try to update the column (UPDATE_DATE) ORA-00957: duplicate column name It is throwing the above oracle error. Below is t...
by ririr
Sun May 30, 2004 10:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Conditional INSERT/UPDATE
Replies: 13
Views: 4686

When you say two seperate links, are those on the target side. The target table that is being inserted/updated has to laoded twice for the two stage types(DRS or OCI9) individually.

The database platform that I am on is ORACLE.

Thanks