905-GET-LOCALE-MONTH-LIT
905-GET-LOCALE-MONTH-LIT
returns the translated
month name for the month number in the date in WSDR-FR-DATE
. The translated name is based
on the locale in WS-LOCALE
. This routine
can be useful to format months in messages since such formatting is
not done as part of the formatting of other screen elements.
Library
|
CALRTNS |
Required Input
Field | Type and length | Definition |
---|---|---|
WSDR-FR-DATE
|
N 8 | Date, in yyyymmdd format, to use in the conversion of the month name. |
WS-LOCALE
|
A 10 | The locale name used to translate the date. |
WSDR-DATE-ABBREV-FLAG
|
A 1 |
Set to Y to return an abbreviation of the date literal. For example, Sep rather than September. The default value is N to return full literal. |
Output
Field | Type and length | Definition |
---|---|---|
WSDR-LITERAL-MONTH
|
A 20 | Literal month An error returns spaces. |
WSDR-ERROR-NBR
|
N 9 |
Error number. 24 = Bad Date in |
WSDR-ERROR-VAR
|
A 20 | Input parameter is in error. |