what is the default of DSJobStartDate

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

Post Reply
vasam
Participant
Posts: 30
Joined: Wed Nov 04, 2009 5:06 am

what is the default of DSJobStartDate

Post by vasam »

Hi All,

Could please telll me the what is the default format of DSJobStartDate:

in my job its giving yyyy-mm-dd..

I want to convert into yyyymmdd. is there any way to do that?

could you pls suggesst me

Thanks,
Vijay
vijayakumargoud
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Strip out the delimiters, convert() comes to mind.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DSJobStartDate invoked from a Transformer stage is a Date. Therefore it has no default format or, indeed, any format - it's stored as a binary quantity. The only way to get a format is to convert the date to a string, for which the appropriate function in a Transformer stage is StringToDate() - or in a ModifyStage date_from_string() - in which you can specify the required date format.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or that. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply