<?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: Is my lecturer in the right for this? she didnt specify what step to use in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873686#M38744</link>
    <description>Personally, I don't think zero is fair, but I wouldn't give full marks either as given the question it's an inefficient solution. &lt;BR /&gt;&lt;BR /&gt;I'm assuming your class has also been taught data set options versus the WHERE and KEEP/DROP statements.</description>
    <pubDate>Wed, 03 May 2023 16:34:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-05-03T16:34:59Z</dc:date>
    <item>
      <title>Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873644#M38731</link>
      <description>&lt;P&gt;For one of my questions I was asked to create a seperate dataset with only female names, the question is out of 10, and she never specified what step to use, i used proc sort like this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;33   proc sort data=Names out=work.Female_names (drop=gender);
34       by Name Count;
35       where Gender='F';
36   run;

NOTE: There were 89749 observations read from the data set WORK.NAMES.
      WHERE Gender='F';
NOTE: The data set WORK.FEMALE_NAMES has 89749 observations and 2 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.09 seconds
      cpu time            0.00 seconds&lt;/PRE&gt;&lt;P&gt;I got 0/10 for this question even though my friend who got 10/10 used a data step and got the same result i did (that being a seperate dataset). Her reasoning was that it is a major issue to not use data step for something like this even though it got the same result, I asked chatgpt if this is a major issue and it said that its not an issue if the code to use was never specified. Before I appeal, I would like to hear from an expert if this truly is a major issue that I used proc sort instead of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873644#M38731</guid>
      <dc:creator>hz16g22</dc:creator>
      <dc:date>2023-05-03T14:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873651#M38732</link>
      <description>&lt;P&gt;Definitely worth discussing with your instructor.&amp;nbsp; Your code is one way to subset the data.&amp;nbsp; If you need to SORT the data in anticipation of a later step, using PROC SORT with a WHERE statement would be more efficient than using a DATA step followed by a PROC SORT step.&amp;nbsp; There are lots of ways in SAS to subset data.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873651#M38732</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-05-03T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873653#M38733</link>
      <description>&lt;P&gt;I would have to see the &lt;STRONG&gt;exact instructions&lt;/STRONG&gt; provided. As in letter by letter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Sort is a bit of overkill but without knowing the grading considerations it is hard to evaluate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect there may have been some semi-automatic grading applied, such as comparing your resulting data set to a "standard" output expected. If that is the case then you may have "failed" because your removed the Gender variable. Depending on the comparison method used the change in order may have been a factor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as "Her reasoning was that it is a major issue to not use data step for something like this" goes, without given a very specific reason as to why a separate data set is needed there really is not any reason to create such. For any report or analysis you can subset the data with either a WHERE statement, as you used, or a similar data set option Where clause. Proliferation of data sets is actually often a symptom of poor design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do understand frustration with what appears to be identical results being downgraded because you use a different method than the grader expected. I have seen people get lower scores on use of programs like Excel because the test taker knew the keystroke short cuts to accomplish stuff instead of using the point-and-click through 5 sub-menus to do the same thing. Or did them in a different order than expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873653#M38733</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-03T14:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873658#M38734</link>
      <description>Was this proc sort methodology taught in class? Usually the answers should reflect what you've been taught otherwise it's clear that you're not using the class material and likely using ChatGPT or a forum for answers. &lt;BR /&gt;&lt;BR /&gt;Why is data step better?&lt;BR /&gt;Less processing of the data. &lt;BR /&gt;Sorting uses additional resources making this an inefficient step, so using a data step is the more efficient answer. Depending on the next steps of what is required in the processing, a data step can also accomplish other calculations making it more efficient. &lt;BR /&gt;&lt;BR /&gt;If you have to sort the data for the next step, then filtering in the proc sort is the right decision. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 May 2023 15:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873658#M38734</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-03T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873677#M38738</link>
      <description>&lt;P&gt;These were her instructions:&lt;BR /&gt;&lt;BR /&gt;Create a new data set (female_names) that only contains those names which were given to female babies. Include only the variables name and count (10)&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 15:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873677#M38738</guid>
      <dc:creator>hz16g22</dc:creator>
      <dc:date>2023-05-03T15:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873678#M38739</link>
      <description>it was yes, we were taught mostly proc procedures, i didnt use chatgpt as it would likely use more advanced code</description>
      <pubDate>Wed, 03 May 2023 15:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873678#M38739</guid>
      <dc:creator>hz16g22</dc:creator>
      <dc:date>2023-05-03T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873681#M38740</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439764"&gt;@hz16g22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;These were her instructions:&lt;BR /&gt;&lt;BR /&gt;Create a new data set (female_names) that only contains those names which were given to female babies. Include only the variables name and count (10)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;With instructions like that I would ask the instructor if Proc SQL would have been acceptable.&lt;/P&gt;
&lt;P&gt;If you haven't been taught Proc SQL then we get into the discussion of what the grading is based on: Taught material or results. It used to be that to get A grades in some of classes I took you &lt;STRONG&gt;had&lt;/STRONG&gt; to demonstrate going beyond only what was in the lecture/class sessions (learn on your own).&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 15:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873681#M38740</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-03T15:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873682#M38741</link>
      <description>Majority of the code online is beginner level.</description>
      <pubDate>Wed, 03 May 2023 16:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873682#M38741</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-03T16:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873683#M38742</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439764"&gt;@hz16g22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;it was yes, we were taught mostly proc procedures, i didnt use chatgpt as it would likely use more &lt;STRIKE&gt;advanced&lt;/STRIKE&gt; &lt;FONT color="#FF0000"&gt;problematic&lt;/FONT&gt; code&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;We have a thread where some one had used Chatgpt to generate code. It had so many errors it was hard to even figure out what the code (questioner) thought it was attempting.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873683#M38742</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-03T17:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873685#M38743</link>
      <description>She said only the data step is acceptable, yet it was not specified, would my appeal therefore make a good case as my proc sort achieved the same result</description>
      <pubDate>Wed, 03 May 2023 16:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873685#M38743</guid>
      <dc:creator>hz16g22</dc:creator>
      <dc:date>2023-05-03T16:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873686#M38744</link>
      <description>Personally, I don't think zero is fair, but I wouldn't give full marks either as given the question it's an inefficient solution. &lt;BR /&gt;&lt;BR /&gt;I'm assuming your class has also been taught data set options versus the WHERE and KEEP/DROP statements.</description>
      <pubDate>Wed, 03 May 2023 16:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873686#M38744</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-03T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873687#M38745</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439764"&gt;@hz16g22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;These were her instructions:&lt;BR /&gt;&lt;BR /&gt;Create a new data set (female_names) that only contains those names which were given to female babies. Include only the variables name and count (10)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is a lot left out of there.&amp;nbsp; Perhaps it was explained just before the question?&lt;/P&gt;
&lt;P&gt;What is the variable that can be used to indicate if baby is female?&amp;nbsp; What is the value of that variable that indicates female?&lt;/P&gt;
&lt;P&gt;Is COUNT one of the existing variables?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data female_names;
  set have;
  where sex='FEMALE';
  keep name count;
run;
data female_names;
  set have;
  if sex='FEMALE';
  keep name count;
run;
data female_names(keep=name count);
  set have;
  where sex='FEMALE';
run;
proc sql;
  create table female_names as
    select name,count
    from have
    where sex='FEMALE'
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or do you also need to count something?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
  tables name / out=female_names(keep=name count);
  where sex='FEMALE';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 May 2023 16:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873687#M38745</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-05-03T16:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is my lecturer in the right for this? she didnt specify what step to use</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873698#M38746</link>
      <description>&lt;P&gt;Your program risked changing the original order of names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This effectively presumes that either the original order is unimportant, or that there would be a way to reproduce the original order if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fact that it matched your co-student's results was by chance, since the original data happened to be in name/count &lt;STRIKE&gt;alphabetic&lt;/STRIKE&gt; order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not give full credit for this answer to the lecturer's question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-lecturer-in-the-right-for-this-she-didnt-specify-what-step/m-p/873698#M38746</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-05-03T17:59:56Z</dc:date>
    </item>
  </channel>
</rss>

