Warnings while converting String to Date

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
sweety123
Participant
Posts: 18
Joined: Thu Dec 10, 2009 5:28 am

Warnings while converting String to Date

Post by sweety123 »

Hi all,

I have a job design:

Sequential File --> transformer --> Oracle stage

I have a string field in format 'yyyymmdd'. I am to convert this string to Oracle date. The conversion is happening successfully using the function:

StringToDate(Column_Name,'%yyyy%mm%dd')

However, when I am using the code:

If Column_Name='00000000' Then '' Else StringToDate(Column_Name,'%yyyy%mm%dd')

I am getting warning: APT_CombinedOperatorController,3: Conversion error calling conversion routine date_from_ustring data may have been lost

Can anyone please tell me why am I getting this warning and its resolution.

Thanks in advance.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

You are passing '' (blank value) to date. You can either set it to Null or Pass a exterme values like '30/12/9999' etc.
Make the combinability to False in transformer properties. It will give you more debugging information.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply