<?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 ERROR 22-322: Expecting a name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692677#M211045</link>
    <description>&lt;P&gt;Hello. I had previously used University Edition to convert SAS files to Stata files, and I used the following code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=home/u43327634/NHANES/17_18/DEMO_J.XPT&lt;BR /&gt;file='C:\Users\zachc\Desktop\test.dta'&lt;BR /&gt;dbms=stata&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my institution recently switched over to SAS OnDemand for Academics, and now that code doesn't work. It gives the following error message:&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Expecting a name.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I'm not too fluent in SAS, I really just use it to convert to Stata files. Can you help?&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Thanks,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Zach&lt;/DIV&gt;</description>
    <pubDate>Mon, 19 Oct 2020 19:23:39 GMT</pubDate>
    <dc:creator>ZachC</dc:creator>
    <dc:date>2020-10-19T19:23:39Z</dc:date>
    <item>
      <title>ERROR 22-322: Expecting a name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692677#M211045</link>
      <description>&lt;P&gt;Hello. I had previously used University Edition to convert SAS files to Stata files, and I used the following code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=home/u43327634/NHANES/17_18/DEMO_J.XPT&lt;BR /&gt;file='C:\Users\zachc\Desktop\test.dta'&lt;BR /&gt;dbms=stata&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my institution recently switched over to SAS OnDemand for Academics, and now that code doesn't work. It gives the following error message:&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Expecting a name.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I'm not too fluent in SAS, I really just use it to convert to Stata files. Can you help?&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Thanks,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Zach&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Oct 2020 19:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692677#M211045</guid>
      <dc:creator>ZachC</dc:creator>
      <dc:date>2020-10-19T19:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Expecting a name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692679#M211053</link>
      <description>&lt;P&gt;The DATA= option of the PROC EXPORT statement requires a dataset designation, comprised of (optional) a library name with a dot and the name of the dataset.&lt;/P&gt;
&lt;P&gt;If you have an xpt file, you can define a LIBNAME for that.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 19:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692679#M211053</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-19T19:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Expecting a name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692697#M211067</link>
      <description>&lt;P&gt;Your Data= does not expect an xpt file. It expects a libname.datasetname, such as work.something.&lt;/P&gt;
&lt;P&gt;Your XPT file should have been copied to a library for use.&lt;/P&gt;
&lt;P&gt;I suspect that your code didn't work with an XPT file before either, or if it did the file name was enclosed in quotes.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 20:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692697#M211067</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-19T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Expecting a name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692830#M211145</link>
      <description>&lt;P&gt;Thank you for your reply. I followed the directions for how to set up a libname (&lt;A href="https://support.sas.com/software/products/university-edition/faq/SAS_libname.htm" target="_blank"&gt;https://support.sas.com/software/products/university-edition/faq/SAS_libname.htm&lt;/A&gt;),&amp;nbsp; but now I'm getting another error message when I run the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname DEMO_J '/home/u43327634/NHANES/17_18/';&lt;/P&gt;&lt;P&gt;proc export data=DEMO_J&lt;BR /&gt;file='C:\Users\zachc\Desktop\test.dta'&lt;BR /&gt;dbms=stata&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error Message:&amp;nbsp;&lt;SPAN&gt;ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/C:\Users\zachc\Desktop.dta.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When you say that my XPT file should have been copied to a library for use, I'm not clear on what you mean. My XPT file is located in my SAS Studio file structure. Any more suggestions would be most welcome. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 12:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692830#M211145</guid>
      <dc:creator>ZachC</dc:creator>
      <dc:date>2020-10-20T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Expecting a name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692833#M211147</link>
      <description>&lt;P&gt;In SAS on Demand, you CANNOT access your desktop drive. CANNOT. Please study the "&lt;A href="https://support.sas.com/ondemand/caq_new.html" target="_blank" rel="noopener"&gt;Frequently Asked Questions&lt;/A&gt;":&lt;/P&gt;
&lt;UL class="indent"&gt;
&lt;LI&gt;&lt;SPAN class="accent"&gt;Can I point to local SAS data sets or files using a LIBNAME or a FILENAME statement?&lt;/SPAN&gt;
&lt;DIV&gt;No. The SAS Server is unable to access or recognize the local drives of your PC. If you write a LIBNAME statement or a FILENAME statement that references a local directory path, you will receive processing errors.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use a path in your home directory, same as you did for the LIBNAME, and then download the file with SAS Studio.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 12:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692833#M211147</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-20T12:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Expecting a name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692837#M211151</link>
      <description>&lt;P&gt;In order to use the .xpt file, use a XPORT library:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xpt xport 'home/u43327634/NHANES/17_18/DEMO_J.XPT';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can then treat library XPT like any other SAS library in your code; for instance, it will appear ion the Libraries section of SAS Studio.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 12:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Expecting-a-name/m-p/692837#M211151</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-20T12:37:09Z</dc:date>
    </item>
  </channel>
</rss>

