<?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: Data not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887157#M350524</link>
    <description>age-adjusted data is the variable in the table when I ran the proc contents&lt;BR /&gt;&lt;BR /&gt;Full error&lt;BR /&gt;&lt;BR /&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 proc sgplot data=cardata;&lt;BR /&gt;70 scatter x=Year y=Age_Adjusted_Rate;&lt;BR /&gt;ERROR: Variable AGE_ADJUSTED_RATE not found.&lt;BR /&gt;71 series x=Year y=Age_Adjusted_Rate;&lt;BR /&gt;ERROR: Variable AGE_ADJUSTED_RATE not found.&lt;BR /&gt;72 run;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SGPLOT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 484.15k&lt;BR /&gt;OS Memory 23720.00k&lt;BR /&gt;Timestamp 07/31/2023 05:54:32 PM&lt;BR /&gt;Step Count 42 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 107&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;BR /&gt;73&lt;BR /&gt;74&lt;BR /&gt;75 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;85&lt;BR /&gt;</description>
    <pubDate>Mon, 31 Jul 2023 17:56:07 GMT</pubDate>
    <dc:creator>Silver77</dc:creator>
    <dc:date>2023-07-31T17:56:07Z</dc:date>
    <item>
      <title>Data not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887147#M350522</link>
      <description>&lt;P&gt;This is for a class with a set of data provided&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run this and the data works out just fine&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename refile'/home/u63360582/sas_datasets/cardata.csv';&lt;BR /&gt;proc import datafile=refile &lt;BR /&gt;DBMS=CSV &lt;BR /&gt;out=cardata &lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;The professor then asks to run &lt;BR /&gt;&lt;SPAN&gt;/*&lt;/SPAN&gt;&lt;SPAN&gt;Make&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;scatter&lt;/SPAN&gt;&lt;SPAN&gt;plot&lt;/SPAN&gt;&lt;SPAN&gt;of&lt;/SPAN&gt;&lt;SPAN&gt;rate&lt;/SPAN&gt;&lt;SPAN&gt;by&lt;/SPAN&gt;&lt;SPAN&gt;year&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt;connect&lt;/SPAN&gt;&lt;SPAN&gt;the&lt;/SPAN&gt;&lt;SPAN&gt;points&lt;/SPAN&gt;&lt;SPAN&gt;*/&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;proc &lt;/SPAN&gt;&lt;SPAN&gt;sgplot &lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;cardata&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;scatter &lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Year &lt;/SPAN&gt;&lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Age_Adjusted_Rate&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;series &lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Year &lt;/SPAN&gt;&lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Age_Adjusted_Rate&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;it keeps saying that Age adjusted rate can't be found &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 17:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887147#M350522</guid>
      <dc:creator>Silver77</dc:creator>
      <dc:date>2023-07-31T17:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887148#M350523</link>
      <description>&lt;P&gt;From now on, when there is an error in the log, please show us the ENTIRE log for this step (PROC or DATA step), not just the error messages. Do not paraphrase the error message. Do not show us partial or edited logs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;it keeps saying that Age adjusted rate can't be found&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably the variable named&amp;nbsp;Age_Adjusted_Rate is not in the data set named CARDATA. Perhaps you have spelled it wrong, or you have the wrong name, or it just simply isn't there for other reasons. You can run PROC CONTENTS on data set CARDATA and see what the actual variable names really are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 17:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887148#M350523</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-31T17:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887157#M350524</link>
      <description>age-adjusted data is the variable in the table when I ran the proc contents&lt;BR /&gt;&lt;BR /&gt;Full error&lt;BR /&gt;&lt;BR /&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 proc sgplot data=cardata;&lt;BR /&gt;70 scatter x=Year y=Age_Adjusted_Rate;&lt;BR /&gt;ERROR: Variable AGE_ADJUSTED_RATE not found.&lt;BR /&gt;71 series x=Year y=Age_Adjusted_Rate;&lt;BR /&gt;ERROR: Variable AGE_ADJUSTED_RATE not found.&lt;BR /&gt;72 run;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SGPLOT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 484.15k&lt;BR /&gt;OS Memory 23720.00k&lt;BR /&gt;Timestamp 07/31/2023 05:54:32 PM&lt;BR /&gt;Step Count 42 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 107&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;BR /&gt;73&lt;BR /&gt;74&lt;BR /&gt;75 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;85&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jul 2023 17:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887157#M350524</guid>
      <dc:creator>Silver77</dc:creator>
      <dc:date>2023-07-31T17:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887159#M350525</link>
      <description>&lt;P&gt;Show us a screen capture of the PROC CONTENTS output. Use the "Insert Photos" icon to include your screen capture in your reply. Do not attach files.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 19:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887159#M350525</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-31T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887173#M350528</link>
      <description>&lt;P&gt;So the variable either is not in that dataset.&amp;nbsp; Or perhaps you have used the wrong name.&lt;/P&gt;
&lt;P&gt;Age_Adjusted_Rate is a different variable than 'Age adjusted rate'n or 'age-adjusted data'n.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you have accidentally set the VALIDVARNAME option to ANY?&lt;/P&gt;
&lt;P&gt;Try changing it to V7 before running the PROC IMPORT.&amp;nbsp; That way PROC IMPORT should make a variable named&amp;nbsp;Age_Adjusted_Rate from a column in the CSV file that has&amp;nbsp;Age Adjusted Rate as the column header instead of making a variable name that has spaces in it so that it requires using name literals in the SAS code.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 19:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-not-found/m-p/887173#M350528</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-31T19:14:33Z</dc:date>
    </item>
  </channel>
</rss>

