Calculate Day of Week from Lilian Date (CEEDYWK) API


  Required Parameter Group:


  Omissible Parameter:


  Service Program Name: QLEAWI

  Default Public Authority: *USE

  Threadsafe: Yes

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

None.


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 9999).

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.

Omissible Parameter

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


Usage Notes



API introduced: V2R3

[ Back to top | ILE CEE APIs | APIs by category ]