DATE CONVERSION

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
Saama
Premium Member
Premium Member
Posts: 83
Joined: Wed Nov 22, 2006 6:42 pm
Location: Pune
Contact:

DATE CONVERSION

Post by Saama »

Hi,
Like in server version, date conversion functions like ICONV AND OCONV handle the conversions from one format to another.
I want to convert from dd-mm-yy format to yy-mm-dd format.

please Gurus help me.

cheers;
vijay
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
velagapudi_k
Premium Member
Premium Member
Posts: 142
Joined: Mon Jun 27, 2005 5:31 pm
Location: Atlanta GA

Post by velagapudi_k »

See if this helps
OConv("IConv("DATE",D-DMY)",D-YMD)
where date is the date value you pass.
Venkat Velagapudi
Saama
Premium Member
Premium Member
Posts: 83
Joined: Wed Nov 22, 2006 6:42 pm
Location: Pune
Contact:

Post by Saama »

Hi Gurus,
Sorry my query was unclear.
I mean there are date handling function in server edition, Iconv and Oconv functions are not in the parallel version. In such case how to convert from dd-mm-yy to yy-mm-dd format in parallel version.

cheers;
vijay
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

velagapudi_k wrote:See if this helps
OConv("IConv("DATE",D-DMY)",D-YMD)
where date is the date value you pass.
Venkat, Iconv and Oconv are not available in PX.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
velagapudi_k
Premium Member
Premium Member
Posts: 142
Joined: Mon Jun 27, 2005 5:31 pm
Location: Atlanta GA

Post by velagapudi_k »

I am sorry. Might have overlooked something.
Venkat Velagapudi
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Saama wrote:Hi Gurus,
Sorry my query was unclear.
I mean there are date handling function in server edition, Iconv and Oconv functions are not in the parallel version. In such case how to convert from dd-mm-yy to yy-mm-dd format in parallel version.

cheers;
vijay
Your question was answered by DSguru2B. Scroll up.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

If you are just looking for dd-mm-yy to yy-mm-dd format, you can try to manipulate it as a string too.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
Post Reply