<?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: BY variables are not properly sorted on data set TEMPSAS.IND_CONC. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/575767#M12924</link>
    <description>&lt;P&gt;You need to sort the data set&amp;nbsp;&lt;SPAN&gt;TEMPSAS.IND_CONC&lt;/SPAN&gt; by INDCODE.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 12:13:34 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-07-23T12:13:34Z</dc:date>
    <item>
      <title>ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/575760#M12921</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting this error and I tried to sort this in all possible ways, I do not know what else to do, can you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(SERIES): data tempsas.ind_VA_by_ACPSA;&lt;BR /&gt;MPRINT(SERIES): merge tempsas.ind_value_added(in=a) tempsas.ind_conc;&lt;BR /&gt;MPRINT(SERIES): by indCode;&lt;BR /&gt;MPRINT(SERIES): if a=1;&lt;BR /&gt;MPRINT(SERIES): run;&lt;BR /&gt;ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.&lt;BR /&gt;a=0 indCode=337 proVal= Inter= compensation= taxes= GOS= indCode_id=42751 indCodeDescr=Furniture and related products&lt;BR /&gt;indACPSA=ind99 indACPSADescr=All Other Industries FIRST.indCode=1 LAST.indCode=1 _ERROR_=1 _N_=381&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 381 observations read from the data set TEMPSAS.IND_VALUE_ADDED.&lt;BR /&gt;NOTE: There were 2 observations read from the data set TEMPSAS.IND_CONC.&lt;BR /&gt;WARNING: The data set TEMPSAS.IND_VA_BY_ACPSA may be incomplete. When this step was stopped there were 380 observations&lt;BR /&gt;and 10 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/575760#M12921</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2019-07-23T12:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/575767#M12924</link>
      <description>&lt;P&gt;You need to sort the data set&amp;nbsp;&lt;SPAN&gt;TEMPSAS.IND_CONC&lt;/SPAN&gt; by INDCODE.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/575767#M12924</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-23T12:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579222#M13418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot sort this by indcode because the tempsas.ind_value_added does not have indcode, I keep getting this error for the past 3 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(SERIES): data tempsas.ind_VA_by_ACPSA;&lt;BR /&gt;MPRINT(SERIES): merge tempsas.ind_value_added(in=a) tempsas.ind_conc;&lt;BR /&gt;MPRINT(SERIES): by indCode_id;&lt;BR /&gt;MPRINT(SERIES): if a=1;&lt;BR /&gt;MPRINT(SERIES): run;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.&lt;/FONT&gt;&lt;BR /&gt;a=1 indCode_id=41991 datasetPeriod_id=1576 proVal=4.3776485046 Inter=3531.2584548 compensation=2528.7734829&lt;BR /&gt;taxes=45.311020873 GOS=-6100.96531 indCode=333517 indCodeDescr=Machine tool (metal forming types) manufacturing&lt;BR /&gt;indACPSA=ind99 indACPSADescr=All Other Industries FIRST.indCode_id=1 LAST.indCode_id=0 _ERROR_=1 _N_=549&lt;BR /&gt;NOTE: MERGE statement has more than one data set with repeats of BY values.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 543 observations read from the data set TEMPSAS.IND_VALUE_ADDED.&lt;BR /&gt;NOTE: There were 313 observations read from the data set TEMPSAS.IND_CONC.&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;WARNING: The data set TEMPSAS.IND_VA_BY_ACPSA may be incomplete. When this step was stopped there were 545 observations&lt;/FONT&gt;&lt;BR /&gt;and 11 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 20:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579222#M13418</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2019-08-05T20:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579225#M13419</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I cannot sort this by indcode because the tempsas.ind_value_added does not have indcode, I keep getting this error for the past 3 months.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;That doesn't make any sense. If the variable is not there you cannot merge by it either.&amp;nbsp; But the variable is clearly there according to your log.&amp;nbsp; Perhaps your SORT step tried to sort by the wrong variable?&amp;nbsp; The code you posted is using INDCODE_ID and your comment mentions INDCODE.&amp;nbsp; Those are two different variable names.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 20:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579225#M13419</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-05T20:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579226#M13420</link>
      <description>&lt;P&gt;This is a different program than the first one you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this program, you have not properly sorted variable&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;indCode_id&lt;/FONT&gt;&lt;/STRONG&gt; in data set&amp;nbsp;TEMPSAS.IND_CONC&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 20:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579226#M13420</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-05T20:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579251#M13432</link>
      <description>&lt;P&gt;Hi Paige,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I properly sort it then? Do you want the entire log?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 00:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579251#M13432</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2019-08-06T00:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: BY variables are not properly sorted on data set TEMPSAS.IND_CONC.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579255#M13433</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/105695"&gt;@Afor910327&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How could I properly sort it then?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=yourdatasetname;
    by variablename;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 01:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-BY-variables-are-not-properly-sorted-on-data-set-TEMPSAS/m-p/579255#M13433</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-06T01:14:24Z</dc:date>
    </item>
  </channel>
</rss>

