Calculate Day of Week from Lilian Date (CEEDYWK) API
Required Parameter Group:
Service Program Name: QLEAWI
Default Public Authority: *USE
The Calculate Day of Week from Lilian Date (CEEDYWK) API returns the day of the week as a number between 1 and 7.
Authorities and Locks
Required Parameter Group
- input_Lilian_date (input)
- A 32-bit binary integer representing the Lilian date, which is the number
of days since 14 October 1582. For example, 16 May 1988 is day number
148 138. The valid range is 1 to 3 074 324 (31 December
- output_day_no (output)
- A 32-bit binary integer representing the day of week of the input_Lilian_date. For the day of week, 1 indicates Sunday, 2 indicates Monday, ..., 7 indicates Saturday. If input_Lilian_date is not valid, output_day_no is set to 0 and CEEDYWK ends with a nonzero feedback code.
- fc (output)
- A 12-byte feedback code passed by reference. If specified as an argument, feedback information (a condition token) is returned to the calling procedure. If not specified and the requested operation was not successfully completed, the condition is signaled to the condition manager.
Feedback Codes and Conditions
|CEE0000||The API completed successfully|
|CEE2512||The value for the given Lilian date is not valid|
|CEE9902||Unexpected user error occurred in &1|
The number returned by CEEDYWK is useful for end-of-week calculations.
API introduced: V2R3