====== pears.AWRStatusChangeAllowed ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Original SQL ===== create function "pears"."AWRStatusChangeAllowed"( in "id" char(20),in "oldstatus" char(1),in "newstatus" char(1),in "VorPorC" char(1) ) returns long varchar -- If change is disallowed you must set status back to oldstatus before returning an error message -- VorPorC V = vacancy P = placement (AWRJobMaster) C = company A = details form begin declare "rv" long varchar; set "rv" = ''; return("rv") end