Page 1 of 1

Server Job to Parallel Job Basic string conversion

Posted: Mon Sep 25, 2006 10:23 am
by koojo
I am trying to get the current date to load into oracle....

I can load the current timestamp by using Convert CurrentTimestamp() into oracle...

If I try to extract the date as YYYY/MM/DD from the above command my job comiles ok,,,,but I cant see the converted data..
I used the following command Convert (Left(CurrentTimestamp(),10),"-","/") This does not work.....I am quiet used to doing string operations with server jobs....Am new to PX jobs

Posted: Mon Sep 25, 2006 10:33 am
by manojkumarnayak
I think you can use CurrentDate() or CurrentTimestamp().
In oracle user defined query you can use SYSDATE.
let me know your requirement

Posted: Mon Sep 25, 2006 10:46 am
by koojo
I tried CurrentDate() would not work...(It gave me a compile time error)...

Have to add an If Then Else in there and dont want to use Sysdate....Am not sure if I am missing something here with PX....or we not able to execute some routines in DS because we are missing some header files...?

Posted: Mon Sep 25, 2006 3:03 pm
by ray.wurlod
I think you want to convert "/" to "-" but you've asked to convert "-" to "/". But why not use SYSDATE ?

Convert() is valid as a function in a parallel Transformer stage.

Posted: Tue Sep 26, 2006 6:28 am
by keshav0307
your requirement is not clear..
if you are loading currentdate, why you need to convert any format..
if still you want then you can user user defined query and convert the sysdate in what ever format you want.