Day of the week

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
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Day of the week

Post by gpbarsky »

Hi, forumers.

I need to know how can I get the day of the week, using some function.

I read the ICONV and OCONV functions but I couldn't get how to use it.

Does anyone know this ?

Thanks in advance.
Guillermo P. Barsky
Buenos Aires - Argentina
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

OCONV(internaldate, "DW")
returns numeric day of week (which day is day 1 depends on your locale setting).

Code: Select all

OCONV(internaldate, "DWA")
returns the alphabetic name of the day of the week.

Code: Select all

OCONV(internaldate, "DWB")
returns the abbreviated alphabetic name of the day of the week.

For more information on date conversions, read the article Date Conversion Demystified.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply