<?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: coding issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777332#M247278</link>
    <description>Your code in the images doesn't match what's been posted. &lt;BR /&gt;&lt;BR /&gt;COMMON NAMES and COMMON_NAMES -&amp;gt; you're missing the underscore in your second reference to the variable. &lt;BR /&gt;You need to fix your errors in the order they appear, so start from the first error-you're showing the last error when I can see other errors above it.</description>
    <pubDate>Fri, 29 Oct 2021 15:57:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-10-29T15:57:06Z</dc:date>
    <item>
      <title>coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777147#M247210</link>
      <description>&lt;DIV class=""&gt;Hi I am having issue in solving below problem from coursera as i am entering the exact code that of solution by but its not returning any records please help; &amp;nbsp; Level 2 Practice: Subsetting by Multiple Conditions and Creating a Sorted SAS Table&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;The &lt;STRONG&gt;np_species &lt;/STRONG&gt;table includes one row for each species that is found in each national park. If necessary, &lt;A title="" href="http://dl.liveweb.sas.com/eldata/start_SAS_Studio.htm" target="_blank" rel="noopener nofollow"&gt;start SAS Studio&lt;/A&gt; before you begin.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reminder&lt;/STRONG&gt;: If you restarted your SAS session, you must run the&lt;STRONG&gt; libname.sas &lt;/STRONG&gt;program to access your course files.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Open a new program window and write a DATA step to read the &lt;STRONG&gt;pg1.np_species&lt;/STRONG&gt; table and create a new permanent table named &lt;STRONG&gt;out.fox &lt;/STRONG&gt;in the &lt;STRONG&gt;EPG1V2/output&lt;/STRONG&gt; (or &lt;STRONG&gt;EPG194/output&lt;/STRONG&gt;) folder.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Include only the rows where &lt;STRONG&gt;Category &lt;/STRONG&gt;is &lt;EM&gt;Mammal &lt;/EM&gt;and &lt;STRONG&gt;Common_Names &lt;/STRONG&gt;includes &lt;EM&gt;Fox&lt;/EM&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Exclude the &lt;STRONG&gt;Category&lt;/STRONG&gt;, &lt;STRONG&gt;Record_Status&lt;/STRONG&gt;, &lt;STRONG&gt;Occurrence&lt;/STRONG&gt;, and &lt;STRONG&gt;Nativeness &lt;/STRONG&gt;columns from the output data.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Submit the program.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Notice that &lt;EM&gt;Fox Squirrels&lt;/EM&gt; are included in the output table. Add a condition in the WHERE statement to exclude rows that include &lt;EM&gt;Squirrel&lt;/EM&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Submit the program and verify the results.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Sort the &lt;STRONG&gt;fox &lt;/STRONG&gt;table by &lt;STRONG&gt;Common_Names&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What is the value of &lt;STRONG&gt;Common_Names &lt;/STRONG&gt;in row one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data out.fox;&lt;BR /&gt;set pg1.np_species;&lt;BR /&gt;where Category="Mammal" and Common_Names like '%Fox%'&lt;BR /&gt;and Common_Names not like '%Squirrel%';&lt;BR /&gt;drop Category Record_Status Occurrence Nativeness;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=out.fox;&lt;BR /&gt;by Common_Names;&lt;BR /&gt;run;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Oct 2021 01:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777147#M247210</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T01:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777158#M247212</link>
      <description>&lt;P&gt;Show the log please.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 02:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777158#M247212</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T02:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777171#M247217</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Notice that&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Fox Squirrels&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;are included in the output table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Common_Names not like '%Squirrel%'&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;These two don't seem to be compatible.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 05:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777171#M247217</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-10-29T05:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777237#M247241</link>
      <description>&lt;P&gt;Post your log file, also try building up your where clause bit by bit and reviewing the output dataset each time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code looks good, at least when I tried it on a sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data got ;
	infile cards dlm=" " dsd;
	input 
		category :$20.
		common_names :$20.
	;
cards ;
fish 'Marlin'
fish 'Dorado' 
Mammal 'Squirrel'
Mammal 'Flying Fox'
Mammal 'Fox'
Mammal 'Red Squirrel'
Mammal 'Squirrel Fox' 
Mammal 'Fox Squirrels'
;
run ;

data want ;
	set got ;
	where 
		Category="Mammal" and 
		Common_Names like '%Fox%' and 
		Common_Names not like '%Squirrel%';
	put category= common_names= ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Oct 2021 11:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777237#M247241</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2021-10-29T11:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777281#M247253</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Coursera has a Discussion Forum area that is monitored by SAS instructors. The advice you've been given is good advice. If you only did a WHERE to search for the string Fox in the Common_Names column, you'd get some plants like Foxglove or Foxtail. So, adding a compound expression to filter to only get the Mammals, gets you closer to what is needed. However, if you look at an expression as used in this code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1635514518081.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65215i0C4C95487AE69E33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1635514518081.png" alt="Cynthia_sas_0-1635514518081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You see that there is still one row that we need to eliminate, so the solution to this (graded) practice requires another condition to eliminate the Fox Squirrel from the output.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1635514584947.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65216i0390E80DFF1D6D07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1635514584947.png" alt="Cynthia_sas_1-1635514584947.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So running this final compound WHERE should enable you to find the correct answer to the question. Then you need to look at the resulting table so you can answer the question. You just need to type the name of the animal in row one of the output table.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Since this is a graded practice on the Coursera platform, I am not going to post the answer here.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 13:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777281#M247253</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-29T13:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777290#M247257</link>
      <description>&lt;P&gt;Thank you all for valuable suggestions, But this is not working for me;&lt;/P&gt;&lt;P&gt;libname out "/home/u19696098/EPG1V2/data" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data out.fox;&lt;BR /&gt;set pg1.np_species;&lt;BR /&gt;where Category="Mammal" and Common_Names like '%Fox%'&lt;BR /&gt;and Common_Names not like '%Squirrel%';&lt;BR /&gt;drop Category Record_Status Occurrence Nativeness;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=out.fox;&lt;BR /&gt;by Common_Names;&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;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;69&lt;/DIV&gt;&lt;DIV class=""&gt;70 libname out "/home/u19696098/EPG1V2/data" ;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Libref OUT refers to the same physical library as PG1.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Libref OUT was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class=""&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class=""&gt;Physical Name: /home/u19696098/EPG1V2/data&lt;/DIV&gt;&lt;DIV class=""&gt;71&lt;/DIV&gt;&lt;DIV class=""&gt;72&lt;/DIV&gt;&lt;DIV class=""&gt;73&lt;/DIV&gt;&lt;DIV class=""&gt;74 data out.fox;&lt;/DIV&gt;&lt;DIV class=""&gt;75 set pg1.np_species;&lt;/DIV&gt;&lt;DIV class=""&gt;76 where Category="Mammal" and Common_Names like '%Fox%'&lt;/DIV&gt;&lt;DIV class=""&gt;77 and Common_Names not like '%Squirrel%';&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Variable Category is not on file PG1.NP_SPECIES.&lt;/DIV&gt;&lt;DIV class=""&gt;78 drop Category Record_Status Occurrence Nativeness;&lt;/DIV&gt;&lt;DIV class=""&gt;79 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: The variable Category in the DROP, KEEP, or RENAME list has never been referenced.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: The variable Record_Status in the DROP, KEEP, or RENAME list has never been referenced.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: The variable Occurrence in the DROP, KEEP, or RENAME list has never been referenced.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: The variable Nativeness in the DROP, KEEP, or RENAME list has never been referenced.&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Oct 2021 13:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777290#M247257</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777322#M247272</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I tried in different way and still it shows the error below, please let me know what mistake did i do here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_0-1635519495670.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65227i6CB9F784DA6763BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_0-1635519495670.png" alt="u19696098_0-1635519495670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_1-1635519716285.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65229iC02BE74D98361624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_1-1635519716285.png" alt="u19696098_1-1635519716285.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;please help me.....&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 15:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777322#M247272</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T15:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777325#M247275</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404696"&gt;@u19696098&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I tried in different way and still it shows the error below, please let me know what mistake did i do here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_0-1635519495670.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65227i6CB9F784DA6763BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_0-1635519495670.png" alt="u19696098_0-1635519495670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_1-1635519716285.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65229iC02BE74D98361624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_1-1635519716285.png" alt="u19696098_1-1635519716285.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;please help me.....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sounds like time to go back an make sure that you built the NP.Species data set correctly. Then that you did not modify it to remove the Common_names variable. Spelling counts. If you accidentally created a variable named "Comm&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/FONT&gt;n_names", for example, that might be one of the causes of the errors.&amp;nbsp; Proc Contents will list all the variables in a data set and basic properties.&lt;/P&gt;
&lt;P&gt;So try&lt;/P&gt;
&lt;PRE&gt;Proc Contents data=NP.Species;
run;&lt;/PRE&gt;
&lt;P&gt;and see what it tells you about your version of the data set.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 15:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777325#M247275</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-29T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777331#M247277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Common_Names is the correct variable name and Proc contents gives below, not sure why its saying everytime the variable Common_Names not found&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_0-1635521993189.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65230i7CA5A93E7BF01ABD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_0-1635521993189.png" alt="u19696098_0-1635521993189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 15:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777331#M247277</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777332#M247278</link>
      <description>Your code in the images doesn't match what's been posted. &lt;BR /&gt;&lt;BR /&gt;COMMON NAMES and COMMON_NAMES -&amp;gt; you're missing the underscore in your second reference to the variable. &lt;BR /&gt;You need to fix your errors in the order they appear, so start from the first error-you're showing the last error when I can see other errors above it.</description>
      <pubDate>Fri, 29 Oct 2021 15:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777332#M247278</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T15:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777338#M247280</link>
      <description>&lt;P&gt;Hi Everyone;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what is happening; if I run with the one of the varibale it gives the result;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_0-1635523163395.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65231iEE0EF97C367C8237/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_0-1635523163395.png" alt="u19696098_0-1635523163395.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_1-1635523184192.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65232iCE7422AA9EB6B360/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_1-1635523184192.png" alt="u19696098_1-1635523184192.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i run the same code for another variable Common Names; it does not work, please please help me....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_2-1635523290621.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65233iAE5FFCC2A01BC098/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_2-1635523290621.png" alt="u19696098_2-1635523290621.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_3-1635523307692.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65234i1690760903650B63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_3-1635523307692.png" alt="u19696098_3-1635523307692.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 16:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777338#M247280</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T16:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777339#M247281</link>
      <description>Please see above I have correctly entered Common_Names but look at the log, every time i get that even though that variable is under NP library and in species table</description>
      <pubDate>Fri, 29 Oct 2021 16:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777339#M247281</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T16:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777343#M247283</link>
      <description>Show your full log please to ensure your previous step was also run correctly. &lt;BR /&gt;IF common_names doesn't work in this step it shouldn't have worked in the previous step either.</description>
      <pubDate>Fri, 29 Oct 2021 16:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777343#M247283</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T16:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777347#M247287</link>
      <description>What i mean is Common_Names did not work at all, If I run the code eliminating this variable at least for one variable Category, it works.</description>
      <pubDate>Fri, 29 Oct 2021 16:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777347#M247287</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T16:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777353#M247291</link>
      <description>&lt;P&gt;What makes you think that the variable is common_names?&lt;BR /&gt;&lt;STRONG&gt;Could it be "Common Names'n instead? (EDIT: according to the proc contents output this is correct).&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Add the following to the top of your program and run it all again. This should fix your variable names, check it by running a proc contents and ensure your output matches Cynthia's post. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname = v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;As others have requested if none of these work, post the output of proc contents. That will provide allow us to provide the definitive answer. &lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;proc contents data=np.species;&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;run;&lt;/STRIKE&gt;&lt;BR /&gt;EDIT: Saw your proc contents output. Yeah, add that option to the top of your code. Your file was imported with spaces in the names. So if you set the option to validvarname=v7 the names will then be COMMON_NAMES not COMMON NAMES. That space does matter and does mean that your variables should be references as "COMMON NAMES"n or "Category"n - there are likely trailing spaces somewhere here messing things up.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Are you using On Demand for Academics or your own SAS installation?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 16:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777353#M247291</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T16:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777361#M247296</link>
      <description>&lt;P&gt;Hi Thanks so much, as code works now with options validvarname = v7; as i forget to include this however, with below codes the output is still showing the 'squirrel' which should not be there and my answer to the question of the beginning post still got wrong;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_0-1635526222806.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65236iA751FF61C267B9C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_0-1635526222806.png" alt="u19696098_0-1635526222806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_1-1635526239990.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65237i72619641ACE331BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_1-1635526239990.png" alt="u19696098_1-1635526239990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 16:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777361#M247296</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T16:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777362#M247297</link>
      <description>Squirrel and squirrel are not the same.</description>
      <pubDate>Fri, 29 Oct 2021 17:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777362#M247297</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T17:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777363#M247298</link>
      <description>The options statement should ideally go before your LIBNAME statement though.</description>
      <pubDate>Fri, 29 Oct 2021 17:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777363#M247298</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T17:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777367#M247299</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The issue is solved, running code below provided me the correct output. Thanks all for your valuable efforts, appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_0-1635527612956.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65238i2BFCD3C5655FC92A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_0-1635527612956.png" alt="u19696098_0-1635527612956.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="u19696098_1-1635527645835.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65239iA14A10A8A9638AE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="u19696098_1-1635527645835.png" alt="u19696098_1-1635527645835.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 17:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777367#M247299</guid>
      <dc:creator>u19696098</dc:creator>
      <dc:date>2021-10-29T17:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: coding issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777407#M247315</link>
      <description>&lt;P&gt;It's not common_names, it`s 'Common Names'n (name literal because of the blank).&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 20:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/coding-issue/m-p/777407#M247315</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-29T20:26:21Z</dc:date>
    </item>
  </channel>
</rss>

