Search found 726 matches

by zulfi123786
Tue Jun 12, 2012 11:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert Char 10 to Integer 10 gives unexpected results
Replies: 11
Views: 6737

Re: Convert Char 10 to Integer 10 gives unexpected results

lpadrta wrote:I am trying to make the SQL db target integer 10 value 3600000008
check what is the size of integer datatypes on your database and also check if the colum defined is signed or unsigned. even datastage integer cant hold the above value if the column is defined as signed (not unsigned)
by zulfi123786
Mon Jun 11, 2012 8:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Escape Single Quote with Single Quote
Replies: 23
Views: 9889

could you share how you have assigned the string in the stage variable ?
what is your source ?
by zulfi123786
Mon Jun 11, 2012 6:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Escape Single Quote with Single Quote
Replies: 23
Views: 9889

This one should work

Code: Select all

pxEreplace(AB:"'":CD:"'":E,"'","''",0,0) 
by zulfi123786
Mon Jun 11, 2012 4:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Escape Single Quote with Single Quote
Replies: 23
Views: 9889

kumar66 wrote:Derivation : pxEreplace(AB'CD'E,"'","''",0,0)
Use a stage variable and set it to "AB'CD'E"
then use the derivation pxEreplace(stage_variable,"'","''",0,0)
by zulfi123786
Mon Jun 11, 2012 3:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Escape Single Quote with Single Quote
Replies: 23
Views: 9889

now tell us what is the routine returning ?
by zulfi123786
Mon Jun 11, 2012 3:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup Fails on Timestamp with MicorSeconds.
Replies: 6
Views: 2641

Re: Lookup Fails on Timestamp with MicorSeconds.

Look up will generate the warning if there are duplicate values over the key columns, in your case there are no duplicates if the microseconds are considered. It is not advisable to look for means of how to suppress warnings rather approach with a resolution to fix the warnings. you have two choices...
by zulfi123786
Mon Jun 11, 2012 3:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: VARCHAR TO BIGINT
Replies: 7
Views: 5756

Your Source value is too big to fit in smallint. If you have to store the value then change the data type to integer
by zulfi123786
Mon Jun 11, 2012 2:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: String to Date conversion issue
Replies: 9
Views: 4481

you need to use as shown

Code: Select all

 Iconv(input.Date,"D-YMD")
by zulfi123786
Mon Jun 11, 2012 12:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup Fails on Timestamp with MicorSeconds.
Replies: 6
Views: 2641

Re: Lookup Fails on Timestamp with MicorSeconds.

synsog wrote:Getting Error:-
Ignoring duplicate entry at table record 3; no further warnings will be issued for this table
As noted this is not error but just a warning and looking at the warning it is clear that on the reference link the column is defined as Timestamp witthout the microseconds extension
by zulfi123786
Sun Jun 10, 2012 11:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: VARCHAR TO BIGINT
Replies: 7
Views: 5756

Re: VARCHAR TO BIGINT

srivalli_b wrote:TDSTAGE -----> XFM---> TDSTAGE

MY SOUCE COLUMN DATATYPE IS VARCHAR
TARGET COLUMN DATATYPE IS BIGINT
use the derivation

Code: Select all

If IsValid("int64",Trim(input.column)) Then Trim(input.column) Else SetNull()
Assuming the invalids should be set to Null.
by zulfi123786
Fri Jun 08, 2012 11:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Data Set record count (not orchadmin)
Replies: 5
Views: 3158

Which version of advanced parallel job guide are you referring. I don't recollect having read about dsrecords in version 7.5 however dsrecords is documented in orchestrate users guide
by zulfi123786
Fri Jun 08, 2012 8:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Data Set record count (not orchadmin)
Replies: 5
Views: 3158

Re: Data Set record count (not orchadmin)

PhilHibbs wrote:Just as I hit "Submit", a solution occurred to me - have a look in the PXEngine/bin directory and see if anything rings a bell! The answer is: dsrecords.
to be more specific:

Code: Select all

dsrecords -n 
as documented in the Ochestrate guide
by zulfi123786
Fri Jun 08, 2012 12:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Escape Single Quote with Single Quote
Replies: 23
Views: 9889

this is done in server using Ereplace function.
Some one here has posted a parallel version of it. you could use it to fit your purpose
by zulfi123786
Thu Jun 07, 2012 11:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: RCP Clarification
Replies: 3
Views: 1309

Re: RCP Clarification

2)Should i need to use schemafile for target sequential file If your sequential file is the origination stage of data in your job then you need to specify schema file to enable RCP, in your case its not. More over, RCP will not be of much help based on your inputs where you have only a Oracle stage...
by zulfi123786
Thu Jun 07, 2012 8:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: storage of NULLS
Replies: 10
Views: 2167

Gurus, could some one Please share any thoughts ?