Quantcast
Channel: Toad Data Point Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2544

TDP 4.2 Set Variable with date into string

$
0
0

Hi all

I have a problem with set variable activity, when i try to put a formatted date from a dataset to a string variable :

I'm using Oracle 11GR2

example :

-execute script activity :

select to_char(trunc(sysdate, 'month'), 'DD/MM/YYYY') as date_deb

from dual return '01/07/2017'

save result set in variable VROD

-set variable 

variable name : test

variable type : string

variable value : #VROD.date_deb# (quoted or not)

result : Variable "test" set to '0.0021956229194702174374955733' (the slashes seems to be interpreted as "divide")

work around is to change variable type as SQL but  "prompt during run" become unavalaible...

I have to create specific SQL for setting each variable needed...

Another way ??

Regards.

Franck


Viewing all articles
Browse latest Browse all 2544

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>