Saving all output to "!!{outputDirectory}!!/udf_last_day.q.raw". Enter "record" with no arguments to stop it. >>> !run !!{qFileDirectory}!!/udf_last_day.q >>> DESCRIBE FUNCTION last_day; 'tab_name' 'last_day(date) - Returns the last day of the month which the date belongs to.' 1 row selected >>> DESCRIBE FUNCTION EXTENDED last_day; 'tab_name' 'date_add(start_date, num_months) - Returns the last day of the month which the date belongs to.' 'date is a string in the format 'yyyy-MM-dd HH:mm:ss' or 'yyyy-MM-dd'. num_months is a number. The time part of date is ignored.' 'Example:' ' > SELECT last_day('2009-01-12') FROM src LIMIT 1;' ' '2009-01-31'' 5 rows selected >>> !record