<?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: Can you write html code with SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895331#M353733</link>
    <description>&lt;P&gt;Yes.&amp;nbsp; There are ways to generate a link PROC REPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the (2) example in this article.&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/rnd/base/ods/templateFAQ/links.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/templateFAQ/links.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 18:13:02 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-09-21T18:13:02Z</dc:date>
    <item>
      <title>Can you write html code with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895322#M353727</link>
      <description>&lt;P&gt;&amp;nbsp;have a question. I am have been tasked with copying an already existing SAS Solution and improving upon it. I am trying to allow the user to manage some of the tables within the solution like look up tables.&amp;nbsp; That way the application becomes self maintaining and not left to the programmers to do the heavy lifting.&amp;nbsp; &amp;nbsp;My first attempt is a simple table: I just want to query from&amp;nbsp; a table named 'Company' and then display the results in an html table. In addition, I want to give the users a link to edit that name or set it as inactive. I can't get it to work. I apologize for lack of specifics. I can add code in here if it would be helpful as well&amp;nbsp; as the version of SAS if needed.&amp;nbsp;&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="code.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88211i2779239E5E3D8C0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.png" alt="code.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data.png" style="width: 403px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88213i4865304B8D973DD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data.png" alt="Data.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="results.png" style="width: 381px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88212i673544CB43589DC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="results.png" alt="results.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 17:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895322#M353727</guid>
      <dc:creator>RustyOwens</dc:creator>
      <dc:date>2023-09-21T17:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can you write html code with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895323#M353728</link>
      <description>Just to clarify as I suspect this is out of wheelhouse, you want the user to be able to modify the company name, AT&amp;amp;T for example?&lt;BR /&gt;&lt;BR /&gt;User maintained forms are a pain, and I've never met a company where it was not needed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 21 Sep 2023 17:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895323#M353728</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-09-21T17:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can you write html code with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895325#M353729</link>
      <description>&lt;P&gt;The answer is "yes."&amp;nbsp; But if you want to deploy a SAS app for allowing users to maintaining data tables, I recommend taking a look at&amp;nbsp;&lt;A href="https://datacontroller.io/," target="_blank"&gt;https://datacontroller.io/,&lt;/A&gt;&amp;nbsp;created by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;&amp;nbsp;and his team.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895325#M353729</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-09-21T18:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can you write html code with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895326#M353730</link>
      <description>&lt;P&gt;Yes, it is defintely out of my wheelhouse. Used to be a .net developer but doing this out of necessity. It's a long story but the solution is to match to group up organizations run by a single account. We are in the process of overhauling this system but are two years away at a minimum. The previous solution had a process with over 4000 lines of if statemennts and you had to add to it each time to needed a new item.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895326#M353730</guid>
      <dc:creator>RustyOwens</dc:creator>
      <dc:date>2023-09-21T18:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can you write html code with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895328#M353731</link>
      <description>&lt;P&gt;I am not sure what you want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to use ODS HTML to generate an HTML file then just do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html body=_webout;
proc print data=national.company;
  var companyname;
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to use a data step to craft your own HTML file then do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file _webout;
  if _n_=1 then put '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;CompanyName&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;';
  if eof then put '&amp;lt;/table&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;';
  set national.company end=eof;
  html_string=htmlencode(trim(companyname));
  put '&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;'  html_string +(-1) '&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895328#M353731</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-21T18:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can you write html code with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895329#M353732</link>
      <description>&lt;P&gt;&amp;nbsp;OK, essentially what I am trying to create is a two column table. One with the name of the company and the other column and link to another page where I can edit that record via an html form. Are both of these items possible to do inside a SAS stored process?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895329#M353732</guid>
      <dc:creator>RustyOwens</dc:creator>
      <dc:date>2023-09-21T18:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can you write html code with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895331#M353733</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; There are ways to generate a link PROC REPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the (2) example in this article.&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/rnd/base/ods/templateFAQ/links.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/templateFAQ/links.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-write-html-code-with-SAS/m-p/895331#M353733</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-21T18:13:02Z</dc:date>
    </item>
  </channel>
</rss>

