QRP
 
Loading...
Searching...
No Matches
ms_checkpoint.sas File Reference

This macro records SAS session and preserves the ability to restart QRP at last completed checkpoint. More...

Detailed Description

This macro records SAS session and preserves the ability to restart QRP at last completed checkpoint.

  • If a previous error has occured (&SYSCC. >4):
    • Abort.
    • Redirect back to main log and call log checker.
  • If a previous error has not occured and restart functionality is allowed (WORKTEMPINWORK is not Y):
    • Copy current dplocal and msoc datasets to dptemp and msoctemp.
    • At restart, datasets in dptemp and msoctemp will replace dplocal/msoc counterparts.
    • Delete prior environment and save current SAS environment.
    • Write to dplocal.&runid._checkpoints number of checkpoints completed and timestamp.
Program inputs
None.
Program outputs
  • dplocal.&RUNID._checkpoints (Dataset with the number of checkpoints completed with timestamp.)

Usage

%ms_checkpoint(MACROCALLED=ms_scenarioloop);
Parameters
[in]MACROCALLEDMacro that contains checkpoint.
[in]GROUPNUMWhen provided, corresponds to the cohort group number being processed.
[in]RESTARTNOTALLOWEDWhen provided, corresponds to whether RESTARTQRP functionality is executed based on location of worktemp directories (WORKTEMPINWORK = Y/N).

SAS Macros Dependencies

Author
Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)