====== pears.TempGetWeekAgo ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Original SQL ===== COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."TempGetWeekAgo" IS {create function TempGetWeekAgo /* Application Maintained Function / Procedure - DO NOT EDIT*/ (in StartYear integer,in StartWeek integer,in WeeksAgo smallint) returns integer /* Function returns year and week in format: yyyyww */ begin declare MaxWeek smallint; if WeeksAgo>52 then return null end if ; if WeeksAgo