Domain: Environment information (calendar)
The MONTH( ) function supplies the name of the current month in the specified language and in the form of a three-character abbreviation. The MONTH( ) function can be used in conjunction with the other calendar functions in order to construct a complete date entry.
Format
MONTH( ) |
LANGUAGE = *ENGLISH / *GERMAN / *STD BASE = *TODAY / string_expression |
Result type
STRING (<string 1..3>)
Input parameters
LANGUAGE = *ENGLISH / *GERMAN / *STD
Determines the language in which the name of the month is to be output.
*STD: The output is displayed in the language contained in the default language setting for the task.
BASE = string_expression
Designates the date. When specified, the only permitted formats are *ISO, *AMERICAN and *GERMAN. If no date specified or *TODAY is given it takes current date for evaluation.
Result
Three-character abbreviation in the form of a string.
Input parameter | Result |
LANGUAGE = *ENGLISH | JAN / FEB / MAR / APR / MAY / JUN / JUL / |
LANGUAGE = *GERMAN | JAN / FEB / MRZ / APR / MAI / JUN / JUL / |
Error messages
SDP0452 INVALID DATE
Example
/A = MONTH(LANGUAGE = *GERMAN) /SHOW-VARIABLE A A = FEB /G = MONTH(LANGUAGE = *GERMAN, BASE='2015-07-30') /SHOW-VARIABLE G G = JUL