<?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: How to make Proc Transpose scan all the rows-So that it does not say no variable found in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271503#M7541</link>
    <description>&lt;P&gt;Thats not how proc transpose works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post a reproducible example.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2016 18:39:30 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-05-18T18:39:30Z</dc:date>
    <item>
      <title>How to make Proc Transpose scan all the rows-So that it does not say no variable found</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271501#M7540</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I am trying to transpose a simple yet large dataset where for all the VAR- columns only last few ROWS are filled with the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e. Ex. my dataset has 10 variables and 500 rows. Out of 10 variables few I want to transpose which is ok, but for all such VAR my data starts from say row number 400.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my doubt is that the transpose procedure &lt;STRONG&gt;is scanning first few rows &lt;/STRONG&gt;for&lt;STRONG&gt; the data&lt;/STRONG&gt; but it does not find anything and hence does not transpose them.&lt;/P&gt;
&lt;P&gt;And shows this in log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: No variables to transpose.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any suggestions on how to override this default behaviour. And make sas scan all rows to search for available data just as &lt;STRONG&gt;sacntext in&amp;nbsp;&lt;/STRONG&gt;porc import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Harshad M.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 18:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271501#M7540</guid>
      <dc:creator>HarshadMadhamshettiwar</dc:creator>
      <dc:date>2016-05-18T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Proc Transpose scan all the rows-So that it does not say no variable found</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271503#M7541</link>
      <description>&lt;P&gt;Thats not how proc transpose works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post a reproducible example.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 18:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271503#M7541</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-18T18:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Proc Transpose scan all the rows-So that it does not say no variable found</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271516#M7542</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@HarshadMadhamshettiwar wrote:&lt;BR /&gt;
&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I am trying to transpose a simple yet large dataset where for all the VAR- columns only last few ROWS are filled with the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e. Ex. my dataset has 10 variables and 500 rows. Out of 10 variables few I want to transpose which is ok, but for all such VAR my data starts from say row number 400.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your data set has records you do not want you can use dataset options on the input dataset to restrict processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc transpose data=mydata (firstobs=400) ...&lt;/P&gt;
&lt;P&gt;Says to use the data set starting with observation number 400.&lt;/P&gt;
&lt;P&gt;You could also specify other criteria using the WHERE= option to select or exclude records based on values of variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 19:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271516#M7542</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-18T19:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Proc Transpose scan all the rows-So that it does not say no variable found</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271927#M7567</link>
      <description>&lt;P&gt;As a quick way round. I created a dummy row at the top and read the data first in wide format.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Now all my variable are read in the desired format.&lt;/P&gt;
&lt;P&gt;Just before transposing I am deleting _n_=1 and then you are good to go and have long dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that was the problem with how the data is being read and not the transpose, as it displayed according to its innate &amp;amp; correct behaviour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Harshad M.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 09:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-Proc-Transpose-scan-all-the-rows-So-that-it-does-not/m-p/271927#M7567</guid>
      <dc:creator>HarshadMadhamshettiwar</dc:creator>
      <dc:date>2016-05-20T09:14:04Z</dc:date>
    </item>
  </channel>
</rss>

