<?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: Lesson 2: Accessing Data, Activity in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Lesson-2-Accessing-Data-Activity/m-p/651933#M22434</link>
    <description>&lt;P&gt;please follow below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* because Excel field names often have spaces */
options validvarname=any;
 
libname np XLSX '/home/userid/EPG194/data/np_info.xlsx';
 
/* discover member (DATA) names */
proc datasets lib=np; quit;
 
libname np CLEAR;

Once the library is assigned, we can read the contents of a spreadsheet into a new SAS data set:

/* because Excel field names often have spaces */
options validvarname=any;
 
libname np XLSX '/home/userid/EPG194/data/np_info.xlsx';
 
/* read in one of the tables */
data datasetname;
  set np.datasetname;
run;
 
libname np CLEAR;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 30 May 2020 07:05:53 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2020-05-30T07:05:53Z</dc:date>
    <item>
      <title>Lesson 2: Accessing Data, Activity</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Lesson-2-Accessing-Data-Activity/m-p/651932#M22433</link>
      <description>&lt;P&gt;&lt;STRONG&gt;This is the activity:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Write a LIBNAME statement to create a library named &lt;/SPAN&gt;&lt;STRONG&gt;NP&lt;/STRONG&gt;&lt;SPAN&gt; that reads &lt;/SPAN&gt;&lt;STRONG&gt;np_info.xlsx&lt;/STRONG&gt;&lt;SPAN&gt; in the course data as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SAS Studio: Specify the full path to your &lt;STRONG&gt;EPG194/data&lt;/STRONG&gt; folder and the complete file name.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My code is this and it should be the right&amp;nbsp;file path but still there are no tables in the&amp;nbsp;NP library.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;libname np xlsx "/home/userid/EPG194/data/np_info.xlsx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 06:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Lesson-2-Accessing-Data-Activity/m-p/651932#M22433</guid>
      <dc:creator>potato</dc:creator>
      <dc:date>2020-05-30T06:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 2: Accessing Data, Activity</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Lesson-2-Accessing-Data-Activity/m-p/651933#M22434</link>
      <description>&lt;P&gt;please follow below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* because Excel field names often have spaces */
options validvarname=any;
 
libname np XLSX '/home/userid/EPG194/data/np_info.xlsx';
 
/* discover member (DATA) names */
proc datasets lib=np; quit;
 
libname np CLEAR;

Once the library is assigned, we can read the contents of a spreadsheet into a new SAS data set:

/* because Excel field names often have spaces */
options validvarname=any;
 
libname np XLSX '/home/userid/EPG194/data/np_info.xlsx';
 
/* read in one of the tables */
data datasetname;
  set np.datasetname;
run;
 
libname np CLEAR;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 May 2020 07:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Lesson-2-Accessing-Data-Activity/m-p/651933#M22434</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-05-30T07:05:53Z</dc:date>
    </item>
  </channel>
</rss>

