not able to convert string to time stamp

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
srini27
Participant
Posts: 7
Joined: Thu May 09, 2013 10:22 am

not able to convert string to time stamp

Post by srini27 »

Hi,
I am working on IIS 8.7

SRC : Seq file stage

target: Oracle connector

Source file is having the fields CRET_DT : 08-MAR-13 and MOD_DT :15-MAR-13.


I am using StringToDate(DSLink4.CRE_DTTM,"%dd-%mon-%yy").but its giving following error.

Transformer_7,0: Data string '08-MAR-13' does not match format '%dd-%mon-%yy': an integer was expected to match tag %m

Please help me out on this.
Srinivas
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Check the validity of your format string against the specifications in the product documentation. Pay close attention to the valid formats for month.

Date Formats

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
chandra.shekhar@tcs.com
Premium Member
Premium Member
Posts: 353
Joined: Mon Jan 17, 2011 5:03 am
Location: Mumbai, India

Post by chandra.shekhar@tcs.com »

Use

Code: Select all

StringToDate(DSLink4.CRE_DTTM,"%dd-%mmm-%yy")
Thanx and Regards,
ETL User
srini27
Participant
Posts: 7
Joined: Thu May 09, 2013 10:22 am

date type conversion issue got resolved

Post by srini27 »

Thanks alot chandra. It works fine.
Srinivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which you would have seen if you'd followed the link James posted and read the actual formats needed rather than assume it was the same as Oracle or whatever other tool you are used to. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply