Stephen Johnson wrote:
>>> Johnson Stephen <[log in to unmask]>
>01/29/97 09:30am >>>
>Can someone tell me what I am doing wrong ???
>01 wint.
> 05 date-today pic 9(8) value 0
> 05 int-date pic 9(7) value 0
>move 19960501 to date-today.
>compute int-date = function integer-of-day (date-today)
>ERROR:
>Bad parameter to INTEGER-OF-DATE/DAY, error 11 (coberr 745)
>Input parameter is: 19960501
-----------------------------------------------------------------------------------
You used the wrong function. You want to use the integer-of-date
function, not the integer-of-day function. The former is for dates in
YYYYMMDD format, while the latter is for Julian format dates in
YYYYDDD format.