<?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: Macro variables and random blanks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-variables-and-random-blanks/m-p/303513#M64492</link>
    <description>&lt;P&gt;Thank you ballardw, discovered this was the cause but in a proceeding piece of code which had thrown out everything later on.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2016 08:46:28 GMT</pubDate>
    <dc:creator>SteveS</dc:creator>
    <dc:date>2016-10-10T08:46:28Z</dc:date>
    <item>
      <title>Macro variables and random blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variables-and-random-blanks/m-p/302352#M64140</link>
      <description>&lt;P&gt;One of my colleagues has been running some code and &lt;SPAN&gt;intermittently&lt;/SPAN&gt; the macro variables when being created using %let or called with %put have random blanks meaning they do not resolve properly. Does anyone know why this might be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is being submitted remotely from PC SAS 9.2 to Linux box&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Code&lt;/U&gt;&lt;/P&gt;&lt;P&gt;rsubmit;&lt;/P&gt;&lt;P&gt;/* ASSIGN START AND END DATES TO EXAMINE */;&lt;/P&gt;&lt;P&gt;%let st_dt=%sysfunc(intnx(Month,&amp;amp;rep_dt,-3,B),date9.);&lt;/P&gt;&lt;P&gt;%let en_dt=&amp;amp;rep_dt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;st_dt, &amp;amp;en_dt;&lt;/P&gt;&lt;P&gt;Endrsubmit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;The log returned&lt;/U&gt;&lt;/P&gt;&lt;P&gt;775&amp;nbsp; /* ASSIGN START AND END DATES TO EXAMINE */;&lt;/P&gt;&lt;P&gt;776&amp;nbsp; %let st_dt=%sysfunc(intnx(Month,&amp;amp;rep_dt,-3,B),date9.);&lt;/P&gt;&lt;P&gt;777&amp;nbsp; %let en_dt=&amp;amp;rep_dt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;778&amp;nbsp; %put&amp;amp; st_dt,&amp;amp; en_dt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; st_dt,&amp;amp; en_dt&lt;/P&gt;&lt;P&gt;NOTE: Remote submit to SASUNIX complete.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 14:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variables-and-random-blanks/m-p/302352#M64140</guid>
      <dc:creator>SteveS</dc:creator>
      <dc:date>2016-10-04T14:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variables and random blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variables-and-random-blanks/m-p/302356#M64141</link>
      <description>&lt;P&gt;When I see something like that usually&amp;nbsp;I ask if the code was copied from somewhere, like a website. There are apparently interactions with copy and paste from different sites that will insert invisible characters. Depending on the type of code they generate syntax errors or just goofy results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the source code file and see if you can delete a character after thein the %PUT statement&amp;nbsp;&amp;amp; but the letter S or E remain.&lt;/P&gt;
&lt;P&gt;Generally the solution is to type from scratch over the affected areas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 14:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variables-and-random-blanks/m-p/302356#M64141</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-04T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variables and random blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variables-and-random-blanks/m-p/303513#M64492</link>
      <description>&lt;P&gt;Thank you ballardw, discovered this was the cause but in a proceeding piece of code which had thrown out everything later on.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 08:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variables-and-random-blanks/m-p/303513#M64492</guid>
      <dc:creator>SteveS</dc:creator>
      <dc:date>2016-10-10T08:46:28Z</dc:date>
    </item>
  </channel>
</rss>

