<?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: ERROR: Libref BETA is not assigned. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887625#M350672</link>
    <description>&lt;P&gt;What should be the meaning of "beta" then? If you want it to be part of the dataset name, do not use a dot, use an underline.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 07:36:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-08-03T07:36:55Z</dc:date>
    <item>
      <title>ERROR: Libref BETA is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887608#M350666</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have updated variables in this data set, but am not able to run regressions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imported a .dta file to SAS and it is not a mydata.sas7bdat file but, I have not idea how to 'read it in' because we've been using INFILE for .txt files all semester.. I tried an alternative approach to accessing the .dta file but anyway, I need to fix how I've brought the data in so that I can run regressions (see below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname mylib '/home/xxxxxxxxxx/sasuser.v94';
proc import out=mylib.mydata datafile='/home/xxxxxxxxxxxxxx/2019 ASR_Public_Use_File.dta' dbms=DTA replace;
run;

proc print data=mylib.mydata;
run;

proc freq data=mylib.mydata;
table _all_;
run;

proc means data=mylib.mydata;
run;

proc contents data=mylib.myformats varnum;
run;
/********************************************************/
/*ATTEMPT TO ACCESS #2*/
proc import out=ASR1 datafile='/home/xxxxxxxxxxx/sasuser.v94/Final Project/2019 ASR_Public_Use_File.dta'
run;

proc contents data=ASR1;
run;

data asr;
set ASR1;
run;
&lt;U&gt;&lt;STRONG&gt;/*** I can make the below edits but then later, running a regression doesn't work***/&lt;/STRONG&gt;&lt;/U&gt;

data asrworking;
set asr(keep=personid numppl qn1f qn1d qn1c qn2a qn4c qn26h qn31f_months qn1jyear qn28a);
run;

data asrworking;
set asrworking;
rename qn1f=sex;
rename qn1d=age;
rename qn1c=married;
rename qn2a=school;
rename qn4c=english;
rename qn26h=childed;
rename qn31f_months=tanf;
rename qn1jyear=arrived;
rename qn28a=health;
run;

data asrworking;
set asrworking;
IF (arrived= .) THEN DELETE;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the LOG for the resultant error when I try a simple OLS regression:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;388        proc reg data=asrworking;
 389        model tanf = male age marr educ engl ceduc d14 d15 d16 d17 d18 healthy numppl / acov hccme=0;
 390        ods output ParameterEstimates=beta.hats;
 391        run;
 
 ERROR: Libref BETA is not assigned.
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE REG used (Total process time):
       real time           0.06 seconds
       user cpu time       0.06 seconds
       system cpu time     0.00 seconds
       memory              2656.12k
       OS Memory           28096.00k
       Timestamp           08/03/2023 03:16:06 AM
       Step Count                        420  Switch Count  2
       Page Faults                       0
       Page Reclaims                     313
       Page Swaps                        0
       Voluntary Context Switches        17
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           312
       
 392        
 393        
 394        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 404        &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 03:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887608#M350666</guid>
      <dc:creator>ameliasalem</dc:creator>
      <dc:date>2023-08-03T03:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Libref BETA is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887610#M350667</link>
      <description>&lt;P&gt;The error message is pretty clear: You're trying to create a table hats under library beta but you don't have a libname statement in your code that assigns such a library.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1691035242955.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86390i383D762AA7F96CEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1691035242955.png" alt="Patrick_0-1691035242955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For testing purposes: Change beta.hats to WORK.hats and see what happens.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 04:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887610#M350667</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-08-03T04:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Libref BETA is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887612#M350668</link>
      <description>&lt;P&gt;That did it and I have the below output - Any time that I would typically use beta then, would I need to use, 'Work'? Would this impact my use of the term 'beta' for labeling parameters when I need to explicitly define exogenous and endogenous variables, etc.,?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameliasalem_0-1691036512515.png" style="width: 582px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86391iE9015ED9DFAC6610/image-dimensions/582x150?v=v2" width="582" height="150" role="button" title="ameliasalem_0-1691036512515.png" alt="ameliasalem_0-1691036512515.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 04:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887612#M350668</guid>
      <dc:creator>ameliasalem</dc:creator>
      <dc:date>2023-08-03T04:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Libref BETA is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887625#M350672</link>
      <description>&lt;P&gt;What should be the meaning of "beta" then? If you want it to be part of the dataset name, do not use a dot, use an underline.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887625#M350672</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-03T07:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Libref BETA is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887813#M350750</link>
      <description>This is what we have been initially trained to use so I am still learning what each character does, or does not do, in SAS.</description>
      <pubDate>Thu, 03 Aug 2023 22:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887813#M350750</guid>
      <dc:creator>ameliasalem</dc:creator>
      <dc:date>2023-08-03T22:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Libref BETA is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887817#M350753</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446384"&gt;@ameliasalem&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;This is what we have been initially trained to use so I am still learning what each character does, or does not do, in SAS.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS names are pretty simple.&amp;nbsp; You can use letters, digits and the underscore character.&amp;nbsp; You cannot start a name with a digit.&amp;nbsp; And the name of a FORMAT or INFORMAT cannot end with a digit (the digits at the end of a format specification is the particular width you want to use this time.).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS names can now be up to 32 bytes long, except for filerefs or librefs which are defined by FILENAME or LIBNAME statements.&amp;nbsp; Those can still only use the original 8 byte limit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 03:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887817#M350753</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-04T03:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Libref BETA is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887818#M350754</link>
      <description>Awesome, this is super helpful. Thank you!</description>
      <pubDate>Fri, 04 Aug 2023 00:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Libref-BETA-is-not-assigned/m-p/887818#M350754</guid>
      <dc:creator>ameliasalem</dc:creator>
      <dc:date>2023-08-04T00:05:14Z</dc:date>
    </item>
  </channel>
</rss>

