gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Century in DATE.


From: Bill Klein
Subject: Re: [open-cobol-list] Century in DATE.
Date: Wed, 4 Mar 2009 15:43:51 -0600

I probably should have mentioned that the intrinsic function CURRENT-DATE
(and WHEN-COMPILED) always include the century.  There are also intrinsic
functions for converting from 2digit years to 4digit years. 

> -----Original Message-----
> From: Bill Klein [mailto:address@hidden 
> Sent: Wednesday, March 04, 2009 3:40 PM
> To: address@hidden
> Subject: Re: [open-cobol-list] Century in DATE.
> 
> I think that OC supports what was added in the '02 Standard, i.e.
> 
>    Accept field-1 from DATE yyyyMMDD
>          or
>    Accept field-2 from DAY YYYYDD
> 
> where "YYYYMMDD" and "YYYYDDD" are reserved words (or 
> reserved in context, I
> can't remember which)
> 
> For an online syntax diagram, see:
>    
> http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/IGY3LR40
> /6.2.1.2 
> 
> or check out the '02 Standard if you have it.
> 
> > -----Original Message-----
> > From: John Culleton [mailto:address@hidden 
> > Sent: Wednesday, March 04, 2009 3:26 PM
> > To: open-cobol-list
> > Subject: [open-cobol-list] Century in DATE.
> > 
> > When I accept DATE into a field I get the traditional
> > YYMMDD format.  In OC is there a way to accept 
> > CCYYMMDD? Are there other variations in OC? 
> > Just curious,
> > -- 
> > John Culleton
> > Able Indexers and Typesetters
> > http://wexfordpress.com
> > 
> > --------------------------------------------------------------
> > ----------------
> > Open Source Business Conference (OSBC), March 24-25, 2009, 
> > San Francisco, CA
> > -OSBC tackles the biggest issue in open source: Open Sourcing 
> > the Enterprise
> > -Strategies to boost innovation and cut costs with open 
> > source participation
> > -Receive a $600 discount off the registration fee with the 
> > source code: SFAD
> > http://p.sf.net/sfu/XcvMzF8H
> > _______________________________________________
> > open-cobol-list mailing list
> > address@hidden
> > https://lists.sourceforge.net/lists/listinfo/open-cobol-list
> > 
> 
> 
> --------------------------------------------------------------
> ----------------
> Open Source Business Conference (OSBC), March 24-25, 2009, 
> San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing 
> the Enterprise
> -Strategies to boost innovation and cut costs with open 
> source participation
> -Receive a $600 discount off the registration fee with the 
> source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]