On Fri, 24 Aug 2007 12:28:12 -0500, Ulrich Krueger wrote: >OK, I have to ask ... it's been bugging me ... > >There's recently been a thread asking questions about COBOL and >ACCEPT DATE apparently giving a bad date right after midnight. > >Can someone tell me, where exactly the DATE is taken from when a >COBOL program executes ACCEPT DATE? >Is it >(a) the running system clock, local time, as of the moment ACCEPT >DATE is executed?
It is my experience that it is local time and it is fetched at the time the ACCEPT is executed. It's been a few years, but we have a program that displays record counts and times as it processes. This is accomplished by ACCEPTs (one for TIME and one for DATE as I recall) and a DISPLAY. But I also don't understand how the date can be a day off from the time. Once the local clock hits midnight, the date should roll. The OP states that is not what is being observed, so maybe I don't understand how clocks work anymore. Maybe the ACCEPT for date was before midnight and the ACCEPT for time was after midnight ??? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

