U@GETLCLWKDLIT
U@GETLCLWKDLIT returns the translated day of the week name for the date in E@DRFRDATE. The translated name is based on the locale in E@WSLOCALE. This routine can be useful to format days of the week in messages since such formatting is not done as part of the formatting of other screen elements.
Module | CALRTNS |
Required Input
Field | Type and length | Definition |
---|---|---|
E@DRFRDATE | N 8 | Date, in yyyymmdd format, to use in the conversion of the day of the week name. |
E@WSLOCALE | A 10 | The locale name used to translate the date. |
E@DRDATEABBRFL | A 1 |
Set to Y to return an abbreviation of the date literal. For example, Mon rather than Monday. The default value is N to return full literal. |
Output
Field | Type and length | Definition |
---|---|---|
E@DRLITWEEKDY | A 20 | Literal weekday An error returns spaces. |
E@DRERRORNBR | N 9 |
Error number. 24 = Bad Date in E@DRFRDATE |
E@DRERRORVAR | A 20 | Input parameter is in error. |