<?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: Is there a way to have a row zero? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294790#M61534</link>
    <description>&lt;P&gt;To store important information about the table within the table itself, look at &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201974.htm" target="_blank"&gt;column&lt;/A&gt; and &lt;A href="http://support.sas.com/documentation/cdl/en/ledsoptsref/68025/HTML/default/viewer.htm#p1njbys6vjpehjn1q0p00h0tnjym.htm" target="_blank"&gt;dataset&lt;/A&gt; labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 13:06:06 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-08-29T13:06:06Z</dc:date>
    <item>
      <title>Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294786#M61533</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to have a row zero, that will not be counted in an analyis, but would contain, important information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 12:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294786#M61533</guid>
      <dc:creator>drichmo1</dc:creator>
      <dc:date>2016-08-29T12:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294790#M61534</link>
      <description>&lt;P&gt;To store important information about the table within the table itself, look at &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201974.htm" target="_blank"&gt;column&lt;/A&gt; and &lt;A href="http://support.sas.com/documentation/cdl/en/ledsoptsref/68025/HTML/default/viewer.htm#p1njbys6vjpehjn1q0p00h0tnjym.htm" target="_blank"&gt;dataset&lt;/A&gt; labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294790#M61534</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-29T13:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294797#M61535</link>
      <description>&lt;P&gt;Well, the information I am storing tells the total amount of row entries divided by 3 &amp;nbsp;for each row, in order to find a solution for the total amount of moves needed for a puzzel. In this case it will not be a label, however it will indicate how far you are from the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294797#M61535</guid>
      <dc:creator>drichmo1</dc:creator>
      <dc:date>2016-08-29T13:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294799#M61537</link>
      <description>&lt;P&gt;The number of observations in a dataset can either be read from sashelp.vtable (dictionary.tables in PROC SQL), or you can use the nobs= option in the set statement to create a data step variable that holds that value.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294799#M61537</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-29T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294829#M61542</link>
      <description>&lt;P&gt;Wouldn't that be a column? Please post sample input and desire output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294829#M61542</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-29T14:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294851#M61550</link>
      <description>&lt;P&gt;Here is my output. To rephrase my question: Is there a way to make an observation 0. I want obersevation 1 to be 0.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12893i6240C0B0BB51BB59/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-08-26 at 10.23.05 PM.png" title="Screen Shot 2016-08-26 at 10.23.05 PM.png" /&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294851#M61550</guid>
      <dc:creator>drichmo1</dc:creator>
      <dc:date>2016-08-29T14:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294907#M61565</link>
      <description>&lt;P&gt;I would ask what you are doing that this is causin issues but the OBS number is not in the data set. So add a variable with the value you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data work.one4;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set work.one3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Obs = _n_ -1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 18:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/294907#M61565</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-29T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/295036#M61610</link>
      <description>&lt;PRE&gt;
Check WEIGHT statement.


if you are using proc freq , check ZEROS option of WEIGHT.


&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 03:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/295036#M61610</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-30T03:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a row zero?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/295054#M61620</link>
      <description>&lt;P&gt;There.is.no.observation.zero.in.a.SAS.dataset. Never.&lt;/P&gt;
&lt;P&gt;You only can do that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
retain counter;
if _n_ = 1
then do;
  counter = 1;
  output;
  counter = 0;
  * set values for your "0" observation;
  output;
  counter = 1;
end;
else do;
  counter + 1;
  output;
end;
run;

proc sort data=want;
by counter;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This creates a virtual obs 0, but be aware that any sort other than by counter will move that "zero obs" to another place.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 06:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-have-a-row-zero/m-p/295054#M61620</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-30T06:34:42Z</dc:date>
    </item>
  </channel>
</rss>

