DataStage Support Oracles DDSPTH

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
sankar18
Participant
Posts: 34
Joined: Mon Dec 16, 2002 1:18 am

DataStage Support Oracles DDSPTH

Post by sankar18 »

Hi All,

Merry Christmas.

Assume I have a Date 25-OCT-2002.I require the Output as
"Twenty fifth October Two Thousand Two".Which DSFunction has to be used in DataStage to get the above output.

If I need the same result in oracle.I will use the follwing Function.

Select sysdate,to_char(sysdate,'DDSPTH FMMONTH YEAR') From dual.

Where To_Char Format mask ('DDSPTH FMMONTH YEAR') will give me desired output.

Thanks in Advance,
T Sankar & K S Rajan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As far as I know, you'll need to either write the routine yourself (if your source is not Oracle) or make use of the 'to_char' format when selecting the data from Oracle.

-craig
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In spite of Oracle users' fervent hopes, DataStage is not Oracle, and does not follow Oracle conventions.
As Craig said, given that Oracle has the facility, and DataStage can invoke that facility, why reinvent the wheel (particularly for something that is not going to be used often)?
It CAN be done in DataStage BASIC; I have a routine that outputs positive integers as their word equivalents but, again, why would you bother?

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Post Reply