Page 1 of 1

Iconv Date format from variable/parameter

Posted: Wed Feb 12, 2014 9:35 am
by roy
Hi All,
(thoght I posted it already :roll: )

Is there any way this can work?

Code: Select all

Iconv(link.col,myDateFormat)
Doesn't work in the current site,
was wondering is or should it be possible?

Tested hard coded conversion mask works.

Thanks,

Posted: Wed Feb 12, 2014 10:20 am
by chulett
If myDateFormat is a job parameter, have you tried enclosing it in hash marks?

Code: Select all

Iconv(link.col,#myDateFormat#)
If it isn't then please explain how you are setting it up...

Posted: Wed Feb 12, 2014 3:23 pm
by ray.wurlod
Where exactly are you trying to do this?

If you're trying to use a job parameter, you must select it using the expression editor - for some reason typing it in is not recognized.

Posted: Wed Feb 12, 2014 4:22 pm
by chulett
That's true... it doesn't always need to be enclosed as I noted and I forget where it doesn't want them. The expression editor always knows, however. :wink:

Posted: Tue Feb 18, 2014 7:57 am
by roy
ray.wurlod wrote:Where exactly are you trying to do this?

If you're trying to use a job parameter, you must select it using the expression editor - for some reason typing it in is not recognized.
I'll try it Ray, Thanks.
chulett wrote:That's true... it doesn't always need to be enclosed as I noted and I forget where it doesn't want them. The expression editor always knows, however. :wink:
Stage attributes need # signs
Basic expressions/code doesn't