7.5.5 CWEEK

1.
Function
A character-type function that returns the weekday represented by characters.
2.
Call
CWEEK(IW)
3.
Explanation of Parameters
IW (I) Weekday number.
CWEEK (C *( *)) Value of the character-type function that returns the  weekday represented by characters. The length of the character string must be specified by the user.
4.
Notes
(a)
The weekday represented by characters refer to SUNDAY, MONDAY..., etc. The returned character string will consist of LEN(CMON) letters from the beginning of the name.