PROMPT Create Job - Cleanup Histories

VARIABLE jobno number;
BEGIN
   DBMS_JOB.SUBMIT(:jobno, 
      'sys_report.Cleanup_Report(0);',
      TRUNC(SYSDATE)+30/24, 'trunc(sysdate)+30/24');
   COMMIT;
END;
/

VARIABLE jobno number;
BEGIN
   DBMS_JOB.SUBMIT(:jobno, 
      'sys_audit.Cleanup_Audit(0);',
      trunc(add_months(SYSDATE,1), 'MM')+3/24, 'trunc(add_months(sysdate,1), ''MM'')+3/24');
   COMMIT;
END;
/

VARIABLE jobno number;
BEGIN
   DBMS_JOB.SUBMIT(:jobno, 
      'Sys_Job.Cleanup_Job(0);',
      trunc(add_months(SYSDATE,1), 'MM')+2/24, 'trunc(add_months(sysdate,1), ''MM'')+2/24');
   COMMIT;
END;
/