<?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: Reading excel file into SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file-into-SAS/m-p/690777#M210171</link>
    <description>&lt;P&gt;You have not created a variable named TYPE in data set SwissBank, so when you run PROC CORR, SAS can't find it and writes an ERROR to the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you mean this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=SwissBank (rename=(a=length b=left c=right d=bottom e=top f=diag g=type)) cov;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Oct 2020 10:39:52 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-10-11T10:39:52Z</dc:date>
    <item>
      <title>Reading excel file into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file-into-SAS/m-p/690776#M210170</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried importing excel file into SAS which has no variables declared and then i had renamed it into the variables and when i tried performing the following command to :&lt;/P&gt;&lt;P&gt;1. Prepare the dataset for input for a Discriminant analysis via SAS.&amp;nbsp;&lt;BR /&gt;2. Generate the means and the variance-covariance matrix of the data for the genuine note(Genuine = 1 and Fake =2 indicator column in the dataset).&lt;/P&gt;&lt;P&gt;Dataset contains six variables measured on 100 genuine and 100 forged (counterfeit/fake).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile = '/home/u49442084/sasuser.v94/Swiss Bank data as excel-2.xlsx'&lt;BR /&gt;out = SwissBank&lt;BR /&gt;dbms = xlsx&lt;BR /&gt;replace;&lt;BR /&gt;GETNAMES=NO;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc print data=SwissBank (rename=(a=length b=left c=right d=bottom e=top f=diag g=type));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc corr data=SwissBank cov;&lt;BR /&gt;Where type="1";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when checking for genuine notes I got the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 proc corr data=SwissBank cov;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 Where type="1";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Variable type is not on file WORK.SWISSBANK.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 run;&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Oct 2020 10:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file-into-SAS/m-p/690776#M210170</guid>
      <dc:creator>lakshmishree</dc:creator>
      <dc:date>2020-10-11T10:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file-into-SAS/m-p/690777#M210171</link>
      <description>&lt;P&gt;You have not created a variable named TYPE in data set SwissBank, so when you run PROC CORR, SAS can't find it and writes an ERROR to the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you mean this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=SwissBank (rename=(a=length b=left c=right d=bottom e=top f=diag g=type)) cov;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Oct 2020 10:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file-into-SAS/m-p/690777#M210171</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-11T10:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file-into-SAS/m-p/690898#M210214</link>
      <description>&lt;P&gt;Still getting the same error, variable type here is a categorical&amp;nbsp; datatype and if i am renaming it as type$ it throws an error there too. So i just had to convert it into CSV file and there it worked well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 07:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-excel-file-into-SAS/m-p/690898#M210214</guid>
      <dc:creator>lakshmishree</dc:creator>
      <dc:date>2020-10-12T07:24:02Z</dc:date>
    </item>
  </channel>
</rss>

