<?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 how to assign libref in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-assign-libref/m-p/847712#M36968</link>
    <description>&lt;P&gt;Hi, I am new to this software. I am trying to run a code but its giving me error that "Libref ALB is not assigned". If anyone can help me in this. How do I assign the Libref? I am trying to run the above code&lt;/P&gt;&lt;P&gt;I am attaching the screenshot of error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas sc.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78015iB5A0A0C6078A0F83/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas sc.png" alt="sas sc.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Following is the code I'm trying to run.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data ALB.N; set sample_farwa (keep=_ric date_time Ex_Cntrb_ID price volume bid_price ask_price Exch_Time where=(_ric="ALB.N"));
retain ap;
retain bp;
if Date_Time~=lag(Date_Time) then do; bp=.; ap=.; end;
if bid_price=. then bid_price=bp; else bp=bid_price; 
if ask_price=. then ask_price=ap; else ap=ask_price; 
z=100*mod(price,0.01); run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Dec 2022 03:25:15 GMT</pubDate>
    <dc:creator>farwa</dc:creator>
    <dc:date>2022-12-05T03:25:15Z</dc:date>
    <item>
      <title>how to assign libref</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-assign-libref/m-p/847712#M36968</link>
      <description>&lt;P&gt;Hi, I am new to this software. I am trying to run a code but its giving me error that "Libref ALB is not assigned". If anyone can help me in this. How do I assign the Libref? I am trying to run the above code&lt;/P&gt;&lt;P&gt;I am attaching the screenshot of error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas sc.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78015iB5A0A0C6078A0F83/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas sc.png" alt="sas sc.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Following is the code I'm trying to run.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data ALB.N; set sample_farwa (keep=_ric date_time Ex_Cntrb_ID price volume bid_price ask_price Exch_Time where=(_ric="ALB.N"));
retain ap;
retain bp;
if Date_Time~=lag(Date_Time) then do; bp=.; ap=.; end;
if bid_price=. then bid_price=bp; else bp=bid_price; 
if ask_price=. then ask_price=ap; else ap=ask_price; 
z=100*mod(price,0.01); run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Dec 2022 03:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-assign-libref/m-p/847712#M36968</guid>
      <dc:creator>farwa</dc:creator>
      <dc:date>2022-12-05T03:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign libref</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-assign-libref/m-p/847718#M36970</link>
      <description>&lt;P&gt;Do you actually need to make a permanent dataset at this point?&amp;nbsp; If not then use a member name for the dataset that does not include period, like the name of the dataset you are reading in.&amp;nbsp; Names in SAS should only contain letters, digits and underscore and cannot start with a digit.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ALB_N;
.... &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you do want to make a permanent dataset then you should use a member name that is more meaningful than just the single letter N.&amp;nbsp; &amp;nbsp;First you need to know what directory you want to write the dataset and use that directory name in the LIBNAME statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname alb 'c:\myfiles\mydir\');
data alb.farwa_2 ;
  set sample_farwa ....&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Dec 2022 05:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-assign-libref/m-p/847718#M36970</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-05T05:10:18Z</dc:date>
    </item>
  </channel>
</rss>

