Re: Date manipulation
From: Howard Brazee (howard_at_brazee.net)
Date: 12/29/03
- Next message: Howard Brazee: "Re: CoBOL moved to OO"
- Previous message: Howard Brazee: "Re: COBOL Standards Issue"
- In reply to: Thane Hubbell: "Re: Date manipulation"
- Next in thread: Judson McClendon: "Re: Date manipulation"
- Reply: Judson McClendon: "Re: Date manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Dec 2003 14:18:40 GMT
On 23-Dec-2003, thaneh@softwaresimple.com (Thane Hubbell) wrote:
> That means you invoke the function 6 times and in a date rollover you
> can get "trash". Not likely - but possible. Better I think would be
>
> Move Function Current-Date to current-date-def
>
> 01 Current-date-def.
> 03 CD-YYYY Pic 9(4).
> 03 C-MM pic 9(4).
> 03 C-DD Pic 9(4).
> 03 C-HH Pic 9(2).
> 03 C-MI Pic 9(2).
> 03 C-SS Pic 9(2).
>
>
>
> Display ....... using reference modififcation or just the fields of
> current-date-def instead of a reference modification of 6 invocations
> of the function!
Six invokes for a command used once in a program is nothing. Decisions such as
this should be made solely on maintenance efficiency, not run-time efficiency.
- Next message: Howard Brazee: "Re: CoBOL moved to OO"
- Previous message: Howard Brazee: "Re: COBOL Standards Issue"
- In reply to: Thane Hubbell: "Re: Date manipulation"
- Next in thread: Judson McClendon: "Re: Date manipulation"
- Reply: Judson McClendon: "Re: Date manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]