<?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: What does it mean if SAS says variable type is not on file? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675669#M23644</link>
    <description>&lt;P&gt;It worked! Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 16:48:58 GMT</pubDate>
    <dc:creator>Kimberly_2020</dc:creator>
    <dc:date>2020-08-10T16:48:58Z</dc:date>
    <item>
      <title>What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675637#M23634</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;SAS keeps saying that the variable type is not on file....What does this mean? WHen I did a one way frequency table without the where statement it ran...But when I made this edit, it didn't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Code:
proc freq data=WORK.SYPHILIS;
	tables genderB genderC sex_o RACE age / plots=(freqplot cumfreqplot);
	where Type in ("genderB", "genderC", "sex_o", "race") and 18&amp;lt;=age&amp;lt;=50;
run;

Log: 

1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable _SASWSTEMP_ resolves to /home/u49152646/.sasstudio/.images/db1b9e49-6774-45a2-9899-069be7ad3673
 SYMBOLGEN:  Some characters in the above value which were subject to macro quoting have been unquoted for printing.
 SYMBOLGEN:  Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL GSFNAME=_GSFNAME;
 72         
 73         /*
 74          *
 75          * Task code generated by SAS Studio 3.8
 76          *
 77          * Generated on '8/10/20, 8:32 AM'
 78          * Generated by 'u49152646'
 79          * Generated on server 'ODAWS03-USW2.ODA.SAS.COM'
 80          * Generated on SAS platform 'Linux LIN X64 3.10.0-1062.9.1.el7.x86_64'
 81          * Generated on SAS version '9.04.01M6P11072018'
 82          * Generated on browser 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
 82       ! Chrome/84.0.4147.105 Safari/537.36'
 83          * Generated on web client
 83       ! 'https://odamid-usw2.oda.sas.com/SASStudio/main?locale=en_US&amp;amp;zone=GMT-07%253A00&amp;amp;ticket=ST-27624-sinmcsizLgE19kH9QBkl-cas'
 84          *
 85          */
 86         
 87         proc freq data=WORK.SYPHILIS;
 88         tables genderB genderC sex_o RACE age / plots=(freqplot cumfreqplot);
 89         where Type in ("genderB", "genderC", "sex_o", "race") and 18&amp;lt;=age&amp;lt;=50;
 ERROR: Variable Type is not on file WORK.SYPHILIS.&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Aug 2020 15:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675637#M23634</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675642#M23635</link>
      <description>Run a PROC CONTENTS on your data set and check the name AND label of your variables. &lt;BR /&gt;</description>
      <pubDate>Mon, 10 Aug 2020 15:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675642#M23635</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-10T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675647#M23636</link>
      <description>&lt;P&gt;And I already imported the CSV file into SAS&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675647#M23636</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T16:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675653#M23637</link>
      <description>&lt;P&gt;That worked but it gave me a frequency table for all ages and not age 18-50 like before. My instructions were to create a frequency table of current gender and sexual orientation for patients between the age of 18 - 50 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc freq data=WORK.SYPHILIS;
	proc contents data=work.syphilis;
	tables genderB genderC sex_o RACE age / plots=(freqplot cumfreqplot);
	where Type in ("genderB", "genderC", "sex_o", "RACE") and 18&amp;lt;=age&amp;lt;=50;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675653#M23637</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675655#M23638</link>
      <description>I'm guessing the error means SAS doesn't think you have a variable called TYPE in your syphilis data base. You can check this in your IMPORT code or via PROC CONTENTS. You'll want to check the label versus name as well, this is a common mistake to use the labels instead of names.</description>
      <pubDate>Mon, 10 Aug 2020 16:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675655#M23638</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-10T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675658#M23639</link>
      <description>It seems like you're confusing variable values and variable names. &lt;BR /&gt;&lt;BR /&gt;Is your variable called type with values of genderB, genderC or do you have variables called genderB, genderC?&lt;BR /&gt;&lt;BR /&gt;I guarantee that code is not correct or at least what you want or expect.</description>
      <pubDate>Mon, 10 Aug 2020 16:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675658#M23639</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-10T16:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675664#M23641</link>
      <description>&lt;P&gt;variables called genderB and genderC&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675664#M23641</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675665#M23642</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675665#M23642</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T16:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675668#M23643</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=WORK.SYPHILIS;
where18&amp;lt;=age&amp;lt;=50;
tables genderB genderC sex_o RACE age / plots=(freqplot cumfreqplot);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is likely what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your TYPE portion doesn't make sense since those are variable names. Not sure what you were expecting to happen within that portion of code but it doesn't do what you think it does &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675668#M23643</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-10T16:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675669#M23644</link>
      <description>&lt;P&gt;It worked! Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675669#M23644</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T16:48:58Z</dc:date>
    </item>
  </channel>
</rss>

