IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is Binary Date?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Habeeb Shaik

New User


Joined: 29 Aug 2005
Posts: 10

PostPosted: Wed Dec 24, 2008 4:44 pm
Reply with quote

Hi,

Does any body know what is binary date and how it is calculated.
Will it be of length S9(4) COMP.

Please reply if you have any idea.

Thanks,
Habib.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Dec 24, 2008 5:17 pm
Reply with quote

take a look at the integer-of-date function
Back to top
View user's profile Send private message
Habeeb Shaik

New User


Joined: 29 Aug 2005
Posts: 10

PostPosted: Wed Dec 24, 2008 6:19 pm
Reply with quote

Thanks enrico..

I got how binary-date is calculated by looking at interger-of-date function.

This Integer format/Binary date is the number of days since some predetermined, fixed date like 1/1/0001.

bye,
habeeb.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Dec 25, 2008 2:44 am
Reply with quote

A binary date can also be interpreted as Lilian Days.

Note that the resulting number of Lilian Days when using the COBOL FUNCTION, is based upon a starting date of 1601/01/01 (day one), whereas when using the LE Callable Services such as CEEDAYS, the resulting number of days is based upon a starting date of 1584/10/15 (day one).

You can override the FUNCTION starting date via a compile option, but that's not recommended.

HTH....

Regards,

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top