HP COBOL II/XL Quick Reference Guide (31500-90015)

E- 4
Parameters
parameter-1
Must be class numeric and must be greater than or
equal to zero.
parameter-2
Must be a positive integer.
ASIN
The ASIN function returns the arcsine of the parameter. The function
type is numeric.
Syntax
FUNCTION ASIN (
parameter-1
)
Parameters
parameter-1
Must be class numeric and must be between -1 and 1,
inclusive.
ATAN
The ATAN function returns the arctangent of the parameter. The function
type is numeric.
Syntax
FUNCTION ATAN (
parameter-1
)
Parameters
parameter-1
Must be class numeric.
CHAR
The CHAR function returns a one-character alphanumeric value that is a
character in the program collating sequence having the ordinal position
equal to the value of
parameter-1
. The function type is alphanumeric.
Syntax
FUNCTION CHAR (
parameter-1
)
Parameters
parameter-1
Must be an integer. Must be greater than zero and
less than or equal to the number of positions in
the collating sequence.
COS
The COS function returns the cosine of an angle. The function type is
numeric.
Syntax
FUNCTION COS (
parameter-1
)
Parameters
parameter-1
The size of an angle in radians. Must be class
numeric.
CURRENT-DATE
The CURRENT-DATE function returns the calendar date, time of day, and the
difference between the local time and Universal Coordinated Time (UTC),
or Greenwich Mean Time. To get the correct time differential, you need
to set the environment variable TZ to your local time zone. The function
type is alphanumeric.
Syntax
FUNCTION CURRENT-DATE
DATE-OF-INTEGER
The DATE-OF-INTEGER function converts a date in the Gregorian calendar
from integer date form to standard date form (YYYYMMDD). The function
type is integer.