Unix Technical Forum

Re: date to integer conversion

This is a discussion on Re: date to integer conversion within the DB2 forums, part of the Database Server Software category; --> Doug Doole wrote: > This sort of function has been a popular request and we're adding it in > ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 03:28 AM
gnuoytr@rcn.com
 
Posts: n/a
Default Re: date to integer conversion


Doug Doole wrote:
> This sort of function has been a popular request and we're adding it

in
> a future version of DB2. For now, Serge's SQL function is the easiest
> thing to do.
> --
> __________________________________________________ ___________________
> Doug Doole
> DB2 Universal Database Development
> IBM Toronto Labs
>
> Visit the DB2 UDB and DB2 Connect Online Support site at:
> http://www.ibm.com/software/data/db2...s2unix/support


that was 3 (three) years ago. i've run into some old VSAM->DB2
converted data (& ass. COBOL programs) which store dates this way.
this functionality in DB2/SQL would be welcome, since these guys
don't like functions or triggers (too much to remember in
managing DDL).

any time soon?? i'm on 390/V7 & UDB/v8.2

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 03:28 AM
Serge Rielau
 
Posts: n/a
Default Re: date to integer conversion

gnuoytr@rcn.com wrote:
> Doug Doole wrote:
>
>>This sort of function has been a popular request and we're adding it

>
> in
>
>>a future version of DB2. For now, Serge's SQL function is the easiest
>>thing to do.
>>--
>>________________________________________________ _____________________
>> Doug Doole
>> DB2 Universal Database Development
>> IBM Toronto Labs
>>
>>Visit the DB2 UDB and DB2 Connect Online Support site at:
>>http://www.ibm.com/software/data/db2...s2unix/support

>
>
> that was 3 (three) years ago. i've run into some old VSAM->DB2
> converted data (& ass. COBOL programs) which store dates this way.
> this functionality in DB2/SQL would be welcome, since these guys
> don't like functions or triggers (too much to remember in
> managing DDL).
>
> any time soon?? i'm on 390/V7 & UDB/v8.2
>

Is that what you're looking for?

VALUES INTEGER(CURRENT DATE);

The function was added in V8.1 GA mostly for MDC.

Cheers
Serge
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 03:29 AM
gnuoytr@rcn.com
 
Posts: n/a
Default Re: date to integer conversion


Serge Rielau wrote:
> gnuoytr@rcn.com wrote:
> > Doug Doole wrote:
> >
> >>This sort of function has been a popular request and we're adding

it
> >
> > in
> >
> >>a future version of DB2. For now, Serge's SQL function is the

easiest
> >>thing to do.
> >>--

>
>>________________________________________________ _____________________
> >> Doug Doole
> >> DB2 Universal Database Development
> >> IBM Toronto Labs
> >>
> >>Visit the DB2 UDB and DB2 Connect Online Support site at:
> >>http://www.ibm.com/software/data/db2...s2unix/support

> >
> >
> > that was 3 (three) years ago. i've run into some old VSAM->DB2
> > converted data (& ass. COBOL programs) which store dates this way.
> > this functionality in DB2/SQL would be welcome, since these guys
> > don't like functions or triggers (too much to remember in
> > managing DDL).
> >
> > any time soon?? i'm on 390/V7 & UDB/v8.2
> >

> Is that what you're looking for?
>
> VALUES INTEGER(CURRENT DATE);
>
> The function was added in V8.1 GA mostly for MDC.
>
> Cheers
> Serge


if only it were on the 390.

(and if you've any pull at all with Google, get rid of the new
Groups page. pitiful.)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 03:29 AM
Serge Rielau
 
Posts: n/a
Default Re: date to integer conversion

gnuoytr@rcn.com wrote:
> (and if you've any pull at all with Google, get rid of the new
> Groups page. pitiful.)
>

No request for world peace?
You will never become Miss/Mr World that way....

Cheers
Serge
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 03:29 AM
dotyet
 
Posts: n/a
Default Re: date to integer conversion

"Nobody likes a change, but a wet baby"

Even I have been facing problems with postings lately. But, then you
need to understand that nobody becomes a good manager the very moment
he gets out of mom's womb..... it takes him years. so relax and give
these google guys some space to breath, after all, they spent so much
resources, time, energy to reach here.

regards,
dotyet

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:26 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com