<?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 Call define: how to assign the percent format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Call-define-how-to-assign-the-percent-format/m-p/698712#M213708</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to assign a percent format for my data in call define.&lt;/P&gt;
&lt;P&gt;When I use the statement:&amp;nbsp;&lt;EM&gt;call define(_col_,'format','percent8.2')&lt;/EM&gt; I have all time the error that my server is deconnected.&lt;/P&gt;
&lt;P&gt;I joined my input data.&lt;/P&gt;
&lt;P&gt;The code is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods noresults;
	ods excel file="&amp;amp;Rep_Travail.\&amp;amp;DatePubli._&amp;amp;fichier_final." options(sheet_name='Stats_LinkedIn_Twitter');

	proc report data=donnee_marketing_&amp;amp;numtab noheader nowd style(column)=[textalign=left verticalalign=top];
		columns

			%do i=1 %to &amp;amp;nombre_var;
				VAR&amp;amp;i.
			%end;
		;

		
		compute VAR7;

			if anydigit(VAR1) then
				do;
					call define(_col_,'format','percent8.2');
				end;
		endcomp;

		compute VAR2;

			if anydigit(VAR1) then
				do;
					call define(_col_,'url',VAR2 );
					call define(_col_,'style','style={textdecoration=underline color=blue}');
				end;
			else
				do;
					call define(_ROW_, "style", "STYLE=[BACKGROUND=#00acee font_size = 11pt font_face = 'Arial' font_weight = bold color=white ]");
				end;
		endcomp;
	run;

	ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Nov 2020 16:46:25 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2020-11-13T16:46:25Z</dc:date>
    <item>
      <title>Call define: how to assign the percent format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-define-how-to-assign-the-percent-format/m-p/698712#M213708</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to assign a percent format for my data in call define.&lt;/P&gt;
&lt;P&gt;When I use the statement:&amp;nbsp;&lt;EM&gt;call define(_col_,'format','percent8.2')&lt;/EM&gt; I have all time the error that my server is deconnected.&lt;/P&gt;
&lt;P&gt;I joined my input data.&lt;/P&gt;
&lt;P&gt;The code is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods noresults;
	ods excel file="&amp;amp;Rep_Travail.\&amp;amp;DatePubli._&amp;amp;fichier_final." options(sheet_name='Stats_LinkedIn_Twitter');

	proc report data=donnee_marketing_&amp;amp;numtab noheader nowd style(column)=[textalign=left verticalalign=top];
		columns

			%do i=1 %to &amp;amp;nombre_var;
				VAR&amp;amp;i.
			%end;
		;

		
		compute VAR7;

			if anydigit(VAR1) then
				do;
					call define(_col_,'format','percent8.2');
				end;
		endcomp;

		compute VAR2;

			if anydigit(VAR1) then
				do;
					call define(_col_,'url',VAR2 );
					call define(_col_,'style','style={textdecoration=underline color=blue}');
				end;
			else
				do;
					call define(_ROW_, "style", "STYLE=[BACKGROUND=#00acee font_size = 11pt font_face = 'Arial' font_weight = bold color=white ]");
				end;
		endcomp;
	run;

	ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-define-how-to-assign-the-percent-format/m-p/698712#M213708</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-11-13T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Call define: how to assign the percent format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-define-how-to-assign-the-percent-format/m-p/698718#M213709</link>
      <description>&lt;P&gt;As you export the output to excel you should change the cells' format in excel itself.&lt;/P&gt;
&lt;P&gt;II don't know if it can be done in sas.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-define-how-to-assign-the-percent-format/m-p/698718#M213709</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-11-13T16:59:26Z</dc:date>
    </item>
  </channel>
</rss>

