<?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: Need help for setting Data in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160735#M2982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please tell me which If statement i have to use for separating company name from Variable name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2014 07:13:33 GMT</pubDate>
    <dc:creator>Jahanzaib</dc:creator>
    <dc:date>2014-12-23T07:13:33Z</dc:date>
    <item>
      <title>Need help for setting Data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160733#M2980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file Brazil contain data of Brazil, I have data of more than 30 countries in separate files. I want to apply Difference in Difference technique on this data. First I think I have to combine all these files. I have downloaded all this data from Data stream. Now I want to go by this way&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;(Brazil file attached)In Column “C” name &lt;STRONG&gt;EMBRAER-AERONAUTICA - RETURN ON ASSETS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;goes under ROA, in the same way Column “V” name &lt;STRONG style="color: black;"&gt;FORJAS TAURUS - RETURN ON ASSETS &lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;goes under ROA.&amp;nbsp; Column “AO” is&amp;nbsp; &lt;STRONG&gt;VANGUARDA AGRO - RETURN ON ASSETS &lt;/STRONG&gt; it also go under ROA as it is Return on Assets but first name of all these columns contain company name first 4 alphabets are enough to be placed in the column of Firm as giving in the sample file. &lt;BR /&gt; In the same way other columns goes by following way. Column which contain word &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- TOTAL DEBT goes under TDT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;-CURRENT ASSETS – TOTAL goes under CA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;-CURRENT LIABILITIES-TOTAL goes under CL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- TOTAL ASSETS goes under TA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- TOTAL CAPITAL goes under TC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;-COMMON SHAREHOLDERS' EQUITY goes under CSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- LONG TERM DEBT goes under LTDT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;-TOTAL DEBT % COMMON EQUITY goes under TD/EQ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;-TOTAL DEBT % TOTAL CAPITAL/STD goes under TD/TC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- TOTAL DEBT % TOTAL ASSETS goes under TD/TA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- EARNINGS BEF INTEREST &amp;amp; TAXES goes under EBIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- OPERATING INCOME goes under OPIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- DIVIDENDS PER SHARE goes under DPS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;-- TOTAL SHAREHOLDERS EQUITY goes under SHE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- MRKT VALUE TO BOOK goes under M/B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- MARKET VALUE goes under MV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;- EARNINGS PER SHR goes under EPS&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 05:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160733#M2980</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2014-12-23T05:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for setting Data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160734#M2981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should transpose your data before you bring it in to SAS, there's often times issues in importing excel worksheets that are more than 256 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, It will make it easier to transform the data to your desired format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel you can copy&amp;gt;Paste Special&amp;gt;Transpose to achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The you can use IF statements to rename the variables and separate out company names from variable names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once that's done you can re-transpose using Proc Transpose to get your final dataset. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 06:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160734#M2981</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-23T06:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for setting Data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160735#M2982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please tell me which If statement i have to use for separating company name from Variable name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 07:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160735#M2982</guid>
      <dc:creator>Jahanzaib</dc:creator>
      <dc:date>2014-12-23T07:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for setting Data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160736#M2983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the scan function as it appears the company name is separated from the variable by using a hyphen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;company_name=scan(name, 1, "-");&lt;/P&gt;&lt;P&gt;variable_name=scan(name, 2, "-");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the reference to the Scan function in SAS&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 17:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-help-for-setting-Data/m-p/160736#M2983</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-23T17:44:17Z</dc:date>
    </item>
  </channel>
</rss>

