Re: Date manipulation

From: Judson McClendon (judmc_at_sunvaley0.com)
Date: 12/29/03


Date: Mon, 29 Dec 2003 20:39:56 GMT


"Howard Brazee" <howard@brazee.net> wrote:
>
> "Judson McClendon" <judmc@sunvaley0.com> wrote:
> >
> > If that code is in a transaction routine that is called 1000 times a second,
> > the overhead isn't 'nothing'. And what about turning over midnight after
> > the first call and before the last call? Remember Murphy's Law. :-)
>
> But you will notice that the code said:
> DISPLAY 'SIPR702 BEGAN ' FUNCTION CURRENT-DATE (5:2)
> '/' FUNCTION CURRENT-DATE (7:2)
> '/' FUNCTION CURRENT-DATE (1:4)
> ' ' FUNCTION CURRENT-DATE (09:2) hour
> ':' FUNCTION CURRENT-DATE (11:2)
> ':' FUNCTION CURRENT-DATE (13:2).
>
> Saying when a program starts doesn't happen 1000 times a second.

True. But saying when a transaction began processing might. ;-)

> I was under the impression that this gets converted into one call though.

I would think this should be the case, even if COBOL standards do not
dictate it. A compiler would be pretty inept not to detect and optimize
such a pattern. :-)

-- 
Judson McClendon      judmc@sunvaley0.com (remove zero)
Sun Valley Systems     http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."


Relevant Pages

  • Re: Well at least this groups is more interesting than ...
    ... Howard Brazee wrote: ... to include only weapons suitable for an 18th century militia. ... That would seem to make as much sense as saying the freedom of the ...
    (comp.lang.cobol)
  • Re: Copy process
    ... Howard Brazee wrote: ... Progress dialog box appears: ... Are you saying you do not see this dialog box? ... this address so that your email doesn't get eaten by my SPAM filter. ...
    (comp.sys.mac.misc)
  • Re: OT: Politically Correct
    ... Howard Brazee wrote: ... just to show that the main topic of conversation in Calgary is 'Weather' and confirms our saying, "Wait five minutes and the weather will change" ... Howard if you took WestJet to Calgary say in July and just as your plane was circling the airfield, you might be tempted to put on 'fake and bake' tan lotion. ...
    (comp.lang.cobol)
  • Re: Proper Way to Type [OT]
    ... Howard Brazee wrote: ... are they taking the stupid things? ... That's new for me - what is it they think they are saying? ... - Harry Potter and the Odor of the Phoenix ...
    (comp.sys.mac.misc)
  • Re: Copy process
    ... In article, Howard Brazee ... Progress dialog box appears: ... Are you saying you do not see this dialog box? ... will not appear because by the time the window would have been created ...
    (comp.sys.mac.misc)