<?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 beginner! Won't get any output for code; &amp;quot;No observations were selected from data table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591359#M169374</link>
    <description>&lt;P&gt;Welcome to the SAS Communities.&lt;/P&gt;
&lt;P&gt;Please post the SAS Log as else it's really hard to tell where things are not working for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Questions/Remarks:&lt;/P&gt;
&lt;P&gt;1. Are there any WARNING or ERROR in your log?&lt;/P&gt;
&lt;P&gt;2. Do you have any data in&amp;nbsp;&lt;SPAN&gt;WORK.IMPORT?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Why are you sorting by patient if you don't use this sorting in your reports?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4. You could sort by variable smoking and then use this variable in your Proc Report for by group processing. This way you only need a single Proc Report.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Proc Report ....; by smoking; ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5. Using by group processing allows you to use the #byval and #byvar title options for by group specific titles. Here some sample code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline;
title "#byvar1 =&amp;nbsp; #byval1";
proc print data=sashelp.class;
  by name;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 220px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32718iDD4B3975BADDF8BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 02:20:35 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-09-25T02:20:35Z</dc:date>
    <item>
      <title>SAS beginner! Won't get any output for code; "No observations were selected from data table"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591346#M169366</link>
      <description>&lt;P&gt;Hello experts!! I'm new to SAS and programming in general. I still don't understand how to import data tables correctly and I don't know if I'm referencing the data files correctly either. I am using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the homework problem I am doing:&lt;BR /&gt;Import the data file 'Asthma_Ex1.xls' and write the SAS code to obtain the list report stored in file 'outdat_Ex1.html'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;%web_drop_table(WORK.IMPORT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;FILENAME REFFILE '/Users/016698251/Desktop/STAT475/Asthma_Ex1.xls';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;PROC IMPORT DATAFILE=REFFILE DBMS=XLS OUT=WORK.IMPORT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;GETNAMES=YES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;proc sort data=WORK.IMPORT out=WORK.out;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;by patient;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS LISTING CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;PROC REPORT DATA=WORK.out;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;title 'Smoking = Heavy Smoker';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;COLUMN Patient Asthma Age BMI;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;format BMI $char5.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;where smoking='Heavy Smoker';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS HTML CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS LISTING;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS LISTING CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;PROC REPORT DATA=WORK.out;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;title 'Smoking = Never';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;COLUMNS Patient Asthma Age BMI;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;format BMI $char5.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;where smoking='Never';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS HTML CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS LISTING;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS LISTING CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;PROC REPORT DATA=WORK.out;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;title 'Smoking = Occasionally';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;COLUMNS Patient Asthma Age BMI;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;format BMI $char5.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;where smoking='Occasionally';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;footnote 'Data from Medical Records';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS HTML CLOSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ODS LISTING;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I keep getting no output and a message saying "No observations were selected from data set WORK.OUT" and "No observations in input data set."&lt;/P&gt;&lt;P&gt;I feel like I may be importing the files incorrectly?? I'm not sure what to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 01:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591346#M169366</guid>
      <dc:creator>user1942</dc:creator>
      <dc:date>2019-09-25T01:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner! Won't get any output for code; "No observations were selected from data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591356#M169372</link>
      <description>&lt;P&gt;Please post your complete SAS log so we can see exactly what is happening.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591356#M169372</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-25T02:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner! Won't get any output for code; "No observations were selected from data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591359#M169374</link>
      <description>&lt;P&gt;Welcome to the SAS Communities.&lt;/P&gt;
&lt;P&gt;Please post the SAS Log as else it's really hard to tell where things are not working for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Questions/Remarks:&lt;/P&gt;
&lt;P&gt;1. Are there any WARNING or ERROR in your log?&lt;/P&gt;
&lt;P&gt;2. Do you have any data in&amp;nbsp;&lt;SPAN&gt;WORK.IMPORT?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Why are you sorting by patient if you don't use this sorting in your reports?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4. You could sort by variable smoking and then use this variable in your Proc Report for by group processing. This way you only need a single Proc Report.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Proc Report ....; by smoking; ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5. Using by group processing allows you to use the #byval and #byvar title options for by group specific titles. Here some sample code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline;
title "#byvar1 =&amp;nbsp; #byval1";
proc print data=sashelp.class;
  by name;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 220px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32718iDD4B3975BADDF8BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591359#M169374</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-25T02:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner! Won't get any output for code; "No observations were selected from data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591579#M169489</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292156"&gt;@user1942&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;I keep getting no output and a message saying "No observations were selected from data set WORK.OUT" and "No observations in input data set."&lt;/P&gt;
&lt;P&gt;I feel like I may be importing the files incorrectly?? I'm not sure what to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"No observations in input data set." means just that, the input data set doesn't have any observations or records. That would likely mean a problem with the results of the Proc Import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either read the log carefully for the proc import step or rerun that code and show us&amp;nbsp; the log result. To share the log highlight and copy the lines from the log and on the forum open a code box using the {I} or "running man" icon, then paste. Similar with code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the log says anything about no records imported or similar then that needs to be addressed before anything else.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/591579#M169489</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-25T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner! Won't get any output for code; "No observations were selected from data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/592412#M169847</link>
      <description>&lt;P&gt;Hello everyone, I decided to manually input the data as my professor said it was too complicated to import. This is what i have now, but it keeps saying that the asthma has invalid data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what my output should look like:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;file:///C:/Users/emmy/AppData/Local/Temp/Temp4_homework2%20(1).zip/homework2/outdata_Ex1.html&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;here is my code:&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;data exercise1;&lt;BR /&gt;&amp;nbsp;input Patient $ Weight $ Height $ Age $ BMI $ Smoking $ Asthma;&lt;BR /&gt;cards;&lt;BR /&gt;14 167 70 65 23.9593878 never no&lt;BR /&gt;9 . 74 64 . never yes&lt;BR /&gt;4 165 65 25 27.4544379 occasionally no&lt;BR /&gt;2 152 67 60 23.8039652 heavysmoker yes&lt;BR /&gt;13 161 70 77 23.0985714 occasionally yes&lt;BR /&gt;1 143 64 55 24.5432129 occasionally&amp;nbsp;no&lt;BR /&gt;7 148 71 61 20.6395556 occasionally yes&lt;BR /&gt;11 281 69 45 41.4919135 heavysmoker yes&lt;BR /&gt;5 220 70 58 31.5632653 occasionally no&lt;BR /&gt;6 182 64 26 31.2368164 never no&lt;BR /&gt;8 190 66 74 30.6634527 occasionally yes&lt;BR /&gt;12 . . 39 . occasionally yes&lt;BR /&gt;3 190 69 63 28.0550305 never no&lt;BR /&gt;15 148 67 53 23.1775451 never yes&lt;BR /&gt;10 152 65 61 25.2913609&amp;nbsp;never yes&lt;BR /&gt;;&lt;BR /&gt;title 'Smoking = Heavy Smoker';&lt;BR /&gt;proc sort data=exercise1;&lt;BR /&gt;by smoking;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;proc print noobs;&lt;BR /&gt;&amp;nbsp;var Patient Asthma Age BMI;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Here is my some of the log:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Patient=14 Weight=167 Height=70 Age=65 BMI=23.95938 Smoking=never Asthma=. _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: Invalid data for Asthma in line 185 19-21.&lt;BR /&gt;185&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 . 74 64 . never yes&lt;BR /&gt;Patient=9 Weight=&amp;nbsp; Height=74 Age=64 BMI=&amp;nbsp; Smoking=never Asthma=. _ERROR_=1 _N_=2&lt;BR /&gt;NOTE: Invalid data for Asthma in line 186 37-38.&lt;BR /&gt;186&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 165 65 25 27.4544379 occasionally no&lt;BR /&gt;Patient=4 Weight=165 Height=65 Age=25 BMI=27.45443 Smoking=occasion Asthma=. _ERROR_=1 _N_=3&lt;BR /&gt;NOTE: Invalid data for Asthma in line 187 36-38.&lt;BR /&gt;187&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 152 67 60 23.8039652 heavysmoker yes&lt;BR /&gt;Patient=2 Weight=152 Height=67 Age=60 BMI=23.80396 Smoking=heavysmo Asthma=. _ERROR_=1 _N_=4&lt;BR /&gt;NOTE: Invalid data for Asthma in line 188 38-40.&lt;BR /&gt;188&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 161 70 77 23.0985714 occasionally yes&lt;BR /&gt;Patient=13 Weight=161 Height=70 Age=77 BMI=23.09857 Smoking=occasion Asthma=. _ERROR_=1 _N_=5&lt;BR /&gt;NOTE: Invalid data for Asthma in line 189 37-38.&lt;BR /&gt;189&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 143 64 55 24.5432129 occasionally no&lt;BR /&gt;Patient=1 Weight=143 Height=64 Age=55 BMI=24.54321 Smoking=occasion Asthma=. _ERROR_=1 _N_=6&lt;BR /&gt;NOTE: Invalid data for Asthma in line 190 37-39.&lt;BR /&gt;190&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 148 71 61 20.6395556 occasionally yes&lt;BR /&gt;Patient=7 Weight=148 Height=71 Age=61 BMI=20.63955 Smoking=occasion Asthma=. _ERROR_=1 _N_=7&lt;BR /&gt;NOTE: Invalid data for Asthma in line 191 37-39.&lt;BR /&gt;191&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11 281 69 45 41.4919135 heavysmoker yes&lt;BR /&gt;Patient=11 Weight=281 Height=69 Age=45 BMI=41.49191 Smoking=heavysmo Asthma=. _ERROR_=1 _N_=8&lt;BR /&gt;NOTE: Invalid data for Asthma in line 192 37-38.&lt;BR /&gt;192&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 220 70 58 31.5632653 occasionally no&lt;BR /&gt;Patient=5 Weight=220 Height=70 Age=58 BMI=31.56326 Smoking=occasion Asthma=. _ERROR_=1 _N_=9&lt;BR /&gt;NOTE: Invalid data for Asthma in line 193 30-31.&lt;BR /&gt;193&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6 182 64 26 31.2368164 never no&lt;BR /&gt;Patient=6 Weight=182 Height=64 Age=26 BMI=31.23681 Smoking=never Asthma=. _ERROR_=1 _N_=10&lt;BR /&gt;NOTE: Invalid data for Asthma in line 194 37-39.&lt;BR /&gt;194&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 190 66 74 30.6634527 occasionally yes&lt;BR /&gt;Patient=8 Weight=190 Height=66 Age=74 BMI=30.66345 Smoking=occasion Asthma=. _ERROR_=1 _N_=11&lt;BR /&gt;NOTE: Invalid data for Asthma in line 195 26-28.&lt;BR /&gt;195&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 . . 39 . occasionally yes&lt;BR /&gt;Patient=12 Weight=&amp;nbsp; Height=&amp;nbsp; Age=39 BMI=&amp;nbsp; Smoking=occasion Asthma=. _ERROR_=1 _N_=12&lt;BR /&gt;NOTE: Invalid data for Asthma in line 196 30-31.&lt;BR /&gt;196&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 190 69 63 28.0550305 never no&lt;BR /&gt;Patient=3 Weight=190 Height=69 Age=63 BMI=28.05503 Smoking=never Asthma=. _ERROR_=1 _N_=13&lt;BR /&gt;NOTE: Invalid data for Asthma in line 197 31-33.&lt;BR /&gt;197&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 148 67 53 23.1775451 never yes&lt;BR /&gt;Patient=15 Weight=148 Height=67 Age=53 BMI=23.17754 Smoking=never Asthma=. _ERROR_=1 _N_=14&lt;BR /&gt;NOTE: Invalid data for Asthma in line 198 31-33.&lt;BR /&gt;198&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 152 65 61 25.2913609 never yes&lt;BR /&gt;Patient=10 Weight=152 Height=65 Age=61 BMI=25.29136 Smoking=never Asthma=. _ERROR_=1 _N_=15&lt;BR /&gt;NOTE: The data set WORK.EXERCISE1 has 15 observations and 7 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.08 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.06 seconds&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;BR /&gt;199&amp;nbsp; ;&lt;BR /&gt;200&amp;nbsp; title 'Smoking = Heavy Smoker';&lt;BR /&gt;201&amp;nbsp; proc sort data=exercise1;&lt;BR /&gt;202&amp;nbsp; by smoking;&lt;BR /&gt;203&amp;nbsp; run;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;NOTE: There were 15 observations read from the data set WORK.EXERCISE1.&lt;BR /&gt;NOTE: The data set WORK.EXERCISE1 has 15 observations and 7 variables.&lt;BR /&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 second&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 Sep 2019 17:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/592412#M169847</guid>
      <dc:creator>user1942</dc:creator>
      <dc:date>2019-09-28T17:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner! Won't get any output for code; "No observations were selected from data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/592426#M169859</link>
      <description>&lt;P&gt;Try an input statement like this. Your asthma column is character so you need to add the dollar sign to read it as such. Weight, Height, Age should be read as numbers so don't use a dollar sign.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; input Patient $ Weight  Height  Age  BMI Smoking $ Asthma $;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;t &lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2019 21:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/592426#M169859</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-28T21:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner! Won't get any output for code; "No observations were selected from data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/592429#M169861</link>
      <description>thank you!</description>
      <pubDate>Sat, 28 Sep 2019 21:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Won-t-get-any-output-for-code-quot-No-observations/m-p/592429#M169861</guid>
      <dc:creator>user1942</dc:creator>
      <dc:date>2019-09-28T21:38:53Z</dc:date>
    </item>
  </channel>
</rss>

