conversion of date

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
consulting
Participant
Posts: 50
Joined: Fri Dec 21, 2007 3:24 am

conversion of date

Post by consulting »

is there any other way other than routine to convert date from mm-dd-yy to dd-mm-yy in server job
balaji
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: conversion of date

Post by sachin1 »

you can use inbuilt function provided by datastage like "ICONV" and "OCONV"
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

there are many ways, depending on how much you can trust your date-data.

If MyDate is your Field

a

Mydate[4,3]:Mydate[1,3]:Mydate[7,2]

is just an other way without routine and inbuilt function.
Last edited by WoMaWil on Fri Mar 28, 2008 6:39 am, edited 1 time in total.
Wolfgang Hürter
Amsterdam
consulting
Participant
Posts: 50
Joined: Fri Dec 21, 2007 3:24 am

Post by consulting »

thanks
balaji
Post Reply