<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding checkpoints and Restart from checkpoints in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-checkpoints-and-Restart-from-checkpoints/m-p/270946#M53887</link>
    <description>&lt;P&gt;There are options in SAS Batch programming to assign as part of command line that you can use to add checkpoints.&lt;/P&gt;&lt;P&gt;You need to run your programs in modes- Checkpoint mode and restart mode to help ease of operations.&lt;/P&gt;&lt;P&gt;Here are the options that you can use:&lt;/P&gt;&lt;P&gt;stepchkpt&lt;/P&gt;&lt;P&gt;steprestart&lt;/P&gt;&lt;P&gt;noworkinit&lt;/P&gt;&lt;P&gt;noworkterm&lt;/P&gt;&lt;P&gt;errorcheck&lt;/P&gt;&lt;P&gt;errorabend&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2016 12:02:39 GMT</pubDate>
    <dc:creator>sowmya</dc:creator>
    <dc:date>2016-05-17T12:02:39Z</dc:date>
    <item>
      <title>Adding checkpoints and Restart from checkpoints</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-checkpoints-and-Restart-from-checkpoints/m-p/180611#M34498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add checkpoints at each stage and a restart from checkpoint to the code below.&amp;nbsp; I will be running this code monthly and if it fails at any point, I will need to restart it at the point in which it failed, instead of rerunning the entire program again.&amp;nbsp; I would like to be notified as well if there is an error.&amp;nbsp; Would anyone be able to assist me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE work.mobpp1 AS&lt;BR /&gt;SELECT DISTINCT soc, feature_code, rate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datepart(effective_date)format=mmddyy10. AS effective_date,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datepart(sys_creation_date)format=mmddyy10. AS sys_creation_date, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datepart(expiration_date)format=mmddyy10. AS expiration_date, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;amp;sysdate"d as Extract_Date format= MONYY7.&lt;BR /&gt;FROM bmlrwork.pp_rc_rate&lt;BR /&gt;WHERE feature_code NOT IN ('PNETRM');&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE work.mobpp2 AS&lt;BR /&gt;SELECT DISTINCT soc, soc_description, product_type, service_provider&lt;BR /&gt;FROM bmlrwork.soc;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE work.mobpp3 AS&lt;BR /&gt;SELECT DISTINCT t1.soc, t1.feature_code, t1.rate, t1.effective_date, t1.sys_creation_date, t1.expiration_date, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2.soc_description, t2.product_type, t2.service_provider, t1.Extract_Date&lt;BR /&gt;FROM work.mobpp1 AS t1 &lt;BR /&gt;LEFT JOIN work.mobpp2 AS t2&lt;BR /&gt;ON t1.soc = t2.soc;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SORT data=work.mobpp3;&lt;BR /&gt;BY soc DESCENDING effective_date;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA work.mobpp4;&lt;BR /&gt;SET work.mobpp3;&lt;BR /&gt;BY soc DESCENDING effective_date;&lt;BR /&gt;IF first.soc THEN OUTPUT;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA RASHARE.GF_TEMP_MOBILITY_RC_JAN13 RASHARE.GF_TEMP_IPBB_RC_JAN13;&lt;BR /&gt;set work.mobpp4;&lt;BR /&gt;IF service_provider in ('ALL','MOBL')THEN OUTPUT RASHARE.GF_TEMP_MOBILITY_RC_JAN13;&lt;BR /&gt;ELSE OUTPUT RASHARE.GF_TEMP_IPBB_RC_JAN13;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 19:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-checkpoints-and-Restart-from-checkpoints/m-p/180611#M34498</guid>
      <dc:creator>Giuliano</dc:creator>
      <dc:date>2015-01-13T19:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding checkpoints and Restart from checkpoints</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-checkpoints-and-Restart-from-checkpoints/m-p/180612#M34499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One technique is to have a permanent SAS control/progress tracking member which you would update after each key processing point, and then convert your SAS program to execute as a macro with %IF / %THEN %DO; %* your code goes here; %END; (condition code-piece execution) within the macro.&amp;nbsp; And at the end, a successful completion would again update the SAS control/progress tracking member accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott Barry&lt;/P&gt;&lt;P&gt;SBBWorks, Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 19:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-checkpoints-and-Restart-from-checkpoints/m-p/180612#M34499</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2015-01-14T19:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding checkpoints and Restart from checkpoints</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-checkpoints-and-Restart-from-checkpoints/m-p/270946#M53887</link>
      <description>&lt;P&gt;There are options in SAS Batch programming to assign as part of command line that you can use to add checkpoints.&lt;/P&gt;&lt;P&gt;You need to run your programs in modes- Checkpoint mode and restart mode to help ease of operations.&lt;/P&gt;&lt;P&gt;Here are the options that you can use:&lt;/P&gt;&lt;P&gt;stepchkpt&lt;/P&gt;&lt;P&gt;steprestart&lt;/P&gt;&lt;P&gt;noworkinit&lt;/P&gt;&lt;P&gt;noworkterm&lt;/P&gt;&lt;P&gt;errorcheck&lt;/P&gt;&lt;P&gt;errorabend&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 12:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-checkpoints-and-Restart-from-checkpoints/m-p/270946#M53887</guid>
      <dc:creator>sowmya</dc:creator>
      <dc:date>2016-05-17T12:02:39Z</dc:date>
    </item>
  </channel>
</rss>

