<?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: My results are saying there are 0 observations and my formats are not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778646#M247876</link>
    <description>&lt;P&gt;I got that fixed by technical support now I am trying to figure out why the variables and observations still cannot be found unfortunately.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 00:38:00 GMT</pubDate>
    <dc:creator>Tisha1997</dc:creator>
    <dc:date>2021-11-05T00:38:00Z</dc:date>
    <item>
      <title>My results are saying there are 0 observations and my formats are not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778419#M247770</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;LIBNAME Mydata "C:\Users\tisha\Downloads\NSCH2019_SAS_CAHMI_DRC";
RUN;
proc contents data=Mydata.Nsch2019;
run;

Data Mydata;
Set Mydata.Nsch2019;
Run;

INSTY = InsType_19*1;
FORGON = nom25ForgoneHC_19*1;
SC_AGE_YEARS_L = SC_AGE_YEARS*1;
SC_SEX_L = SC_Sex*1;
SC_HISPANIC_R_L = SC_HISPANIC_R*1;
SC_RACE_R_L = SC_RACE_R*1;
FPL_I1_L = FPL_I1*1;
EDUCFO = AdultEduc_19*1;
INSURAN = npm15AdIns_19*1;
SYSTCAR = SystCare2_19*1;
NOGAP = InsGap_19*1;
run;

Proc logistic data = Nsch.Nsch2019;
class SC_AGE_YEARS (ref = '1')/ param = ref;
model nom25ForgoneHC_19 = SC_AGE_YEARS /link = logit;
run;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Shown in the results there are observations and variables available but when I run my code the only thing that come available is the variables. Also, I am changing my variables within the dataset from categorical to numerical but it seem to not be able to find my formats&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 04:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778419#M247770</guid>
      <dc:creator>Tisha1997</dc:creator>
      <dc:date>2021-11-04T04:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: My results are saying there are 0 observations and my formats are not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778422#M247771</link>
      <description>&lt;P&gt;The first error you get is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1636003288878.png" style="width: 510px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65397i681819526587C767/image-dimensions/510x46?v=v2" width="510" height="46" role="button" title="Patrick_0-1636003288878.png" alt="Patrick_0-1636003288878.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Don't even look further before you haven't fixed this one. It looks like your SAS profile is corrupted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is a personal installation then terminate your SAS session, go to the folder libref SASUSER points to, backup the folder, delete all its content and then try again running your SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is not your personal installation then contact your SAS administrator.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 03:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778422#M247771</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-11-05T03:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: My results are saying there are 0 observations and my formats are not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778493#M247802</link>
      <description>&lt;P&gt;Without even opening your log:&lt;/P&gt;
&lt;PRE&gt;Data Mydata;
Set Mydata.Nsch2019;
&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/FONT&gt;

INSTY = InsType_19*1;
FORGON = nom25ForgoneHC_19*1;
SC_AGE_YEARS_L = SC_AGE_YEARS*1;
SC_SEX_L = SC_Sex*1;
SC_HISPANIC_R_L = SC_HISPANIC_R*1;
SC_RACE_R_L = SC_RACE_R*1;
FPL_I1_L = FPL_I1*1;
EDUCFO = AdultEduc_19*1;
INSURAN = npm15AdIns_19*1;
SYSTCAR = SystCare2_19*1;
NOGAP = InsGap_19*1;
run;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;The highlighted RUN will cause errors for the next assignment statements because you have ended the Data step and the next statements until the "run" do not have a procedure or data step to be associated with. So your Mydata set only copied the Mydata.Nsc2019 data set and had none of the transformations or variable creations applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all of those *1 are to create numeric variables strongly suggest using the INPUT function instead to avoid all the "character values were converted to numeric" notes in the log. For an example:&lt;/P&gt;
&lt;PRE&gt;INSTY = input (InsType_19, f12.);&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Nov 2021 14:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778493#M247802</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-04T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: My results are saying there are 0 observations and my formats are not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778646#M247876</link>
      <description>&lt;P&gt;I got that fixed by technical support now I am trying to figure out why the variables and observations still cannot be found unfortunately.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 00:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778646#M247876</guid>
      <dc:creator>Tisha1997</dc:creator>
      <dc:date>2021-11-05T00:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: My results are saying there are 0 observations and my formats are not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778663#M247887</link>
      <description>&lt;P&gt;You are missing all the necessary formats for your variables. Check with the source how you can obtain those formats.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 06:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/My-results-are-saying-there-are-0-observations-and-my-formats/m-p/778663#M247887</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-05T06:08:41Z</dc:date>
    </item>
  </channel>
</rss>

