<?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 ODS HTML FILE Query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583240#M166023</link>
    <description>&lt;P&gt;Can anyone please tell me what's wrong with the following code which I'm using to call the Macro?&lt;BR /&gt;Log doesn't prompt any error but there isn't any external Excel file which is being created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help, I'm new!&lt;BR /&gt;&lt;BR /&gt;ODS HTML FILE="/folders/myfolders/sasuser.v94/SP.XLS";&lt;BR /&gt;%FINE_CLASS(CSD,INS,11175,21089,AcctAge,10);&lt;BR /&gt;ODS HTML CLOSE;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 15:52:51 GMT</pubDate>
    <dc:creator>MeghnaRoy9</dc:creator>
    <dc:date>2019-08-22T15:52:51Z</dc:date>
    <item>
      <title>ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583240#M166023</link>
      <description>&lt;P&gt;Can anyone please tell me what's wrong with the following code which I'm using to call the Macro?&lt;BR /&gt;Log doesn't prompt any error but there isn't any external Excel file which is being created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help, I'm new!&lt;BR /&gt;&lt;BR /&gt;ODS HTML FILE="/folders/myfolders/sasuser.v94/SP.XLS";&lt;BR /&gt;%FINE_CLASS(CSD,INS,11175,21089,AcctAge,10);&lt;BR /&gt;ODS HTML CLOSE;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583240#M166023</guid>
      <dc:creator>MeghnaRoy9</dc:creator>
      <dc:date>2019-08-22T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583243#M166024</link>
      <description>Without the code in the middle it's anyone's guess. &lt;BR /&gt;&lt;BR /&gt;There's either something in the log that shows an error,warning, or note. &lt;BR /&gt;&lt;BR /&gt;I would first try your code as a non-macro version and see if that works. &lt;BR /&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583243#M166024</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-22T16:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583253#M166029</link>
      <description>&lt;P&gt;It is getting to be a worse idea to lie to your computer such as naming a file with an XLS extension when the actual created file is HTML. Excel is getting pretty picky about opening such lies in the latest versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want spreadsheet output use ODS EXCEL.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583253#M166029</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-22T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583254#M166030</link>
      <description>&lt;P&gt;I tried and this is what it prompted&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="sasSource"&gt;%FINE_CLASS(CSD,INS,11175,21089,AcctAge,10);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;What should I do now?&lt;BR /&gt;&lt;BR /&gt;I have received a set of codes and I have to just input the value from the Excel file to generate a data. If required I can attach the files here.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Kindly let me know.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583254#M166030</guid>
      <dc:creator>MeghnaRoy9</dc:creator>
      <dc:date>2019-08-22T16:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583256#M166032</link>
      <description>&lt;P&gt;But I have used ODS HTML to open Excel files and it has run just fine. It's only in this case that I'm facing a problem so I'm assuming the problem Is with the format of the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583256#M166032</guid>
      <dc:creator>MeghnaRoy9</dc:creator>
      <dc:date>2019-08-22T16:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583262#M166034</link>
      <description>&lt;P&gt;Post your exact full log. That isn't enough information to solve your problem. Often the log has more details and where the errors occur can be indicative of the issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Especially if you didn't copy and paste the code correctly or if you had code before the lines shown - in fact I suspect the actual error is before the code shown.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583262#M166034</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-22T16:51:53Z</dc:date>
    </item>
    <item>
      <title>ODS HTML QUERY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583263#M166036</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Can anyone please tell me what's wrong with the following code which I'm using to call the Macro?&lt;BR /&gt;Log doesn't prompt any error but there isn't any external Excel file which is being created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help, I'm new!&lt;BR /&gt;&lt;BR /&gt;ODS HTML FILE="/folders/myfolders/sasuser.v94/SP.XLS";&lt;BR /&gt;%FINE_CLASS(CSD,INS,11175,21089,AcctAge,10);&lt;BR /&gt;ODS HTML CLOSE;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583263#M166036</guid>
      <dc:creator>MeghnaRoy9</dc:creator>
      <dc:date>2019-08-22T16:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML QUERY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583269#M166038</link>
      <description>FYI - I merged your two threads because they are the same issue. &lt;BR /&gt;&lt;BR /&gt;Please do not post the same question multiple times, especially after you start getting responses. Duplicate threads makes it harder to follow the threads and information will be in one post and not another leading to confusion.</description>
      <pubDate>Thu, 22 Aug 2019 16:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583269#M166038</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-22T16:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583270#M166039</link>
      <description>&lt;P&gt;The following are the codes I had pasted before finally calling the macro. Every code worked fine and the error popped up while calling the Macro. Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname CSD "/folders/myshortcuts/SAS_Assignment";Run;&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE="/folders/myshortcuts/SAS_Assignment/Cross Sell_Data.csv"&lt;BR /&gt;OUT=CSD.cross_sell_data&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA CSD.DEV CSD.VAL;&lt;BR /&gt;SET CSD;&lt;BR /&gt;IF RANUNI (1000)&amp;lt;= 0.7 THEN OUTPUT CSD.DEV;&lt;BR /&gt;ELSE OUTPUT CSD.VAL;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC SQL;CREATE TABLE L AS SELECT * FROM CSD;&lt;BR /&gt;SELECT COUNT (*) FROM L WHERE INS=1;QUIT;&lt;/P&gt;&lt;P&gt;PROC SQL;CREATE TABLE L AS SELECT * FROM CSD;&lt;BR /&gt;SELECT COUNT (*) FROM L WHERE INS=0;QUIT;&lt;/P&gt;&lt;P&gt;%MACRO FINE_CLASS (DSN,DEPVAR,TOT_RESP,TOT_NRESP,CLASS_VAR,GRPS);&lt;/P&gt;&lt;P&gt;PROC RANK DATA =&amp;amp;DSN. GROUPS=&amp;amp;GRPS. OUT=BIN_DSN;&lt;BR /&gt;VAR &amp;amp;CLASS_VAR.;&lt;BR /&gt;RANKS BIN;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE FINE_CLASSED AS SELECT&lt;BR /&gt;COUNT(*) AS NOBS,&lt;BR /&gt;MIN(&amp;amp;CLASS_VAR.) AS MIN_VAL,&lt;BR /&gt;MAX(&amp;amp;CLASS_VAR.) AS MAX_VAL,&lt;BR /&gt;SUM(CASE WHEN &amp;amp;DEPVAR. = 1 THEN 1 ELSE 0 END) AS RESP,&lt;BR /&gt;SUM(CASE WHEN &amp;amp;DEPVAR. = 0 THEN 1 ELSE 0 END) AS NRESP&lt;/P&gt;&lt;P&gt;FROM BIN_DSN&lt;/P&gt;&lt;P&gt;GROUP BY BIN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;DATA FINE_CLASSED1;&lt;BR /&gt;SET FINE_CLASSED;&lt;BR /&gt;TOT_RESP=&amp;amp;TOT_RESP.;&lt;BR /&gt;TOT_NRESP=&amp;amp;TOT_NRESP.;&lt;BR /&gt;WOE=LOG(((RESP/TOT_RESP)+0.000000001)/((NRESP/TOT_nRESP)+0.000000001));&lt;BR /&gt;IV=((RESP/TOT_RESP)-(NRESP/TOT_NRESP))*WOE*100;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA = FINE_CLASSED1;RUN;&lt;BR /&gt;/*PROC DELETE DATA = FINE_CLASSED1;*/&lt;BR /&gt;/*PROC DELETE DATA = FINE_CLASSED;*/&lt;BR /&gt;/*PROC DELETE DATA = BIN_DSN;RUN;*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%MEND;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS HTML FILE="/folders/myfolders/sasuser.v94/SP.XLS";&lt;BR /&gt;%FINE_CLASS(CSD,INS,11175,21089,AcctAge,10);&lt;BR /&gt;ODS HTML CLOSE;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583270#M166039</guid>
      <dc:creator>MeghnaRoy9</dc:creator>
      <dc:date>2019-08-22T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583284#M166043</link>
      <description>Add the following to the top of your code, run it and post the log please. &lt;BR /&gt;&lt;BR /&gt;options mprint symbolgen;&lt;BR /&gt;&amp;lt;rest of your sas code&amp;gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Aug 2019 18:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583284#M166043</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-22T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583412#M166082</link>
      <description>&lt;P&gt;Hey!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried running the code you gave but it didn't work. I had to make a few changes in the code and it's fine now.&lt;BR /&gt;Thank You for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 09:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583412#M166082</guid>
      <dc:creator>MeghnaRoy9</dc:creator>
      <dc:date>2019-08-23T09:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML FILE Query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583509#M166110</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/284738"&gt;@MeghnaRoy9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hey!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried running the code you gave but it didn't work. I had to make a few changes in the code and it's fine now.&lt;BR /&gt;Thank You for the help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It wouldn't have solved your problem, it would have put more information to the log to allow you to find the problem more easily.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-FILE-Query/m-p/583509#M166110</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-23T15:17:01Z</dc:date>
    </item>
  </channel>
</rss>

