<?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: libname xlsx - proc datasets - copying an Excel file created with xlsx engine in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652543#M195924</link>
    <description>&lt;P&gt;To make a name with a blank in it (a practice highly recommended against!) valid, you need to set the option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validmemname=extend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You either ran your proc datasets in a different session, or you have code that resets the option to its default.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2020 13:52:23 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-06-02T13:52:23Z</dc:date>
    <item>
      <title>libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652526#M195918</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the following program in one go, it works properly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*--------------------------------------------------------------------;

libname demo xlsx "&amp;amp;xxdemo./reporting/test.xlsx";

data demo.'All Students'n;
    set sashelp.class;
run;

data demo.'Female'n;
    set sashelp.class (where=(sex='F'));
run;

libname demo;

options validmemname=extend;

libname demo xlsx "&amp;amp;xxtraining./reporting/test.xlsx";

title 'DEMO';
proc print data=demo.'ALL STUDENTS'n noobs;
run;

libname demo;

libname demo xlsx "&amp;amp;xxtraining./reporting/test.xlsx";

proc datasets nolist nodetails;
    copy in=demo out=work;
        select 'ALL STUDENTS'n ;  
    run;
quit;

libname demo;

title 'WORK';
proc print data=work.'ALL STUDENTS'n noobs;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, it I want to run proc datasets in a second run, I get an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: The value ALL STUDENTS is not a valid SAS name.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File WORK.'ALL STUDENTS'n.DATA has not been saved because copy could not be completed.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname demo xlsx "&amp;amp;xxtraining./reporting/test.xlsx";

proc datasets nolist nodetails;
    copy in=demo out=work;
        select 'ALL STUDENTS'n ;  
    run;
quit;

libname demo;

title 'WORK';
proc print data=work.'ALL STUDENTS'n noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are you familiar with this issue and do you how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Véronique&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 13:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652526#M195918</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-06-02T13:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652543#M195924</link>
      <description>&lt;P&gt;To make a name with a blank in it (a practice highly recommended against!) valid, you need to set the option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validmemname=extend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You either ran your proc datasets in a different session, or you have code that resets the option to its default.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 13:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652543#M195924</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-02T13:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652583#M195939</link>
      <description>&lt;P&gt;The option is already active in the example I gave. I'm working on interactive mode.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 15:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652583#M195939</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-06-02T15:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652585#M195940</link>
      <description>&lt;P&gt;ok. I see. The option does not remain active after the first run in SAS Studio. Strange.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 15:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652585#M195940</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-06-02T15:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652598#M195943</link>
      <description>&lt;P&gt;You can find a setting in SAS Studio. Settings - Tables (or Data, I only see a German version where it is "Tabellen").&lt;/P&gt;
&lt;P&gt;There you set the options vor VALIDVARNAME and VALIDMEMNAME, and code for this is sent before every execution. If you turn on "Show Generated Code in Log" in Settings - Code and Log, you can see the relevant code that is automatically sent in your log.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652598#M195943</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-02T16:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652601#M195945</link>
      <description>&lt;P&gt;Could you share a screenshot; it's not an issue if it is in German.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652601#M195945</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-06-02T16:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652608#M195947</link>
      <description>&lt;P&gt;See here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-06-02 um 18.26.16.png"&gt;&lt;img src="https://communities.sas.com/skins/images/8D8B612AA6AB1DC7E9A0812281D56E02/responsive_peak/images/image_not_found.png" alt="Bildschirmfoto 2020-06-02 um 18.26.16.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-06-02 um 18.27.02.png"&gt;&lt;img src="https://communities.sas.com/skins/images/8D8B612AA6AB1DC7E9A0812281D56E02/responsive_peak/images/image_not_found.png" alt="Bildschirmfoto 2020-06-02 um 18.27.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652608#M195947</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-02T16:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652611#M195948</link>
      <description>&lt;P&gt;Danke schön Herr Bremser.&lt;/P&gt;&lt;P&gt;In meiner Version gibt es diese Möglichkeit leider nicht.&lt;/P&gt;&lt;P&gt;Im General, kann ich nur validvarname ändern aber nicht validmemname.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasstudio.JPG" style="width: 319px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40275i36EBCE17BD369D4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasstudio.JPG" alt="sasstudio.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652611#M195948</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-06-02T16:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652622#M195952</link>
      <description>&lt;P&gt;Das müsste unter Taches sein. Welche Version des SAS Studio haben Sie? Meine ist ziemlich aktuell (University Edition).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 17:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652622#M195952</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-02T17:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652629#M195956</link>
      <description>&lt;P&gt;SAS Studio 3.7&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasstudio37.JPG" style="width: 484px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40276iC71FCFF7ECDCA855/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasstudio37.JPG" alt="sasstudio37.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="general.JPG" style="width: 887px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40278i46483876BC3B5945/image-size/large?v=v2&amp;amp;px=999" role="button" title="general.JPG" alt="general.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="taches.JPG" style="width: 846px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40277i6CACCBD5FAEB0ECB/image-size/large?v=v2&amp;amp;px=999" role="button" title="taches.JPG" alt="taches.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 17:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652629#M195956</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-06-02T17:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652636#M195959</link>
      <description>&lt;P&gt;Da wäre ein Upgrade sinnvoll. Die Option wurde mit Version 3.8 eingeführt, siehe&amp;nbsp;&lt;A href="https://support.sas.com/en/software/studio-support.html#41193f64-7919-4800-844a-370aadebfef4" target="_blank" rel="noopener"&gt;https://support.sas.com/en/software/studio-support.html#41193f64-7919-4800-844a-370aadebfef4&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 17:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652636#M195959</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-02T17:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652657#M195968</link>
      <description>&lt;P&gt;Sehr geehrter Herr Bremser,&lt;/P&gt;&lt;P&gt;jetzt ist bei mir SAS Studio 3.8 installiert.&lt;/P&gt;&lt;P&gt;Vielen Dank&lt;/P&gt;&lt;P&gt;Véronique&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasstudio38.JPG" style="width: 906px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40281iF37F367237090559/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasstudio38.JPG" alt="sasstudio38.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 19:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652657#M195968</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-06-02T19:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx - proc datasets - copying an Excel file created with xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652659#M195969</link>
      <description>&lt;P&gt;Na das ging ja schnell! Hauptsache, es geht jetzt.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 20:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xlsx-proc-datasets-copying-an-Excel-file-created-with/m-p/652659#M195969</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-02T20:02:08Z</dc:date>
    </item>
  </channel>
</rss>

