<?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: HTML Output: Data interpreted as HTML control characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/HTML-Output-Data-interpreted-as-HTML-control-characters/m-p/854972#M337930</link>
    <description>&lt;P&gt;Patrick,&lt;/P&gt;
&lt;P&gt;Try this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.sample;
  infile datalines4 truncover dlm='|' dsd;
  input
    rule_type :$30.
    rule_desc :$100.
    ;
  datalines4;
Not Null|Raise issue if value is missing
In a List|Raise issue if value NOT found in a list
Not In a List|Raise issue if value found in a list
In Value Range|Raise issue if value NOT within boundaries
Not In Value Range|Raise issue if value within boundaries
Lookup Exist|&amp;lt;table for hash&amp;gt; &amp;lt;keyvar(s) hash&amp;gt; &amp;lt;keyvar(s) table if different names&amp;gt;
Not Lookup Exist|&amp;lt;table for hash&amp;gt; &amp;lt;keyvar(s) hash&amp;gt; &amp;lt;keyvar(s) table if different names&amp;gt;
Unique Key|&amp;lt;space separated list of variables that make up the unique key&amp;gt;
Custom Function|Any SAS expression that return True or False. Example: &amp;lt;var 1&amp;gt; = &amp;lt;var 2&amp;gt;
;;;;

proc report data=work.sample nowd style(column)={PROTECTSPECIALCHARS=yes};
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1674312062715.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79585iB96A9B55AFDCF5CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1674312062715.png" alt="Ksharp_0-1674312062715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jan 2023 14:41:09 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-01-21T14:41:09Z</dc:date>
    <item>
      <title>HTML Output: Data interpreted as HTML control characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HTML-Output-Data-interpreted-as-HTML-control-characters/m-p/854952#M337926</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using SAS EG while populating and then printing a control table with some test data I've encountered a case where the data messes-up the output (sample below).&lt;/P&gt;
&lt;P&gt;Do you know of any way to avoid such a result without having to encode characters in the source data so they become "html safe"?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.sample;
  infile datalines4 truncover dlm='|' dsd;
  input
    rule_type :$30.
    rule_desc :$100.
    ;
  datalines4;
Not Null|Raise issue if value is missing
In a List|Raise issue if value NOT found in a list
Not In a List|Raise issue if value found in a list
In Value Range|Raise issue if value NOT within boundaries
Not In Value Range|Raise issue if value within boundaries
Lookup Exist|&amp;lt;table for hash&amp;gt; &amp;lt;keyvar(s) hash&amp;gt; &amp;lt;keyvar(s) table if different names&amp;gt;
Not Lookup Exist|&amp;lt;table for hash&amp;gt; &amp;lt;keyvar(s) hash&amp;gt; &amp;lt;keyvar(s) table if different names&amp;gt;
Unique Key|&amp;lt;space separated list of variables that make up the unique key&amp;gt;
Custom Function|Any SAS expression that return True or False. Example: &amp;lt;var 1&amp;gt; = &amp;lt;var 2&amp;gt;
;;;;

proc print data=work.sample;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1674287115095.png" style="width: 756px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79581i154FA565F7CB0997/image-dimensions/756x208?v=v2" width="756" height="208" role="button" title="Patrick_0-1674287115095.png" alt="Patrick_0-1674287115095.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 07:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HTML-Output-Data-interpreted-as-HTML-control-characters/m-p/854952#M337926</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-21T07:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Output: Data interpreted as HTML control characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HTML-Output-Data-interpreted-as-HTML-control-characters/m-p/854972#M337930</link>
      <description>&lt;P&gt;Patrick,&lt;/P&gt;
&lt;P&gt;Try this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.sample;
  infile datalines4 truncover dlm='|' dsd;
  input
    rule_type :$30.
    rule_desc :$100.
    ;
  datalines4;
Not Null|Raise issue if value is missing
In a List|Raise issue if value NOT found in a list
Not In a List|Raise issue if value found in a list
In Value Range|Raise issue if value NOT within boundaries
Not In Value Range|Raise issue if value within boundaries
Lookup Exist|&amp;lt;table for hash&amp;gt; &amp;lt;keyvar(s) hash&amp;gt; &amp;lt;keyvar(s) table if different names&amp;gt;
Not Lookup Exist|&amp;lt;table for hash&amp;gt; &amp;lt;keyvar(s) hash&amp;gt; &amp;lt;keyvar(s) table if different names&amp;gt;
Unique Key|&amp;lt;space separated list of variables that make up the unique key&amp;gt;
Custom Function|Any SAS expression that return True or False. Example: &amp;lt;var 1&amp;gt; = &amp;lt;var 2&amp;gt;
;;;;

proc report data=work.sample nowd style(column)={PROTECTSPECIALCHARS=yes};
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1674312062715.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79585iB96A9B55AFDCF5CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1674312062715.png" alt="Ksharp_0-1674312062715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 14:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HTML-Output-Data-interpreted-as-HTML-control-characters/m-p/854972#M337930</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-21T14:41:09Z</dc:date>
    </item>
  </channel>
</rss>

