<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442051#M282656</link>
    <description>&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so,&lt;/P&gt;&lt;P&gt;I use my university desk top again to continue,&lt;/P&gt;&lt;P&gt;and I encountered problem again.&lt;/P&gt;&lt;P&gt;(for previous months I'have used Sas Studio because I use Mac&lt;/P&gt;&lt;P&gt;but I got some data sets not easily access so I changed to SAS 9.2&lt;/P&gt;&lt;P&gt;I really need some help..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same problem again.&lt;/P&gt;&lt;P&gt;It is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata=C:\Users\jc3992\MySASData;
libname snow "&amp;amp;dirdata";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the LOG is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;4    %let dirdata=C:\Users\jc3992\MySASData;
5    libname snow "&amp;amp;dirdata";
NOTE: Library SNOW does not exist.
6    run;

&lt;/PRE&gt;&lt;P&gt;I have checked the folder,&lt;/P&gt;&lt;P&gt;it showed it does not exist.&lt;/P&gt;&lt;P&gt;Would you mind helping me out with this ?&lt;/P&gt;&lt;P&gt;I can hardly move on with these issues &amp;gt;"&amp;lt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
    <pubDate>Sat, 03 Mar 2018 15:29:02 GMT</pubDate>
    <dc:creator>jc3992</dc:creator>
    <dc:date>2018-03-03T15:29:02Z</dc:date>
    <item>
      <title>Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441942#M282651</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata="C:\Users\jc3992\Downloads";
libname snow "&amp;amp;dirdata";
/*1*/
data snow.snowfall;
proc import "&amp;amp;dirdata.snow.sas7bdat";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I changed to SAS 9.2 from University Edition because I could not read the full length of a data set by SAS Studio,&lt;/P&gt;&lt;P&gt;thus I am not familiar with setting a permanent library.&lt;/P&gt;&lt;P&gt;I used the code above to import a data set in a sas. file&lt;/P&gt;&lt;P&gt;and the LOG showed this:&lt;/P&gt;&lt;PRE&gt;77   %let dirdata="C:\Users\jc3992\Downloads";
78   libname snow "&amp;amp;dirdata";
NOTE: Line generated by the macro variable "DIRDATA".
1     ""C:\Users\jc3992\Downloads"
      --
      49
        -
        22

      --
      49
ERROR: Libref SNOW is not assigned.
ERROR: Error in the LIBNAME statement.
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
             release.  Inserting white space between a quoted string and the succeeding
             identifier is recommended.

ERROR 22-7: Invalid option name C.

79   /*1*/
80   data snow.snowfall;

ERROR: Libref SNOW is not assigned.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds



NOTE: PROCEDURE IMPORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

NOTE: The SAS System stopped processing this step because of errors.
81   proc import "&amp;amp;dirdata.snow.sas7bdat";
NOTE: Line generated by the macro variable "DIRDATA".
1     ""C:\Users\jc3992\Downloads"snow.sas7bdat
      --
      49
      22
      76
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
             release.  Inserting white space between a quoted string and the succeeding
             identifier is recommended.

ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS,
              DEBUG, FILE, OUT, REPLACE, TABLE, _DEBUG_.

ERROR 76-322: Syntax error, statement will be ignored.

82   run;


&lt;/PRE&gt;&lt;P&gt;May I ask how can I assign the libref snow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 22:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441942#M282651</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-02T22:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441948#M282652</link>
      <description>&lt;P&gt;remove the quotes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; %let dirdata=C:\Users\jc3992\Downloads;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 22:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441948#M282652</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-03-02T22:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441952#M282653</link>
      <description>&lt;P&gt;It worked after I struggled the whole afternoon lol&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 22:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441952#M282653</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-02T22:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441959#M282654</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata=C:\Users\jc3992\Downloads;
libname snow "&amp;amp;dirdata";
run;

/*1*/
data snow.snowfall;
set "&amp;amp;dirdata.Tmp4.Snow";
Year = INPUT((SUBSTR(Season, 1, length(Season)-3)),4.); 
ARRAY month (10) Sep--Total;
DO i=1 to 10;
if month(i)=. then month(i)=0;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now the data set is in the Tmp4 file in my dirdata file.&lt;/P&gt;&lt;P&gt;I want to create a graph of the snowfalls for November December January February and March v.s. Year&lt;/P&gt;&lt;P&gt;The part of the data set is as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snow.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18941i02FC7C6A0BC680ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="snow.jpg" alt="snow.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And after I ran the code,&lt;/P&gt;&lt;P&gt;the Log showed as below:&lt;/P&gt;&lt;PRE&gt;168  %let dirdata=C:\Users\jc3992\Downloads;
169  libname snow "&amp;amp;dirdata";
NOTE: Libref SNOW refers to the same physical library as TMP4.
NOTE: Libref SNOW was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Users\jc3992\Downloads
170  run;

171  %let dirdata=C:\Users\jc3992\Downloads;
172  libname snow "&amp;amp;dirdata";
NOTE: Libref SNOW refers to the same physical library as TMP4.
NOTE: Libref SNOW was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Users\jc3992\Downloads
173  run;
174
175  /*1*/
176  data snow.snowfall;
177  set "&amp;amp;dirdata.Tmp4.Snow";
ERROR: Extension for physical file name "C:\Users\jc3992\DownloadsTmp4.Snow" does not
       correspond to a valid member type.
178  Year = INPUT((SUBSTR(Season, 1, length(Season)-3)),4.);
179  ARRAY month (10) Sep--Total;
NOTE: The array month has the same name as a SAS-supplied or user-defined function.
      Parentheses following this name are treated as array references and not function
      references.
ERROR: Variable Sep cannot be found on the list of previously defined variables.
ERROR: Too few variables defined for the dimension(s) specified for the array month.
180  DO i=1 to 10;
181  if month(i)=. then month(i)=0;
182  end;
183  run;

NOTE: Numeric values have been converted to character values at the places given by:
      (Line):(Column).
      178:22   178:40
NOTE: Character values have been converted to numeric values at the places given by:
      (Line):(Column).
      181:4
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set SNOW.SNOWFALL may be incomplete.  When this step was stopped there were 0
         observations and 3 variables.
WARNING: Data set SNOW.SNOWFALL was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


&lt;/PRE&gt;&lt;P&gt;May I ask what did it mean by "a valid member type"?&lt;/P&gt;&lt;P&gt;And what can I do to "Array" command to make this work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions and hints would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441959#M282654</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-02T23:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441960#M282655</link>
      <description>&lt;P&gt;first off, this is wrong&lt;/P&gt;&lt;PRE&gt;data snow.snowfall;
177  set "&amp;amp;dirdata.Tmp4.Snow";&lt;/PRE&gt;&lt;P&gt;should be&lt;/P&gt;&lt;PRE&gt;data snow.snowfall;
177  set &amp;amp;dirdata..Tmp4;&lt;/PRE&gt;&lt;PRE class=" language-sas"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;The naming convention is &lt;STRONG&gt;libref.sasdatasetname&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Your libref is snow, so it should be &lt;STRONG&gt;snow.datasetname&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/441960#M282655</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-03-02T23:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442051#M282656</link>
      <description>&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so,&lt;/P&gt;&lt;P&gt;I use my university desk top again to continue,&lt;/P&gt;&lt;P&gt;and I encountered problem again.&lt;/P&gt;&lt;P&gt;(for previous months I'have used Sas Studio because I use Mac&lt;/P&gt;&lt;P&gt;but I got some data sets not easily access so I changed to SAS 9.2&lt;/P&gt;&lt;P&gt;I really need some help..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same problem again.&lt;/P&gt;&lt;P&gt;It is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata=C:\Users\jc3992\MySASData;
libname snow "&amp;amp;dirdata";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the LOG is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;4    %let dirdata=C:\Users\jc3992\MySASData;
5    libname snow "&amp;amp;dirdata";
NOTE: Library SNOW does not exist.
6    run;

&lt;/PRE&gt;&lt;P&gt;I have checked the folder,&lt;/P&gt;&lt;P&gt;it showed it does not exist.&lt;/P&gt;&lt;P&gt;Would you mind helping me out with this ?&lt;/P&gt;&lt;P&gt;I can hardly move on with these issues &amp;gt;"&amp;lt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 15:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442051#M282656</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-03T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442056#M282657</link>
      <description>&lt;P&gt;Good morning, Give me an hour or so, I have just woken up, Let me get to my college lab and post you some clear demonstrations. I do not have sas at home I'm afraid.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 16:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442056#M282657</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-03-03T16:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442068#M282658</link>
      <description>&lt;P&gt;I succeeded!^__^&lt;/P&gt;&lt;P&gt;Thanks for your kind help~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I ask you what command I can use if I am going to combine data to some categories.&lt;/P&gt;&lt;P&gt;For instance, I have a data set listing every single years, months in every year, and quantity of snowfall for each month in each year,&lt;/P&gt;&lt;P&gt;and now I am going to combine these to three columns named "Year" "Month" and "Snowfall"&lt;/P&gt;&lt;P&gt;What would you do with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!:)&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 17:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442068#M282658</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-03T17:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442081#M282659</link>
      <description>&lt;P&gt;You need to learn the sas concepts of combining datasets. It's not just about command or statement. It's about how you approach a solution with a concept,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.albany.edu/~msz03/epi514/notes/p121_142.pdf" target="_blank"&gt;https://www.albany.edu/~msz03/epi514/notes/p121_142.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www-personal.umich.edu/~kwelch/b600/2012/Combining%20SAS%20Data%20Sets.pdf" target="_blank"&gt;http://www-personal.umich.edu/~kwelch/b600/2012/Combining%20SAS%20Data%20Sets.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 19:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/442081#M282659</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-03-03T19:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/547290#M282660</link>
      <description>&lt;P&gt;When I want to merge the PISA data from 2015 I get the sign that 'Libref is not assigned'.&lt;/P&gt;&lt;P&gt;I don't know what I do wrong and tried a lot of things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody here help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="libref not assigned d.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28338i9C4481B08EFB970A/image-size/large?v=v2&amp;amp;px=999" role="button" title="libref not assigned d.PNG" alt="libref not assigned d.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="libref not assigned.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28339iAD81636DDAF5CD96/image-size/large?v=v2&amp;amp;px=999" role="button" title="libref not assigned.PNG" alt="libref not assigned.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 18:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/547290#M282660</guid>
      <dc:creator>FraukevdRijt</dc:creator>
      <dc:date>2019-03-29T18:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Libref is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/547298#M282661</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268559"&gt;@FraukevdRijt&lt;/a&gt;&amp;nbsp; &amp;nbsp;Review your libname statement carefully. You will notice you missed to assign a libref after the keyword libname before the 'path'&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 18:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libref-is-not-assigned/m-p/547298#M282661</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-29T18:34:31Z</dc:date>
    </item>
  </channel>
</rss>

