varchar to date

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
bobby
Participant
Posts: 86
Joined: Mon Jul 19, 2004 8:31 pm

varchar to date

Post by bobby »

hi,
stg is in varchar it need conversation in date in Datamart ,pl. advice.
Thanks,
Bobby
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Hire an articulate consultant.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bobby
Participant
Posts: 86
Joined: Mon Jul 19, 2004 8:31 pm

Post by bobby »

Hi Ray,
Can this things be disccussed private budy
:idea:
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Please state your problem clearly. Your question makes almost no sense. We don't like to guess at what you mean. You haven't stated database technology, format of the source date, data type of the target.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
gh_amitava
Participant
Posts: 75
Joined: Tue May 13, 2003 4:14 am
Location: California
Contact:

Post by gh_amitava »

Hi,

You can use "StringToDate()" function in a PX Transformer to convert the string to a "Date" type variable. Use help for the syntax.

Regards
Amitava
RC99
Participant
Posts: 19
Joined: Mon Mar 08, 2004 1:38 pm

Post by RC99 »

gh_amitava wrote:Hi,

You can use "StringToDate()" function in a PX Transformer to convert the string to a "Date" type variable. Use help for the syntax.

Regards
Amitava
I am using Dat stage 7.5 on unix
need to convert a varchar (40) coolumn data to timestamp (38)

StringToDate does not exist in DS
what does
thanks

Bob
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Please state the format of the source data as well as the target. We don't know which timestamp you're talking about, Oracle, Sybase, DB2, etc. Plus, are you going to load it into the database using which stage? It's all important so that we can give you the right answer.

Next time, please start a new post rather than hijack an old one. On the new post, you'll be able to specify your platform, version, etc. The StringToDate() reponse is for a PX job, not Server, for which that reply is irrelevant and wrongly posted.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
RC99
Participant
Posts: 19
Joined: Mon Mar 08, 2004 1:38 pm

Post by RC99 »

thanks Ken - I did just start a new one
varchar to date conversion in data stage 7.5 on unix
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

I'm looking for it, where is it? A new post means a NEW POST, not a reply on an existing message thread.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

kcbland wrote:I'm looking for it, where is it? A new post means a NEW POST, not a reply on an existing message thread.

Here it is for those reading this chain:

viewtopic.php?p=125936#125936
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply