<?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: First.dot variable-- datasets not sorted message despite sorting datasets in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876255#M1585</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You sorted by "make" first, then, within each "make" group, by "type". But you requested a sort order with "type" only in the DATA step.&lt;/P&gt;
&lt;P&gt;The BY statements in PROC SORT and the DATA step must contain the same variables in the same order.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And don't forget the same DESCENDING options if used.&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 15:12:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-05-17T15:12:21Z</dc:date>
    <item>
      <title>First.dot variable-- datasets not sorted message despite sorting datasets</title>
      <link>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876210#M1574</link>
      <description>&lt;P&gt;How do I achieve to get a dataset with first.dot make in the following example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cars;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=cars out=carrs;&lt;BR /&gt;by make descending type;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data carstype;&lt;BR /&gt;set carrs;&lt;BR /&gt;by type;&lt;BR /&gt;if first.type;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in the log:&lt;/P&gt;&lt;P&gt;data carstype;&lt;BR /&gt;19621 set carrs;&lt;BR /&gt;19622 by type;&lt;BR /&gt;19623 if first.type;&lt;BR /&gt;19624 run;&lt;/P&gt;&lt;P&gt;ERROR: BY variables are not properly sorted on data set WORK.CARRS.&lt;BR /&gt;Make=Acura Model=NSX coupe 2dr manual S Type=Sports Origin=Asia DriveTrain=Rear MSRP=$89,765&lt;BR /&gt;Invoice=$79,978 EngineSize=3.2 Cylinders=6 Horsepower=290 MPG_City=17 MPG_Highway=24 Weight=3153&lt;BR /&gt;Wheelbase=100 Length=174 FIRST.Type=1 LAST.Type=1 _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 2 observations read from the data set WORK.CARRS.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 13:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876210#M1574</guid>
      <dc:creator>Uma_Devi</dc:creator>
      <dc:date>2023-05-17T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: First.dot variable-- datasets not sorted message despite sorting datasets</title>
      <link>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876211#M1575</link>
      <description>&lt;P&gt;You sorted by "make" first, then, within each "make" group, by "type". But you requested a sort order with "type" only in the DATA step.&lt;/P&gt;
&lt;P&gt;The BY statements in PROC SORT and the DATA step must contain the same variables in the same order.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 13:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876211#M1575</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-17T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: First.dot variable-- datasets not sorted message despite sorting datasets</title>
      <link>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876216#M1577</link>
      <description>Thanks a bunch. Problem solved&lt;BR /&gt;</description>
      <pubDate>Wed, 17 May 2023 13:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876216#M1577</guid>
      <dc:creator>Uma_Devi</dc:creator>
      <dc:date>2023-05-17T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: First.dot variable-- datasets not sorted message despite sorting datasets</title>
      <link>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876255#M1585</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You sorted by "make" first, then, within each "make" group, by "type". But you requested a sort order with "type" only in the DATA step.&lt;/P&gt;
&lt;P&gt;The BY statements in PROC SORT and the DATA step must contain the same variables in the same order.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And don't forget the same DESCENDING options if used.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 15:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/First-dot-variable-datasets-not-sorted-message-despite-sorting/m-p/876255#M1585</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-17T15:12:21Z</dc:date>
    </item>
  </channel>
</rss>

