<?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: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985290#M43757</link>
    <description>For some reason when I did uncomment by doing Ctrl, Shift, and /, the * was still left in front of the where statement. I did go back and rewatch the video regarding special where statements multiple times. Thank you for the step by step explanation.</description>
    <pubDate>Tue, 24 Mar 2026 18:41:39 GMT</pubDate>
    <dc:creator>ivarenho</dc:creator>
    <dc:date>2026-03-24T18:41:39Z</dc:date>
    <item>
      <title>SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985274#M43753</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm taking the Programming 1 course and I believe there's a syntax issue with my code because I believe I'm only supposed to be getting results in the table that are missing the min pressure value. I've included images but I'm not sure what the syntax issue is.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-24 123045.png" style="width: 663px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113799i74496F2BAAB1263F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-03-24 123045.png" alt="Screenshot 2026-03-24 123045.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-24 123121.png" style="width: 627px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113800iBB038937722CA174/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-03-24 123121.png" alt="Screenshot 2026-03-24 123121.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 16:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985274#M43753</guid>
      <dc:creator>ivarenho</dc:creator>
      <dc:date>2026-03-24T16:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985279#M43755</link>
      <description>&lt;P&gt;The WHERE clause is still commented out. Try the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=pg1.storm_summary;
where minpressure is missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Mar 2026 17:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985279#M43755</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2026-03-24T17:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985284#M43756</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; My suggestion is that you go back and review the section on comments in the lectures. In your screen shot, note how the WHERE statement is green and the RUN statement is also green. That means that BOTH of those statements are essentially comments. So that means your WHERE is not working because it is being treated as a comment. The code for that activity originally looks like THIS:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;***********************************************************;
*  Activity 3.02                                          *;
*    1) Uncomment each WHERE statement one at a time and  *;
*       run the step to observe the rows that are         *;
*       included in the results.                          *;
*    2) Comment all previous WHERE statements. Add a new  *;
*       WHERE statement to print storms that begin with   *;
*       Z. How many storms are included in the results?   *;
***********************************************************;

proc print data=pg1.storm_summary(obs=50);
	*where MinPressure is missing; /*same as MinPressure = .*/
	*where Type is not missing; /*same as Type ne " "*/
	*where MaxWindMPH between 150 and 155;
	*where Basin like "_I";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note that in a regular SAS Editor, like SAS Studio, the 4 WHERE statements should be showing as green, which indicates that each WHERE statement is a comment. So, when you "uncomment" and the code as instructed, you should be running code 4 different times showing only one active (not green) WHERE statement each time. So, this is how your code would look each time -- basically, for each run, you would delete just 1 asterisk at the beginning of the WHERE and that should turn the comment into a regular code color (as opposed to a comment color) -- then you submit the code with only 1 WHERE statement active, review the results. Then go back to the code and re-comment the WHERE you just ran and then uncomment the next WHERE and run the code again. You do this 4 times, with a review of the output each time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p103a02_example.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113801iCA4C12646BC966E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="p103a02_example.jpg" alt="p103a02_example.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then at the very end of submitting each WHERE statement and reviewing the output, you have to do one final WHERE.&amp;nbsp;You can either delete the 4 original WHERE statements or leave them as comments in the code when you run your final activity code. The solution to the activity shows only the final WHERE that you need to write:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="find_Z.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113803i84E978E50EB3D0F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_Z.jpg" alt="find_Z.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies the activity.&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 18:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985284#M43756</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2026-03-24T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985290#M43757</link>
      <description>For some reason when I did uncomment by doing Ctrl, Shift, and /, the * was still left in front of the where statement. I did go back and rewatch the video regarding special where statements multiple times. Thank you for the step by step explanation.</description>
      <pubDate>Tue, 24 Mar 2026 18:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985290#M43757</guid>
      <dc:creator>ivarenho</dc:creator>
      <dc:date>2026-03-24T18:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985293#M43758</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/480946"&gt;@ivarenho&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;For some reason when I did uncomment by doing Ctrl, Shift, and /, the * was still left in front of the where statement. I did go back and rewatch the video regarding special where statements multiple times. Thank you for the step by step explanation.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you tried to use the tool built into the editor to modify the code for you.&lt;/P&gt;
&lt;P&gt;In that case you really need to LOOK at the results and make sure the editor did not do something stupid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember that SAS/Studio is NOT really part the actual SAS (or VIYA) langauge.&amp;nbsp; It is an additional product that SAS produced to help you edit and submit code.&amp;nbsp; So they TRY to make it do the right thing, but in the end SAS itself will decide what the code you submitted will do.&amp;nbsp; Not SAS/Studio or the color coding logic that they build into it.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 19:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985293#M43758</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-03-24T19:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985296#M43759</link>
      <description>Hi: I have worked in enough different editors, that I don't ever use the keyboard shortcuts. I have learned over time to manually edit the code and if the editor does have color coding, then I pay attention to the colors changing as I edit. It is always a good idea to make sure that the statements that are going to run are not accidentally being turned into comments -- one of the things that is revealed by using a SAS editor ; or that you don't have too many or too few quotes -- which is another thing that can cause you issues when you run your code.&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 24 Mar 2026 19:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985296#M43759</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2026-03-24T19:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985298#M43760</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/480946"&gt;@ivarenho&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;For some reason when I did uncomment by doing Ctrl, Shift, and /, the * was still left in front of the where statement. I did go back and rewatch the video regarding special where statements multiple times. Thank you for the step by step explanation.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Also note that SAS has THREE different types of comments.&amp;nbsp; And it looks like that keyboard shortcut in SAS/Studio (it is command-/ on my Mac when using the SAS On Demand for Academics version of SAS/studio) only knows about ONE of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are the normal SAS statement comments that the example code is using to comment out the WHERE statements.&amp;nbsp; Those start with an * and end with a semicolon (just like other SAS statements end).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then there are the macro language statement comments.&amp;nbsp; Those start with %* and end with a semicolon (just like other macro language statements).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And finally there are block comments. Those start with /* and end with */.&amp;nbsp; Those are the type of comments that the SAS/Studio keyboard short cut knows how to add or remove.&amp;nbsp; But all it really tries to do is either add or remove block command around each line individually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this can cause trouble for lines that already had blocks on them that did not take up the whole line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like the example lines in that program.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=pg1.storm_summary(obs=50);
  *where MinPressure is missing; /*same as MinPressure = .*/
  *where Type is not missing; /*same as Type ne " "*/
  *where MaxWindMPH between 150 and 155;
  *where Basin like "_I";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I using command-/ on that program it becomes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* proc print data=pg1.storm_summary(obs=50); */
/*   *where MinPressure is missing; /*same as MinPressure = . */
/*   *where Type is not missing; /*same as Type ne " " */
/*   *where MaxWindMPH between 150 and 155; */
/*   *where Basin like "_I"; */
/* run; */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which is kind of good.&amp;nbsp; At least it did not try to NEST the new block comment around the existing block comment. SAS does NOT support nesting block comments.&amp;nbsp; So a line like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*   *where MinPressure is missing; /*same as MinPressure = . */ */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Would have a block comment for most of the line and then the start of a statement comment that starts with / and continues until the next semicolon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;But the trouble comes when I try to use command-/ a second time to remove the comments from the lines.&amp;nbsp;&lt;/FONT&gt; This is the result.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=pg1.storm_summary(obs=50);
  *where MinPressure is missing; /*same as MinPressure = .
  *where Type is not missing; /*same as Type ne " "
  *where MaxWindMPH between 150 and 155;
  *where Basin like "_I";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So now the second line has the original statement comment with the text of the WHERE statement in it.&amp;nbsp; But then the block comment at the end of the line is no longer closed. And in fact the one on the third line is also no longer closed.&amp;nbsp; So everything from /*same onwards is part of the comment.&amp;nbsp; Including the RUN: statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only reason that the PROC PRINT actually ran is that SAS/Studio submits a special string after the code you asked it to run to try and match any unbalanced things like quotes or comments that might be in the code you submitted.&amp;nbsp; If you turn on the option in the preferences to have it show the code it inserts you can see what happened. (Here I substituted SASHELP.CLASS since I don't have your class dataset.)&lt;/P&gt;
&lt;PRE&gt; 73         proc print data=sashelp.class(obs=50);
 74           *where MinPressure is missing; /*same as MinPressure = .
 75           *where Type is not missing; /*same as Type ne " "
 76           *where MaxWindMPH between 150 and 155;
 77           *where Basin like "_I";
 78         run;
 79         
 80         OPTIONS NOSYNTAXCHECK;
 81         ODS HTML CLOSE;
 82         &amp;amp;GRAPHTERM; ;*';*";*/;RUN;
 
 NOTE: There were 19 observations read from the data set SASHELP.CLASS.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.03 seconds
       cpu time            0.04 seconds&lt;/PRE&gt;
&lt;P&gt;So you can see that the */ at the end of the extra code that SAS/Studio added signals the end of the block comment and the ;RUN; causes SAS to add an empty statement and a RUN statement so that the PROC PRINT executes.&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>Tue, 24 Mar 2026 19:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985298#M43760</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-03-24T19:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Programming 1: Essentials Activity  p103a02.sas Not understanding Table results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985299#M43761</link>
      <description>&lt;P&gt;You can modify the code to just use statement comments and avoid having issues with the comment/uncomment feature of the editor.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=pg1.storm_summary(obs=50);
	*where MinPressure is missing; *same as MinPressure = .;
	*where Type is not missing; *same as Type ne " ";
	*where MaxWindMPH between 150 and 155;
	*where Basin like "_I";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that that first comment is a little off.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*where MinPressure is missing; 
*same as missing(MinPressure);
*same as MinPressure &amp;lt;= .Z;
*And when no special missing values are present then same as MinPressure=.;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 20:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Activity-p103a02-sas-Not/m-p/985299#M43761</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-03-24T20:10:44Z</dc:date>
    </item>
  </channel>
</rss>

