<?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: Filename is replaced with blank characters when using %sysexec copy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440270#M109949</link>
    <description>&lt;P&gt;Withdrawing the question. I was able to solve the problem by configuring&amp;nbsp;&lt;SPAN&gt;&amp;amp;path and&amp;nbsp;&amp;amp;Code_lib using %let statement instead of a call symput. When using the latter the &amp;amp;path and &amp;amp;code_lib is set to the length as characterized in the dataset. Thank you for your attention.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 17:32:29 GMT</pubDate>
    <dc:creator>indra1975</dc:creator>
    <dc:date>2018-02-26T17:32:29Z</dc:date>
    <item>
      <title>Filename is replaced with blank characters when using %sysexec copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440214#M109929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am facing a problem with a code that has worked for me before. At the end of every job, I like to archive a copy of the sas codes that were used in the job using the following line:&lt;/P&gt;&lt;P&gt;%sysexec copy "&amp;amp;path.*.sas" "&amp;amp;Code_lib.*"/Y ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where &amp;amp;path and &amp;amp;Code_lib are directory paths.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code executes but the resulting filenames in the &amp;amp;code_lib are like "&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.sas", "&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1_csv.sas" (see attached screenshot). Can somebody please give any pointers to solve this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some additional facts:&lt;/P&gt;&lt;P&gt;- &amp;amp;path and &amp;amp;code_lib are both mapped network drives&lt;/P&gt;&lt;P&gt;- &amp;amp;path is about 87 char in length&lt;/P&gt;&lt;P&gt;- &amp;amp;code_lib is about 130 char in length&lt;/P&gt;&lt;P&gt;- Longest sas file name string is 32 char in length&lt;/P&gt;&lt;P&gt;- Running SAS 9.4 on X64_10PR&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18810iB2B4AF1E1D10ABF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440214#M109929</guid>
      <dc:creator>indra1975</dc:creator>
      <dc:date>2018-02-26T15:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filename is replaced with blank characters when using %sysexec copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440270#M109949</link>
      <description>&lt;P&gt;Withdrawing the question. I was able to solve the problem by configuring&amp;nbsp;&lt;SPAN&gt;&amp;amp;path and&amp;nbsp;&amp;amp;Code_lib using %let statement instead of a call symput. When using the latter the &amp;amp;path and &amp;amp;code_lib is set to the length as characterized in the dataset. Thank you for your attention.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440270#M109949</guid>
      <dc:creator>indra1975</dc:creator>
      <dc:date>2018-02-26T17:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filename is replaced with blank characters when using %sysexec copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440279#M109951</link>
      <description>&lt;P&gt;Unless you need to store leading and/or trailing spaces in your macro variables you should always use newer CALL SYMPUTX() function instead of CALL SYMPUT().&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440279#M109951</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-26T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filename is replaced with blank characters when using %sysexec copy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440339#M109966</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-is-replaced-with-blank-characters-when-using-sysexec/m-p/440339#M109966</guid>
      <dc:creator>indra1975</dc:creator>
      <dc:date>2018-02-26T20:40:15Z</dc:date>
    </item>
  </channel>
</rss>

