SQL - Scalar functions - FIRST_DAY
The FIRST_DAY function returns a date or timestamp that represents the first day of the month of the argument.
The schema is SYSIBM.
The result of the function is a timestamp with the same precision as expression, if expression is a timestamp. Otherwise, the result of the function is a date. If the argument can be null, the result can be null; if the argument is null, the result is the null value.
SET :FIRST_OF_MONTH = FIRST_DAY(CURRENT_DATE)
SET :FIRST_OF_MONTH = CHAR(FIRST_DAY(DATE '1965-07-07'), EUR)