Search found 19 matches
- Fri Aug 13, 2010 8:53 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Iconv oconv
- Replies: 10
- Views: 7191
Im getting 6 digits dae (980501) and there are even 0 in the source so I need to convert the date in the Target as (MM-DD-YYYY) and store also if its 0 I need to load it as null. The src datatype is DECIMAL and the target data type is DATE So i have written If In_PMH_TRANS_DT = 0 Then @NULL Else ( I...
- Fri Aug 13, 2010 8:23 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Iconv oconv
- Replies: 10
- Views: 7191
- Fri Aug 13, 2010 7:50 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Iconv oconv
- Replies: 10
- Views: 7191
- Fri Aug 13, 2010 7:48 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Iconv oconv
- Replies: 10
- Views: 7191
Iconv oconv
Im getting the date in the format yyyy-mm-dd and I want to be loaded in the target in the format mm-dd-yyyy. I tried using Iconv and oconv but its saying its not valid month may be the syntax im writing is not right. Can anyone plz help me with the syntax to convert date format yyyy-mm-dd to mm-dd-y...
- Wed Aug 11, 2010 2:09 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 13
- Views: 6699
Thanks for your reply arun. I just saw the format in the output oracle stage. The format is TO_DATE(:7, 'DD-MON-YY'). This is generated sql and I want to change as user defined sql but the tab is grayed out. How can I do that. Also I was going through the server job guide and if the Oconv or Iconv f...
- Wed Aug 11, 2010 2:08 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 13
- Views: 6699
Thanks for your reply arun. I just saw the format in the output oracle stage. The format is TO_DATE(:7, 'DD-MON-YY'). This is generated sql and I want to change as user defined sql but the tab is grayed out. How can I do that. Also I was going through the server job guide and if the Oconv or Iconv f...
- Wed Aug 11, 2010 1:50 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 13
- Views: 6699
- Wed Aug 11, 2010 1:27 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 13
- Views: 6699
- Wed Aug 11, 2010 1:03 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 13
- Views: 6699
Syntax
I have written a function like this If Input.a = 0 Then @NULL Else ( If (Input.a [1, 1]<='2') Then '20' : Input.a [2, 2] : '-' : Input.a [4, 2] : '-' : Input.a [6, 2] Else '19' : Input.a [1, 2] : '-' : Input.a [3, 2] : '-' : Input.a [5, 2]) but still Im getting the error "Attempt to convert Str...
- Wed Aug 11, 2010 10:00 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 13
- Views: 6699
Date Conversion
The source is AS400 and the date column has the datatype as decimal and its coming as either 0's or 950401(YYMMDD). I tried using Iconv Oconv and also DateTimeStampToODBC routine still im getting the error Attempt to convert String value "0--" to Date type unsuccessful. I appreciate any in...
- Wed Jun 02, 2010 3:12 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Stagevariable
- Replies: 2
- Views: 5649
Stagevariable
Im using a select query in the transformer using a stage variable to get the dt.The query I have written works in Toad but in data stage its giving me an error ORA-00933: SQL command not properly ended. Here is the query im using in the transformer SELECT count(*)FROM dw.frm_fact gff,dw.frm_cmp_dim ...
- Wed Jun 02, 2010 8:31 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Using stored procedure in Datastage
- Replies: 8
- Views: 26390
- Wed Jun 02, 2010 8:23 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Using stored procedure in Datastage
- Replies: 8
- Views: 26390
Re: Using stored procedure in Datastage
SP stage can be used and to get count get rowcount using transformes Thank you so much for the response. I have used the STP but Im getting the error Stored_Procedure_34: First output column must be a Procedure return code. I'm not sure which option Im not specifying it right. Im following the Data...
- Wed Jun 02, 2010 7:02 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Using stored procedure in Datastage
- Replies: 8
- Views: 26390
Using stored procedure in Datastage
Im in the initial stage of learning datastage. I have a stored procedure which takes input as a date.Data_out is a cursor type. In datastage I just need to get the counts of those out records of the result set of the stored procedure. Can I use the ODBC stage or STP stage. I have this doubt bcoz doc...
- Thu May 20, 2010 11:26 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: stagevariable
- Replies: 8
- Views: 3737