HP COBOL II/XL Quick Reference Guide (31500-90015)
E- 5
Syntax
FUNCTION DATE-OF-INTEGER (
parameter-1
)
Parameters
parameter-1
A positive integer that represents a number of days
succeeding December 31, 1600 in the Gregorian
calendar.
DAY-OF-INTEGER
The DAY-OF-INTEGER function converts a date in the Gregorian calendar
from integer date form to Julian date form (YYYYDDD). The function type
is integer.
Syntax
FUNCTION DAY-OF-INTEGER (
parameter-1
)
Parameters
parameter-1
A positive integer that represents a number of days
succeeding December 31, 1600 in the Gregorian
calendar.
FACTORIAL
The FACTORIAL function returns an integer that is the factorial of
parameter-1
. The function type is integer.
Syntax
FUNCTION FACTORIAL (
parameter-1
)
Parameters
parameter-1
Must be an integer greater than or equal to zero.
(The largest value
parameter-1
can be is 20 in
order for the result to fit in 18 digits.)
INTEGER
The INTEGER function returns the greatest integer value that is less than
or equal to the argument. The function type is integer.
Syntax
FUNCTION INTEGER (
parameter-1
)
Parameters
parameter-1
Must be class numeric.
INTEGER-OF-DATE
The INTEGER-OF-DATE function converts a date in the Gregorian calendar
from standard date form (YYYYMMDD) to integer date form. The function
type is integer.
Syntax
FUNCTION INTEGER-OF-DATE (
parameter-1
)
Parameters
parameter-1
Must be an integer of the form YYYYMMDD, whose
value is determined as follows:
(YYYY * 10000) + (MM * 100) + DD
where YYYY represents the year in the Gregorian
calendar and must be an integer greater than 1600.
MM represents a month and must be a positive
integer less than thirteen. DD represents a day
and must be a positive integer less than 32 ; DD
must be valid for the specified month and year
combination.
INTEGER-OF-DAY