<?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: Here's my code but I'm not getting any errors or results in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591455#M15217</link>
    <description>&lt;P&gt;Thank you!&amp;nbsp; It still didn't give results but I see where I went wrong (I think).&amp;nbsp; I'm going to redo the code and add some more codes to see if that would work.&amp;nbsp; Thank you for taking out the time to answer back.&amp;nbsp; I'm new to SAS and I usually have 8 problems a chapter but get stuck on some that I just need a little guidance and help with.&amp;nbsp; Thank you again!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 10:48:37 GMT</pubDate>
    <dc:creator>michelle05</dc:creator>
    <dc:date>2019-09-25T10:48:37Z</dc:date>
    <item>
      <title>Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591376#M15204</link>
      <description>&lt;P&gt;Here's my code! When I run the code, I'm not getting any errors or results.&amp;nbsp; I'm not sure what I did wrong.&amp;nbsp; The question says to create a new sas data set called AGES that contains all the variables in ABC_CORP plus three new variables.&amp;nbsp; One is AGE_ACTUAL, which is the exact age from DOB to January 15, 2005.&amp;nbsp; The second is AGE_TODAY, which is the age as of the date the program is run, rounded to the nearest tenth of the year.&amp;nbsp; The third is AGE, with the fractional part dropped, as of the date stored in the variable VISIT_DATE.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;***Program to create data set ABC_CORP;&lt;BR /&gt;DATA ABC_CORP;&lt;BR /&gt;DO SUBJ = 1 TO 10;&lt;BR /&gt;DOB = INT(RANUNI(1234)*15000);&lt;BR /&gt;VISIT_DATE = INT(RANUNI(0)*1000) + '01JAN2000'D;&lt;BR /&gt;OUTPUT;&lt;BR /&gt;END;&lt;BR /&gt;FORMAT DOB VISIT_DATA DATE9.;&lt;BR /&gt;RUN;&lt;BR /&gt;***program to create data set AGES;&lt;BR /&gt;DATA AGES; &lt;BR /&gt;AGE_ACTUAL=YRDIF(DOB,'15JAN2005'D,'ACTUAL');&lt;BR /&gt;AGE_TODAY= ROUND(YRDIF(DOB,TODAY(),'ACTUAL'),.1);&lt;BR /&gt;AGE= INT(AGE);&lt;BR /&gt;VISIT_DATE= INT(RANUNI(0)*1000)+ '01JAN2000'D;&lt;BR /&gt;RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 04:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591376#M15204</guid>
      <dc:creator>michelle05</dc:creator>
      <dc:date>2019-09-25T04:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591380#M15205</link>
      <description>&lt;P&gt;Heres your below program with the required updates :-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA ABC_CORP;&lt;BR /&gt;FORMAT DOB VISIT_DATE DATE9.;&lt;BR /&gt;DO SUBJ = 1 TO 10;&lt;BR /&gt;DOB = INT(RANUNI(1234)*15000);&lt;BR /&gt;VISIT_DATE = INT(RANUNI(0)*1000) + '01JAN2000'D;&lt;BR /&gt;OUTPUT;&lt;BR /&gt;END;&lt;BR /&gt;RUN;&lt;BR /&gt;***program to create data set AGES;&lt;BR /&gt;DATA AGES; &lt;BR /&gt;set abc_corp;&lt;BR /&gt;AGE_ACTUAL=YRDIF(DOB,'15JAN2005'D,'ACTUAL');&lt;BR /&gt;AGE_TODAY= ROUND(YRDIF(DOB,TODAY(),'ACTUAL'),.1);&lt;BR /&gt;AGE= INT(AGE_TODAY);&lt;BR /&gt;VISIT_DATE= INT(RANUNI(0)*1000)+ '01JAN2000'D;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You did not set the abc-corp data set and hence you were not getting the results. Also the age= statement had age which was niot initialised, hence i assumed and put age_today instead of age Please check if this is what you want, otherwise please let me know .&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 04:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591380#M15205</guid>
      <dc:creator>VinitvictorCorr</dc:creator>
      <dc:date>2019-09-25T04:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591455#M15217</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; It still didn't give results but I see where I went wrong (I think).&amp;nbsp; I'm going to redo the code and add some more codes to see if that would work.&amp;nbsp; Thank you for taking out the time to answer back.&amp;nbsp; I'm new to SAS and I usually have 8 problems a chapter but get stuck on some that I just need a little guidance and help with.&amp;nbsp; Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 10:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591455#M15217</guid>
      <dc:creator>michelle05</dc:creator>
      <dc:date>2019-09-25T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591750#M15268</link>
      <description>sure. just post a question in sas communitiies if you need anything&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Sep 2019 03:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591750#M15268</guid>
      <dc:creator>VinitvictorCorr</dc:creator>
      <dc:date>2019-09-26T03:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591752#M15269</link>
      <description>and it should give result.. i tried the code before posting it</description>
      <pubDate>Thu, 26 Sep 2019 03:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591752#M15269</guid>
      <dc:creator>VinitvictorCorr</dc:creator>
      <dc:date>2019-09-26T03:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591895#M15286</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290387"&gt;@michelle05&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you!&amp;nbsp; It still didn't give results but I see where I went wrong (I think).&amp;nbsp; I'm going to redo the code and add some more codes to see if that would work.&amp;nbsp; Thank you for taking out the time to answer back.&amp;nbsp; I'm new to SAS and I usually have 8 problems a chapter but get stuck on some that I just need a little guidance and help with.&amp;nbsp; Thank you again!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Providing the LOG from running code is often very informative. That is why SAS provides the LOG.&lt;/P&gt;
&lt;P&gt;So post the code and any messages from the log. Copy and paste into a code box opened using the forum's {I} or "running man" icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;161  proc print data=sashelp.class;
162     where sex='Female';
163  run;

NOTE: No observations were selected from data set SASHELP.CLASS.
NOTE: There were 0 observations read from the data set SASHELP.CLASS.
      WHERE 0 /* an obviously FALSE WHERE clause */ ;
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;The "No observations" and the "FALSE WHERE clause" might remind me in this case the value in the data set for SEX is "F" not "Female". So little things in the log are actually helpful and the actual coded is needed to point towards likely changes needed.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/591895#M15286</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-26T15:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/592058#M15314</link>
      <description>&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;70&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;71 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ***Program to create new data set called AGES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;72 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data AGES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;73 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SET ABC_CORP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;74 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AGE_ACTUAL= YRDIF(DOB,'01JAN2015'd,'ACTUAL');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AGE_TODAY=ROUND(YRDIF(DOB,TODAY(),'ACTUAL'),.1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;76 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AGE= INT(YRDIF(DOB,'01JAN2015'd,'ACTUAL'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;77 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VISIT_DATE= INT(AGE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;78 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FORMAT DOB VISIT_DATE DATE9.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;79 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;NOTE: There were 10 observations read from the data set WORK.ABC_CORP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;NOTE: The data set WORK.AGES has 10 observations and 6 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;real time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;user cpu time &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;system cpu time &amp;nbsp; &amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;memory&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 976.90k&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OS Memory &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29100.00k&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Timestamp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 09/27/2019 12:52:24 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Step Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 180 Switch Count 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Page Faults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Page Reclaims &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 181&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Page Swaps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Voluntary Context Switches&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Involuntary Context Switches&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Block Input Operations&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Block Output Operations &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 264&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;81 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;92&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 01:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/592058#M15314</guid>
      <dc:creator>michelle05</dc:creator>
      <dc:date>2019-09-27T01:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Here's my code but I'm not getting any errors or results</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/592501#M15365</link>
      <description>&lt;P&gt;After meditating and reworking the code, I now see why I didn't have any results.&amp;nbsp; I didn't put PROC PRINT.&amp;nbsp; As soon as I entered that, the code printed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2019 20:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Here-s-my-code-but-I-m-not-getting-any-errors-or-results/m-p/592501#M15365</guid>
      <dc:creator>michelle05</dc:creator>
      <dc:date>2019-09-29T20:57:34Z</dc:date>
    </item>
  </channel>
</rss>

