<?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: Validation of dataset creation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Validation-of-dataset-creation/m-p/118055#M24378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want the creation job to abort when it fails to create a dataset with more than one observation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options errorabend;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if nobs &amp;lt; 2 then abort return 5 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set dsname nobs=nobs;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 23:55:16 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-05-16T23:55:16Z</dc:date>
    <item>
      <title>Validation of dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Validation-of-dataset-creation/m-p/118054#M24377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to verify that a data set(s) has been createdwith more than 1 obs. We're running several jobs in sequence using an non-SAS scheduler and need to have a means to output to the UNIX command line the results of an in-job test that validates the creation of 1 or more datasets. Has anyone come across this? I've tried using 'syserr' withlimited success since the creation of a dataset with 0 obs seems to be considered a success. Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 22:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Validation-of-dataset-creation/m-p/118054#M24377</guid>
      <dc:creator>NathanJohnson</dc:creator>
      <dc:date>2012-05-16T22:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Validation-of-dataset-creation/m-p/118055#M24378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want the creation job to abort when it fails to create a dataset with more than one observation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options errorabend;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if nobs &amp;lt; 2 then abort return 5 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set dsname nobs=nobs;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 23:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Validation-of-dataset-creation/m-p/118055#M24378</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-05-16T23:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Validation-of-dataset-creation/m-p/118056#M24379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work. I don't need to abort, but I can still update a macro variable with a value to determine if each of my datasets were validly created and then report to the command line (e.g. 'X echo Success;') for the scheduling software to know the results. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Validation-of-dataset-creation/m-p/118056#M24379</guid>
      <dc:creator>NathanJohnson</dc:creator>
      <dc:date>2012-05-17T16:33:07Z</dc:date>
    </item>
  </channel>
</rss>

