convert string to timestamp am or pm

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

samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

Try the derivation given by ArndW and another way I suggest to do it as a substring, like date and time. U can change the date by using stringtodate() and keep the time as string to tranform it for am/pm using stage variables.
hi sam here
vilasini
Participant
Posts: 32
Joined: Sun Dec 09, 2007 11:48 pm

Post by vilasini »

Yes.Plz explain me how you have done it.

Thanks
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

what part of my post you dint understand ?
hi sam here
vilasini
Participant
Posts: 32
Joined: Sun Dec 09, 2007 11:48 pm

Post by vilasini »

Thanks a lot for your response.Now the requirement is changed.

Regards
Anju
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What the heck does that mean? Everything is fine now? We need to start over? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
vilasini
Participant
Posts: 32
Joined: Sun Dec 09, 2007 11:48 pm

Post by vilasini »

I have resolved it by checking with '/' of each and every combination of timestamp.I have defined 6 stage variables to convert.I cann't post variable derivation as it is very long.
I hope we can write a routine for that too.
Thanks
Post Reply