Download presentation
Presentation is loading. Please wait.
1
Checkpoint Restart Demo (Using Labels)
2
LIBNAME chkptlib "c:\temp\checkpoint_Step";
options cpucount=8; %macro sumstat(indsn=,invar=); data _null_; call sleep(1,2); run; proc means data=&indsn. median mean; var &invar.; %mend;
3
CHECKPOINT EXECUTE_ALWAYS;
data _null_; putlog '********************************'; putlog '***EXAMPLE for FALL 2017 Q&A****'; run; INIT: /* Create input data */ data a; do i=1 to ; x=i; y=x+1; z=y+1; output; end;
4
VARX: %sumstat(indsn=a, invar=x); VARY: %sumstat(indsn=a, invar=y); VARZ: %sumstat(indsn=a, invar=z); END:
5
rem run job in checkpoint mode
"C:\Program Files\SASHome2\SASFoundation\9.4\sas.exe" -nologo ^ -CONFIG "C:\ProgramFiles\SASHome2\SASFoundation\9.4\nls\en\sasv9.cfg" ^ -sysin 'C:\temp\Checkpoint_label\Checkpoint_Label.sas' ^ -errorabend -errorcheck strict ^ -labelchkpt ^ -noworkinit -noworkterm -chkptclean
9
rem run job in restart mode
"C:\Program Files\SASHome2\SASFoundation\9.4\sas.exe" -nologo ^ -CONFIG "C:\Program Files\SASHome2\SASFoundation\9.4\nls\en\sasv9.cfg" ^ -sysin 'C:\temp\Checkpoint_Label\Checkpoint_Label.sas' ^ -errorabend -errorcheck strict ^ -labelrestart ^ -noworkinit -noworkterm -chkptclean
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.