<?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: Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596029#M171567</link>
    <description>&lt;P&gt;Were you trying to do this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname qc2 XLSX "&amp;amp;rf_dpath./&amp;amp;pym6./qc_output_&amp;amp;pym6..xlsx" access=readonly ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 13 Oct 2019 04:16:44 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-10-13T04:16:44Z</dc:date>
    <item>
      <title>Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596027#M171565</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am trying to assign a libref&amp;nbsp;with xlsx engine and seeing the below syntax error.&lt;/P&gt;&lt;P&gt;However, when I run another libname statement which is almost identical to the first one, the libref was&amp;nbsp;successfully assigned.&lt;/P&gt;&lt;P&gt;I need some helps&amp;nbsp;for the below two questions.&amp;nbsp;Any&amp;nbsp;advices are greatly appreciated. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How to fix the error in the first libname statement? (I need to assign the libref to my own user folder as I have write permission to it)&lt;/P&gt;&lt;P&gt;2. Why was the second libname statement could run successfully since it's almost identical to the first one? (I do not have write permission to this folder)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; qc2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;XLSX&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;rf_dpath_me./&amp;amp;pym6./qc_output_&amp;amp;pym6..xlsx"&lt;/FONT&gt; &lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Try to point to my own folder which&amp;nbsp;I have write permission*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;GOPTIONS ACCESSIBLE;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname qc2&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;SYMBOLGEN:&amp;nbsp; Macro variable RF_DPATH_ME resolves to /workspace/users/a12345&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;SYMBOLGEN:&amp;nbsp; Macro variable PYM6 resolves to 201909&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;SYMBOLGEN:&amp;nbsp; Macro variable PYM6 resolves to 201909&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLSX "&amp;amp;rf_dpath_me./&amp;amp;pym6./qc_output_&amp;amp;pym6..xlsx"&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;42&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GOPTIONS NOACCESSIBLE;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ________&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;ERROR: Libref QC2 is not assigned.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;ERROR: Error in the LIBNAME statement.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;ERROR 22-7: Invalid option name GOPTIONS.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the below, the libref was successfully assigned.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; qc2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;XLSX&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;rf_dpath./&amp;amp;pym6./qc_output_&amp;amp;pym6..xlsx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;FONT color="#008000" face="Courier New" size="3"&gt;/*&amp;nbsp;&amp;nbsp;I don't&amp;nbsp;have write permission to this folder*/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;GOPTIONS ACCESSIBLE;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname qc2&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;SYMBOLGEN:&amp;nbsp; Macro variable RF_DPATH resolves to /workspace/data/project&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;SYMBOLGEN:&amp;nbsp; Macro variable PYM6 resolves to 201909&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;SYMBOLGEN:&amp;nbsp; Macro variable PYM6 resolves to 201909&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLSX "&amp;amp;rf_dpath./&amp;amp;pym6./qc_output_&amp;amp;pym6..xlsx";&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;NOTE: Libref QC2 was successfully assigned as follows: &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Engine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLSX &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Physical Name: /workspace/data/project/201909/qc_output_201909.xlsx&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 03:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596027#M171565</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2019-10-13T03:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596029#M171567</link>
      <description>&lt;P&gt;Were you trying to do this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname qc2 XLSX "&amp;amp;rf_dpath./&amp;amp;pym6./qc_output_&amp;amp;pym6..xlsx" access=readonly ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Oct 2019 04:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596029#M171567</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-13T04:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596031#M171569</link>
      <description>Hi Tom. Thanks for your response. No, I need to assign the xlxs file to my user folder as I need to perform some additional steps. For the libname/libref which was successfully assigned, since I don’t have write permission to it, I cannot perform any additional steps. And that’s why the reason I need to change the libname path to my user folder, but it didn’t work.</description>
      <pubDate>Sun, 13 Oct 2019 04:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596031#M171569</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2019-10-13T04:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596032#M171570</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/89004"&gt;@LL5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Tom. Thanks for your response. No, I need to assign the xlxs file to my user folder as I need to perform some additional steps. For the libname/libref which was successfully assigned, since I don’t have write permission to it, I cannot perform any additional steps. And that’s why the reason I need to change the libname path to my user folder, but it didn’t work.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't understand the question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to MAKE a flle in your user folder then use the name of your user file in the name of the file.&lt;/P&gt;
&lt;P&gt;Do you now know where your user folder is?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS is running on Unix then usually you can use ~ as a nickname for your home directory.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xxx xlsx '~/myfile.xlsx';
data xxx.sheet1;
 set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Oct 2019 04:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596032#M171570</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-13T04:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596034#M171572</link>
      <description>&lt;P&gt;Pay attention to the message&lt;/P&gt;
&lt;PRE&gt;ERROR 22-7: Invalid option name GOPTIONS.&lt;/PRE&gt;
&lt;P&gt;it is because you miss a semicolon ( ; ) at the end of the libname statement.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname qc2 XLSX "&amp;amp;rf_dpath_me./&amp;amp;pym6./qc_output_&amp;amp;pym6..xlsx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 04:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596034#M171572</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-10-13T04:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596080#M171581</link>
      <description>&lt;P&gt;Hi Shmuel. Thanks a lot for pointing this out. I am missing a semicolon.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 16:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596080#M171581</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2019-10-13T16:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned with xlsx engine in Libname (Invalid option name GOPTIONS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596081#M171582</link>
      <description>&lt;P&gt;Thanks Tom for your advice.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 16:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned-with-xlsx-engine-in-Libname-Invalid/m-p/596081#M171582</guid>
      <dc:creator>LL5</dc:creator>
      <dc:date>2019-10-13T16:28:56Z</dc:date>
    </item>
  </channel>
</rss>

