TIMESTAMP

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
deepthi
Participant
Posts: 56
Joined: Thu Apr 28, 2005 9:52 am

TIMESTAMP

Post by deepthi »

Hi,
i'm trying to convert a "datasetyr" columns datatype from varchar to timestamp as my source datatype is varchar and output datatype for that column is timestamp.
in modify stage i used the syntax:
conv_datasetyr:Timestamp = Timestamp_from_Varchar(datasetyr)
please help me with this.
thank you
deepthi
Mat01
Premium Member
Premium Member
Posts: 50
Joined: Wed Jun 02, 2004 11:12 am
Location: Montreal, Canada

Post by Mat01 »

Hi,

Try this one: timestamp_from_string[timestamp_format](string)

Converts the string to a timestamp
representation
using the specified timestamp_format.

By default, the string format
is %yyyy-%mm-%dd
hh:nn:ss.

HTH

Mat
deepthi
Participant
Posts: 56
Joined: Thu Apr 28, 2005 9:52 am

Post by deepthi »

Hi Mat01,
i'm still getting the syntax error
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please post the exact error message.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply