<?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 for sas7dbat and sas files from DHS datasets in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515876#M3035</link>
    <description>SAS University Edition. SAS7BDat file from. DHS site, a SAS7bdat table. I am working off the table and can code from here. Though it has a lib pathway once uploaded, the columns do not show up unless I work off the work.query pathway. I am ok with this as long as I can work with the data.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;ebphd&lt;BR /&gt;</description>
    <pubDate>Mon, 26 Nov 2018 02:36:10 GMT</pubDate>
    <dc:creator>ebphd</dc:creator>
    <dc:date>2018-11-26T02:36:10Z</dc:date>
    <item>
      <title>libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514383#M2726</link>
      <description>&lt;P&gt;I have a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sas&amp;nbsp;and a sas7dbat file from a DHS database. I have successfully uploaded to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;myfolders, and can open the sas7dbat as well as the sas&amp;nbsp;file dataset, but unable to create the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;libname&amp;nbsp;so that I can work with the data. Below is my code. The first line came with the data and is the origin of the raw data from DHS. the sas7dbat has the variables with columns. I am using the latest SAS University edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname user 'C:\COUNTRIES\PH70';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;libname PHFW71FL "c:/folders/myfolders/";&lt;BR /&gt;data PHFW71FL;&lt;BR /&gt;infile "/folders/myfolders/PHFW71FL.SAS7BDAT";&lt;BR /&gt;PROC PRINT data = PHFW71FL;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514383#M2726</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-19T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514384#M2727</link>
      <description>&lt;P&gt;I am guessing from the code you posted that you are using SAS University Edition?&amp;nbsp; If so you need to point your libname to the folders area, per the instructions and video training you get when you get the software.&amp;nbsp; C: does not exist in terms of SAS UE which is all on a virtual image.&amp;nbsp; I would highly recommend you go through the videos and training materials which will cover all of why your code is wrong in several places, but some tips:&lt;/P&gt;
&lt;PRE&gt;libname user 'C:\COUNTRIES\PH70';    &amp;lt;- needs to point to /folders/myfolders (acutally, remove, as dup of other libname)
RUN;     &amp;lt;- is not needed, remove.

libname PHFW71FL "c:/folders/myfolders/";    &amp;lt;- needs to point to /folders/myfolders
data PHFW71FL;
infile "/folders/myfolders/PHFW71FL.SAS7BDAT";  &amp;lt;- you do not infile datasets, you simply set &amp;lt;libaname&amp;gt;.&amp;lt;dataset&amp;gt;; 
&amp;lt;-  Missing run;, good programming practice = always finish blocks
PROC PRINT data = PHFW71FL;  &amp;lt;- not needed, remove.
RUN;&lt;/PRE&gt;
&lt;P&gt;Also, avoid coding in upperase, it makes code harder to read.&amp;nbsp; Your final code will look something like (and note this does nothing but create a duplicate dataset from your input):&lt;/P&gt;
&lt;PRE&gt;libname phfw71fl "/folders/myfolders";

data want;
  set phfw71fl.phfw71fl;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514384#M2727</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-19T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514385#M2728</link>
      <description>Thanks. I will try this. I just need to start working with the variables.&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514385#M2728</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-19T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514392#M2729</link>
      <description>&lt;P&gt;To start working with a tool, you need to know how to use the tool.&amp;nbsp; Learning the basics before jumping in will get you going faster, than trying to work it all out as you go along.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 10:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514392#M2729</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-19T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514491#M2750</link>
      <description>&lt;P&gt;Yes, thanks.&lt;/P&gt;&lt;P&gt;I have a basic understanding of sas, but now working with a dataset that I need to clean up (class project). the sas&amp;nbsp;file does not have the columns, but the sas7bdat does have the columns. I want to work off of the sas7dbat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the code provided and here is the log after I ran the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 libname phfw7lfl "/folders/myfolders";&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref PHFW7LFL was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Physical Name: /folders/myfolders"&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 data want;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 set phfw71fl.phfw71fl;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Libref PHFW71FL is not assigned.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.WANT may be incomplete. When this step was stopped there were 0 observations and 0 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;Can I access the uploaded sas7bdat file? Here is the code that came with the table:&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.query AS&lt;BR /&gt;SELECT FW101 , FW000 , FW102 , FW103 , FW104 , FW105 , FW106 , FW107 , FW108 , FW109 , FW110 , FW111 , FW112 , FW113A , FW113B , FW113C , FW113D , FW113E , FW113F , FW113G , FW113H , FW113I , FW113J , FW113K , FW113L , FW113M , FW113X , FW113Y , FW114 , FW115 FROM _TEMP0.PHFW71FL;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;PROC DATASETS NOLIST NODETAILS;&lt;BR /&gt;CONTENTS DATA=WORK.query OUT=WORK.details;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC PRINT DATA=WORK.details;&lt;BR /&gt;RUN;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Nov 2018 16:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514491#M2750</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-19T16:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514520#M2757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The libname was successfully assigned as &lt;FONT face="courier new,courier"&gt;PHFW7&lt;FONT color="#ff0000"&gt;L&lt;/FONT&gt;FL&lt;/FONT&gt;, but your set statement refers to libref &lt;FONT face="courier new,courier"&gt;PHFW7&lt;FONT color="#ff0000"&gt;1&lt;/FONT&gt;FL&amp;nbsp;&lt;/FONT&gt;(used a "1" instead of "L" in the middle). Theses two librefs need to be the same so perhaps copy and paste one to the other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 18:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514520#M2757</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2018-11-19T18:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514557#M2759</link>
      <description>&lt;P&gt;Yes, I did that, but I also need to work with the sas7bdat file, as these have the columns. The sas&amp;nbsp;file that was sent just has the raw data. How can I transfer that sas7bdat file so that I can work with the data? The code for the table is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.query AS&lt;BR /&gt;SELECT FW101 , FW000 , FW102 , FW103 , FW104 , FW105 , FW106 , FW107 , FW108 , FW109 , FW110 , FW111 , FW112 , FW113A , FW113B , FW113C , FW113D , FW113E , FW113F , FW113G , FW113H , FW113I , FW113J , FW113K , FW113L , FW113M , FW113X , FW113Y , FW114 , FW115 FROM _TEMP0.PHFW71FL;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;PROC DATASETS NOLIST NODETAILS;&lt;BR /&gt;CONTENTS DATA=WORK.query OUT=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The datafile name is PHWF71FL.SAS71bdat. Do I need to export to an excel or csv and then import again, as I downloaded from the DHS website with these file names?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514557#M2759</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-19T19:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514558#M2760</link>
      <description>&lt;P&gt;Yes, I did that, but I also need to work with the sas7bdat file, as these have the columns. The sas&amp;nbsp;file that was sent just has the raw data. How can I transfer that sas7bdat file so that I can work with the data? The code for the table is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.query AS&lt;BR /&gt;SELECT FW101 , FW000 , FW102 , FW103 , FW104 , FW105 , FW106 , FW107 , FW108 , FW109 , FW110 , FW111 , FW112 , FW113A , FW113B , FW113C , FW113D , FW113E , FW113F , FW113G , FW113H , FW113I , FW113J , FW113K , FW113L , FW113M , FW113X , FW113Y , FW114 , FW115 FROM _TEMP0.PHFW71FL;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;PROC DATASETS NOLIST NODETAILS;&lt;BR /&gt;CONTENTS DATA=WORK.query OUT=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data file name is PHWF71FL.SAS71bdat. Do I need to export to an excel or csv and then import again, as I downloaded from the DHS website with these file names?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514558#M2760</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-19T19:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514573#M2762</link>
      <description>&lt;P&gt;If the filename is really in all uppercase letters then you will not be able to read using SAS on unix.&lt;/P&gt;
&lt;P&gt;You will need to rename to file to use all lowercase letters.&lt;/P&gt;
&lt;P&gt;Otherwise SAS will not be able to see the file.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514573#M2762</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-19T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514612#M2767</link>
      <description>&lt;P&gt;I have been using uppercase for other codes. I have the university edition.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 22:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514612#M2767</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-19T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514652#M2775</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/247267"&gt;@ebphd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have been using uppercase for other codes. I have the university edition.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It doesn't matter what case you use in the CODE.&amp;nbsp; But the name of the physical file on the unix disk needs be in all lowercase letters.&lt;/P&gt;
&lt;P&gt;If the file you downloaded had been made (or used) on a PC then it might have some uppercase letters in its name. On unix that file will be basically invisible to SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 01:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514652#M2775</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-20T01:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514693#M2784</link>
      <description>&lt;P&gt;I would once again point you to my original post above.&amp;nbsp; This is the most basics of tasks in this software, if you cannot do this, then you will not be able to do anything else in the system.&lt;/P&gt;
&lt;PRE&gt;libname mylibref "/folders/myfolders";

data want;
  set mylibref.phfw71fl;
run;&lt;/PRE&gt;
&lt;P&gt;You will see that I create a reference to mylibref (I changed it so its clear) as a path on the virtual machine.&amp;nbsp; This is your library reference and once assigned you will see any files in that area in the library viewer.&amp;nbsp; I can refer to files within that area using the reference mylibref followed by a dot, then the dataset name.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Uppercase should be lower case as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;.&amp;nbsp; In fact it is important to remember that case does have meaning in various aspects, in this case for the operating system, in case of upper case code its the person reading it.&amp;nbsp; Now the code you posted (and note how I use the code window which is the {i} above post area) should be changed to use your librefence:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table query as
  select FW101 , FW000 , FW102 , FW103 , FW104 , FW105 , FW106 , FW107 , FW108 , FW109 , FW110 , FW111 ,&lt;BR /&gt;         FW112 , FW113A , FW113B , FW113C , FW113D , FW113E , FW113F , FW113G , FW113H , FW113I , &lt;BR /&gt;         FW113J , FW113K , FW113L , FW113M , FW113X , FW113Y , FW114 , FW115 
  from mylibref.phfw71fl;
quit;&lt;/PRE&gt;
&lt;P&gt;Will create a table called query in the SAS created temporary work library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seriously though, if your going to do anything with SAS then go through the videos which explain all this in detail, read the help and documentation.&amp;nbsp; Otherwise your not going to get anywhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 08:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/514693#M2784</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-20T08:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515726#M2980</link>
      <description>&lt;P&gt;Thanks. This particular file did not respond to any of the suggestions for a lib name. (I had a statistician work on it too, but did not capture all the data). I am working off the code that came with the sas7bdat file, through the work.query pathway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ebphd&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 16:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515726#M2980</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-24T16:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515740#M2984</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/247267"&gt;@ebphd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks. This particular file did not respond to any of the suggestions for a lib name. (I had a statistician work on it too, but did not capture all the data). I am working off the code that came with the sas7bdat file, through the work.query pathway.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ebphd&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is it that you want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you running SAS?&amp;nbsp; Are you using SAS/Studio?&amp;nbsp; Enterprise Guide?&amp;nbsp; SAS Display Manager?&amp;nbsp; Something else?&lt;/P&gt;
&lt;P&gt;Did you download the SAS university edition? If so then you are using SAS/Studio and the actual SAS process is running in a unix virtual machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What files do you actually have?&amp;nbsp; &amp;nbsp;What are their names?&amp;nbsp; What do they contain? Where have you placed them on your machine? Under what path can SAS see them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS dataset will be in a file with sas7bdat extension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS program should be in a file with sas extension, but since it is just text the extension does not matter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The raw data would normally be in a file with txt, dat, csv extension. If you have raw data then you need a SAS program to read it into a SAS dataset.&amp;nbsp; Or you might have the data in some other format, like an Excel spreadsheet which would have either an XLSX or XLS extension.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 20:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515740#M2984</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-24T20:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515876#M3035</link>
      <description>SAS University Edition. SAS7BDat file from. DHS site, a SAS7bdat table. I am working off the table and can code from here. Though it has a lib pathway once uploaded, the columns do not show up unless I work off the work.query pathway. I am ok with this as long as I can work with the data.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;ebphd&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Nov 2018 02:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515876#M3035</guid>
      <dc:creator>ebphd</dc:creator>
      <dc:date>2018-11-26T02:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: libname for sas7dbat and sas files from DHS datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515890#M3039</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/247267"&gt;@ebphd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;SAS University Edition. SAS7BDat file from. DHS site, a SAS7bdat table. I am working off the table and can code from here. Though it has a lib pathway once uploaded, the columns do not show up unless I work off the work.query pathway. I am ok with this as long as I can work with the data.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;ebphd&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A file with sas7bdat as the extension is a SAS dataset. It should consist of many observations and variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will assume that by TABLE you mean DATASET and not some type of report or spreadsheet you want to create.&amp;nbsp; And by COLUMN you mean VARIABLE .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp; you can run code to query the dataset to make a work dataset then you should be able to see the variables in the SAS/Studio interface without any need to first copy some of it into a separate dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you are confused because in SAS/Studio when you run code that generates a dataset it automatically opens a window that lets you view the new dataset your code created?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can open the same type of window by just finding the original dataset in the left hand panel and opening it from there, without having to run any code (other the LIBNAME statement that makes the libref that points to the directory&amp;nbsp;that contains the file that is the SAS dataset).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 05:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/libname-for-sas7dbat-and-sas-files-from-DHS-datasets/m-p/515890#M3039</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-26T05:08:57Z</dc:date>
    </item>
  </channel>
</rss>

