<?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: Fill html table whith sas data on Viya in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/917003#M361205</link>
    <description>&lt;P&gt;Ok.. Thks so much&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 16:46:22 GMT</pubDate>
    <dc:creator>ajulio4</dc:creator>
    <dc:date>2024-02-20T16:46:22Z</dc:date>
    <item>
      <title>Fill html table whith sas data on Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916756#M361099</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have problem on Viya with something i want to do. Can someone tell mi if its posible and then tell me how i can do it.&lt;/P&gt;
&lt;P&gt;am filling my html table with my data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have this for example :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data _null_;
file _webout;
set inputData;
put '&amp;lt;tr&amp;gt;';

put '&amp;lt;td class="tabledit-view-mode" style="cursor: pointer;"&amp;gt;';
put '&amp;lt;span&amp;gt;' Name;
put '&amp;lt;/span&amp;gt;';
put '&amp;lt;/td&amp;gt;';



put '&amp;lt;td class="tabledit-view-mode" style="cursor: pointer;"&amp;gt;';
put '&amp;lt;span &amp;gt;' ??????????????;
put '&amp;lt;/span&amp;gt;';
put '&amp;lt;/td&amp;gt;';



put '&amp;lt;tr&amp;gt;';

run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My problem is intead of putting ???? i want to put a variable which is too long and i have to display this variable in this way&lt;/P&gt;
&lt;PRE&gt;		n=0;
	   do until(n&amp;gt;=countw("columnVar",","));
		  grp = scan("columnVar",n);
		  put grp;
	      n+1;
	   end;&lt;/PRE&gt;
&lt;P&gt;am lookin for a way to display my variable in the html &amp;lt;td&amp;gt; and &amp;lt;/td&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 09:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916756#M361099</guid>
      <dc:creator>ajulio4</dc:creator>
      <dc:date>2024-02-19T09:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fill html table whith sas data on Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916790#M361115</link>
      <description>&lt;P&gt;Max character variable length in SAS is 32,767. Because you are writing an HTML table to the output file, when the file renders in a browser, the text it contains should automatically wrap within the table column for each row. So I'm having difficulty visualizing what you are trying to accomplish with the DO loop. Can you explain a bit more?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 14:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916790#M361115</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-02-19T14:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fill html table whith sas data on Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916798#M361118</link>
      <description>&lt;PRE&gt;for example my variable is this form 
%let var =
 ABCD_GROUP,OPEGROU,AWSAMZ,HOMJACGFF,YEDD_DE,UEUEDD,HDHDHD_GGGGG,OPERATOR_DATA,INVOICE_MKG,GRFSDD_MKT,OFFICE_DIREC,AMZ_RECRUIT,ALL_EVENT,REZO_SAS,AHAHEHEHDH_TERR ;
and in the Html &amp;lt;td&amp;gt; i want this variaable to be display this way :
intead of list form separed by comma :
ABCD_GROUP OPEGROU AWSAMZ
AWSAMZ HOMJACGFF YEDD_DE 
UEUEDD HDHDHD_GGGGG OPERATOR_DATA
INVOICE_MKG GRFSDD_MKT OFFICE_DIREC
AMZ_RECRUIT ALL_EVENT REZO_SAS
AHAHEHEHDH_TERR&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2024 15:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916798#M361118</guid>
      <dc:creator>ajulio4</dc:creator>
      <dc:date>2024-02-19T15:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fill html table whith sas data on Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916817#M361122</link>
      <description>&lt;P&gt;If you want the individual items to display&amp;nbsp;on a new line inside an HTML column, you need to replace the commas (&lt;STRONG&gt;.&lt;/STRONG&gt;) with a line break code (&lt;STRONG&gt;&amp;lt;br&amp;gt;&lt;/STRONG&gt;). The TRANWRD function can help:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	length text $32767;
	file _webout;
	set inputData;&lt;BR /&gt;	/* Change all commas to line break tags */
	columnVar=tranwrd(columnVar,',','&amp;lt;br&amp;gt;');
	put '&amp;lt;tr&amp;gt;';
	put '&amp;lt;td class="tabledit-view-mode" style="cursor: pointer;"&amp;gt;';
	put '&amp;lt;span&amp;gt;' Name;
	put '&amp;lt;/span&amp;gt;';
	put '&amp;lt;/td&amp;gt;';
	put '&amp;lt;td class="tabledit-view-mode" style="cursor: pointer;"&amp;gt;';
	put '&amp;lt;span &amp;gt;' text;
	put '&amp;lt;/span&amp;gt;';
	put '&amp;lt;/td&amp;gt;';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 16:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/916817#M361122</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-02-19T16:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fill html table whith sas data on Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/917003#M361205</link>
      <description>&lt;P&gt;Ok.. Thks so much&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-html-table-whith-sas-data-on-Viya/m-p/917003#M361205</guid>
      <dc:creator>ajulio4</dc:creator>
      <dc:date>2024-02-20T16:46:22Z</dc:date>
    </item>
  </channel>
</rss>

