<?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: Issues Loading Summary Statistics after Importing in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/614174#M18559</link>
    <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the following code below as well as the following 180 error as shown at the bottom of the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Import data */&lt;BR /&gt;PROC IMPORT OUT=myData DATAFILE = "/folders/myshortcuts/MyFolders/MIS445_FRED-real_GDP.xlsx" dbms = xlsx replace;&lt;BR /&gt;class observation_date;&lt;BR /&gt;var GDP;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOG Below:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 /* Import data */&lt;BR /&gt;74 PROC IMPORT OUT=myData DATAFILE = "/folders/myshortcuts/MyFolders/MIS445_FRED-real_GDP.xlsx" dbms = xlsx replace;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;75 class observation_date;&lt;BR /&gt;_____&lt;BR /&gt;180&lt;BR /&gt;76 var GDP;&lt;BR /&gt;___&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;77 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: Variable Name Change. FRED Graph Observations -&amp;gt; FRED_Graph_Observations&lt;BR /&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;BR /&gt;options MSGLEVEL=I.&lt;BR /&gt;NOTE: The import data set has 295 observations and 2 variables.&lt;BR /&gt;NOTE: WORK.MYDATA data set was successfully created.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;BR /&gt;&lt;BR /&gt;78&lt;BR /&gt;79 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;91&lt;/P&gt;</description>
    <pubDate>Sat, 28 Dec 2019 01:04:58 GMT</pubDate>
    <dc:creator>TDaimee</dc:creator>
    <dc:date>2019-12-28T01:04:58Z</dc:date>
    <item>
      <title>Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613631#M18457</link>
      <description>&lt;P&gt;To whom it may concern:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new student to SAS, taking my first SAS class.&amp;nbsp; I had a simple assignment to import an excel file into my library and run some summary statistics.&amp;nbsp; However, when I import my file and run summary statistics, the attached error is illustrated.&amp;nbsp; When I code it, then the only statistics which is shown is the number of observations as opposed to mean, standard deviation, etc.&amp;nbsp; My theory is that the dataset which is only two columns (year and GDP) is taking the numerical data and identifying this as a character as to why I am not able to run data summary statistics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 21:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613631#M18457</guid>
      <dc:creator>TDaimee</dc:creator>
      <dc:date>2019-12-23T21:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613635#M18458</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304596"&gt;@TDaimee&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;To whom it may concern:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a new student to SAS, taking my first SAS class.&amp;nbsp; I had a simple assignment to import an excel file into my library and run some summary statistics.&amp;nbsp; However, when I import my file and run summary statistics, the attached error is illustrated.&amp;nbsp; When I code it, then the only statistics which is shown is the number of observations as opposed to mean, standard deviation, etc.&amp;nbsp; My theory is that the dataset which is only two columns (year and GDP) is taking the numerical data and identifying this as a character as to why I am not able to run data summary statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise, thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Run Proc Contents on the data set which is one way of identifying the variable types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents data=youdatasetnamegoeshere;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the table shows type CHAR then you likely have an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show the CODE used to read the data? Also if you could share the source file we may have specific suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW any attachment you attempted didn't make it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 21:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613635#M18458</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-23T21:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613640#M18460</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the following two codes is what I used to import the data and then run the data statistics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Import data */&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT=myData&lt;/P&gt;&lt;P&gt;DATAFILE = "Your_File_Path/Week_8_Assignment_1.xlsx" dbms = xlsx replace;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running statistics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Get descriptive statistics */&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=myData;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 22:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613640#M18460</guid>
      <dc:creator>TDaimee</dc:creator>
      <dc:date>2019-12-23T22:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613641#M18461</link>
      <description>&lt;P&gt;Give proc summary/means more directives:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=myData;
class year;
var gdp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 22:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613641#M18461</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-23T22:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613642#M18462</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;My theory is that the dataset which is only two columns (year and GDP) is taking the numerical data and identifying this as a character as to why I am not able to run data summary statistics.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;When reading a spreadsheet SAS must choose (guess) at a consistent type to use for the variable that contains all of the spreadsheet cells in a single column.&amp;nbsp; If the column contains a mix of numeric and character values then it will be defined as character (you can convert a number into a character representation, but not the reverse).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Most likely you need to clean you your spreadsheet first.&amp;nbsp; It might be as simple as removing any extra header rows so that there is just one header row with the variable names.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 22:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/613642#M18462</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-23T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/614174#M18559</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the following code below as well as the following 180 error as shown at the bottom of the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Import data */&lt;BR /&gt;PROC IMPORT OUT=myData DATAFILE = "/folders/myshortcuts/MyFolders/MIS445_FRED-real_GDP.xlsx" dbms = xlsx replace;&lt;BR /&gt;class observation_date;&lt;BR /&gt;var GDP;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOG Below:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 /* Import data */&lt;BR /&gt;74 PROC IMPORT OUT=myData DATAFILE = "/folders/myshortcuts/MyFolders/MIS445_FRED-real_GDP.xlsx" dbms = xlsx replace;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;75 class observation_date;&lt;BR /&gt;_____&lt;BR /&gt;180&lt;BR /&gt;76 var GDP;&lt;BR /&gt;___&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;77 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: Variable Name Change. FRED Graph Observations -&amp;gt; FRED_Graph_Observations&lt;BR /&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;BR /&gt;options MSGLEVEL=I.&lt;BR /&gt;NOTE: The import data set has 295 observations and 2 variables.&lt;BR /&gt;NOTE: WORK.MYDATA data set was successfully created.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;BR /&gt;&lt;BR /&gt;78&lt;BR /&gt;79 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;91&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 01:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/614174#M18559</guid>
      <dc:creator>TDaimee</dc:creator>
      <dc:date>2019-12-28T01:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/614191#M18561</link>
      <description>&lt;P&gt;PROC IMPORT does to have any statements named CLASS or VAR.&amp;nbsp; That is what the error message is telling you.&lt;/P&gt;
&lt;P&gt;What PROC were you trying to run?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 05:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/614191#M18561</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-28T05:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Loading Summary Statistics after Importing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/614199#M18562</link>
      <description>&lt;P&gt;You need to exercise more care when copying code from here. I used PROC MEANS.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 08:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issues-Loading-Summary-Statistics-after-Importing/m-p/614199#M18562</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-28T08:22:57Z</dc:date>
    </item>
  </channel>
</rss>

