<?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 what's wrong with the code ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848817#M335577</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname learn 'C:\SAS data and program\data\data set used in Textbook\SAS data set';
ods html file = 'C:\SAS data and program\data\data set used in Textbook';
title "Listing of TEST_SCORES";
proc print data = learn.test_scores;
title2 "Sample of HTML Output - all defaults";
id ID;

run;


title "descriptive Statistics";
proc means data = learn.test_scores n mean min max;
var Score1-Score3;
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;information of log :&lt;/P&gt;
&lt;P&gt;236 libname learn 'C:\SAS data and program\data\data set used in Textbook\SAS data set';&lt;BR /&gt;NOTE: Libref LEARN refers to the same physical library as TMP1.&lt;BR /&gt;NOTE: Libref LEARN was successfully assigned as follows:&lt;BR /&gt;Engine: V9&lt;BR /&gt;Physical Name: C:\SAS data and program\data\data set used in Textbook\SAS data set&lt;BR /&gt;237 ods html file = 'C:\SAS data and program\data\data set used in Textbook';&lt;BR /&gt;NOTE: Writing HTML Body file: C:\SAS data and program\data\data set used in Textbook&lt;BR /&gt;ERROR: A component of C:\Users\LIAODO~1\AppData\Local\Temp\SAS Temporary&lt;BR /&gt;Files\_TD21160_DESKTOP-VL03550_\C:\SAS data and program\data\data set used in Textbook is&lt;BR /&gt;not a directory.&lt;BR /&gt;ERROR: No body file. HTML output will not be created.&lt;BR /&gt;238 title "Listing of TEST_SCORES";&lt;BR /&gt;239 proc print data = learn.test_scores;&lt;BR /&gt;240 title2 "Sample of HTML Output - all defaults";&lt;BR /&gt;241 id ID;&lt;BR /&gt;242&lt;BR /&gt;243 run;&lt;/P&gt;
&lt;P&gt;WARNING: No output destinations active.&lt;BR /&gt;NOTE: There were 3 observations read from the data set LEARN.TEST_SCORES.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;244&lt;BR /&gt;245&lt;BR /&gt;246 title "descriptive Statistics";&lt;BR /&gt;247 proc means data = learn.test_scores n mean min max;&lt;BR /&gt;248 var Score1-Score3;&lt;BR /&gt;249 run;&lt;/P&gt;
&lt;P&gt;WARNING: No output destinations active.&lt;BR /&gt;NOTE: There were 3 observations read from the data set LEARN.TEST_SCORES.&lt;BR /&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please give me a help , thank you .&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 21:15:27 GMT</pubDate>
    <dc:creator>tianerhu</dc:creator>
    <dc:date>2022-12-09T21:15:27Z</dc:date>
    <item>
      <title>what's wrong with the code ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848817#M335577</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname learn 'C:\SAS data and program\data\data set used in Textbook\SAS data set';
ods html file = 'C:\SAS data and program\data\data set used in Textbook';
title "Listing of TEST_SCORES";
proc print data = learn.test_scores;
title2 "Sample of HTML Output - all defaults";
id ID;

run;


title "descriptive Statistics";
proc means data = learn.test_scores n mean min max;
var Score1-Score3;
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;information of log :&lt;/P&gt;
&lt;P&gt;236 libname learn 'C:\SAS data and program\data\data set used in Textbook\SAS data set';&lt;BR /&gt;NOTE: Libref LEARN refers to the same physical library as TMP1.&lt;BR /&gt;NOTE: Libref LEARN was successfully assigned as follows:&lt;BR /&gt;Engine: V9&lt;BR /&gt;Physical Name: C:\SAS data and program\data\data set used in Textbook\SAS data set&lt;BR /&gt;237 ods html file = 'C:\SAS data and program\data\data set used in Textbook';&lt;BR /&gt;NOTE: Writing HTML Body file: C:\SAS data and program\data\data set used in Textbook&lt;BR /&gt;ERROR: A component of C:\Users\LIAODO~1\AppData\Local\Temp\SAS Temporary&lt;BR /&gt;Files\_TD21160_DESKTOP-VL03550_\C:\SAS data and program\data\data set used in Textbook is&lt;BR /&gt;not a directory.&lt;BR /&gt;ERROR: No body file. HTML output will not be created.&lt;BR /&gt;238 title "Listing of TEST_SCORES";&lt;BR /&gt;239 proc print data = learn.test_scores;&lt;BR /&gt;240 title2 "Sample of HTML Output - all defaults";&lt;BR /&gt;241 id ID;&lt;BR /&gt;242&lt;BR /&gt;243 run;&lt;/P&gt;
&lt;P&gt;WARNING: No output destinations active.&lt;BR /&gt;NOTE: There were 3 observations read from the data set LEARN.TEST_SCORES.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;244&lt;BR /&gt;245&lt;BR /&gt;246 title "descriptive Statistics";&lt;BR /&gt;247 proc means data = learn.test_scores n mean min max;&lt;BR /&gt;248 var Score1-Score3;&lt;BR /&gt;249 run;&lt;/P&gt;
&lt;P&gt;WARNING: No output destinations active.&lt;BR /&gt;NOTE: There were 3 observations read from the data set LEARN.TEST_SCORES.&lt;BR /&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please give me a help , thank you .&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 21:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848817#M335577</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2022-12-09T21:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: what's wrong with the code ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848818#M335578</link>
      <description>&lt;P&gt;The main problem in the SAS code is that the HTML output is not being created, because the ODS HTML FILE statement is attempting to create a file in a path, which contains the token 'C:\Users\LIAODO~1\AppData\Local\Temp\' which is not a directory.&lt;BR /&gt;Consequently, the HTML file cannot be written and the error is generated. The statement should use a directory path that is valid on the system.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 21:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848818#M335578</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-12-09T21:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: what's wrong with the code ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848821#M335581</link>
      <description>could you give me more detail about how to correct my path?</description>
      <pubDate>Fri, 09 Dec 2022 21:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848821#M335581</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2022-12-09T21:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: what's wrong with the code ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848822#M335582</link>
      <description>&lt;P&gt;First, check the path in your SAS code to make sure the file is located in the correct folder. Make sure that the path is specified with forward slashes ("/") instead of backslashes ("\"). If the path is correct, then check to make sure that the filename is correct and that you have the correct file permissions to open the file. If both of these are correct, try running the code again and make sure that the output file appears in the folder where you specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this maybe:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname learn 'C:\SAS data and program\data\data set used in Textbook\SAS data set';&lt;BR /&gt;ods html file = 'C:\SAS data and program\data\data set used in Textbook';&lt;BR /&gt;title "Listing of TEST_SCORES";&lt;BR /&gt;proc print data = learn.test_scores;&lt;BR /&gt;title2 "Sample of HTML Output - all defaults";&lt;BR /&gt;id ID;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title "descriptive Statistics";&lt;BR /&gt;proc means data = learn.test_scores n mean min max;&lt;BR /&gt;var Score1-Score3;&lt;BR /&gt;run;&lt;BR /&gt;ods html close;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 21:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848822#M335582</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-12-09T21:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: what's wrong with the code ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848835#M335588</link>
      <description>&lt;LI-CODE lang="sas"&gt;ods html file = 'C:\SAS data and program\data\data set used in Textbook';&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is a folder not a FILE. A file would look something like:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;ods html file = 'C:\SAS data and program\data\data set used in Textbook\outputfilename.html';&lt;/LI-CODE&gt;
&lt;P&gt;What may have happened was SAS tried create a file without any extension such as the following but failed because the "optional" parts of the file name "set used in Textbook" are not valid options for a file. Just one of several reasons not to have spaces in folder names.&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;ods html file = 'C:\SAS data and program\data\data';&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 22:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848835#M335588</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-09T22:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: what's wrong with the code ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848842#M335592</link>
      <description>&lt;P&gt;Wow, I really thought that code would work.&amp;nbsp; But when I checked the docs, ODS HTML doesn't have a file= option documented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think file= might be an alias for body=.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works for me if I use path= to specify the directory, and then use only the filename in file=.&amp;nbsp; Suggest you try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname learn 'C:\SAS data and program\data\data set used in Textbook\SAS data set';

ods html path='C:\SAS data and program\data\data set used in Textbook\SAS data set' file = 'myhtmlfile.htm';
title "Listing of TEST_SCORES";
proc print data = learn.test_scores;
title2 "Sample of HTML Output - all defaults";
id ID;
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Dec 2022 22:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848842#M335592</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-12-09T22:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: what's wrong with the code ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848847#M335595</link>
      <description>Thank you very much.</description>
      <pubDate>Fri, 09 Dec 2022 23:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-s-wrong-with-the-code/m-p/848847#M335595</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2022-12-09T23:14:09Z</dc:date>
    </item>
  </channel>
</rss>

