Date function format string

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
raju4u
Participant
Posts: 56
Joined: Thu Dec 13, 2007 12:30 am

Date function format string

Post by raju4u »

DB is DB2
Ds is :PX
Hi i am passing one parameter as date as a scheduled run date
when i give the format like yyyy/MM/DD it is accepting.but when i give format like MM/DD/YYYY it is not accepting..though i use datetostring function it is not accpting..

Can anybody help me out on this..

Thanks
N R REDDY
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

Along with the function mention the format as well.

The default format would be yyyy/mm/dd so when you pass the value in this format it works. But if you feed data in a different format it will not work until you mention the format in the DateToString function.

HTH
--Rich
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, post the actual syntax you are using along with a sample or two of your input data.
-craig

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