Calculate Day of Week from Lilian Date (CEEDYWK) API


  Required Parameter Group:

1 input_Lilian_date Input INT4
2 output_day_no Output INT4

  Omissible Parameter:

3 fc Output FEEDBACK

  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

CEE0000 The API completed successfully
Severity: 00  
CEE2512 The value for the given Lilian date is not valid
Severity: 30  
CEE9902 Unexpected user error occurred in &1
Severity: 30  

Usage Notes



API introduced: V2R3
Top | ILE CEE APIs | APIs by category