<?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: check the order of the variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696485#M25275</link>
    <description>proc contents data=sashelp.class varnum out=x noprint;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Check Variable Name and Variable Number in dataset X .&lt;BR /&gt;&lt;BR /&gt;Or try Dictionary.</description>
    <pubDate>Wed, 04 Nov 2020 12:57:06 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-11-04T12:57:06Z</dc:date>
    <item>
      <title>check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696218#M25234</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset which includes the variable names:&lt;/P&gt;&lt;P&gt;A B C D&lt;/P&gt;&lt;P&gt;the above dataset need to format once in a week.&lt;/P&gt;&lt;P&gt;Everyweek I have to check the order of the variables A B C D&lt;/P&gt;&lt;P&gt;If D comes first or the order changes I need to flag it. The order must be A B C D order.&lt;/P&gt;&lt;P&gt;Can I know the code for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;&lt;P&gt;-Smitha&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696218#M25234</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-11-03T15:08:21Z</dc:date>
    </item>
    <item>
      <title>check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696208#M25236</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a variables list&lt;/P&gt;&lt;P&gt;A B C D&lt;/P&gt;&lt;P&gt;Everytime when I get the data and formatted. I need to check the order is correct. If D comes first then I need to flag it.&lt;/P&gt;&lt;P&gt;The code needs to check the order of the variables "A B C D"&lt;/P&gt;&lt;P&gt;how can I do that?&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;&lt;P&gt;-Smitha&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696208#M25236</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-11-03T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696209#M25237</link>
      <description>&lt;P&gt;Are A, B, C and D your variable &lt;EM&gt;names&lt;/EM&gt; or your varaible &lt;EM&gt;values&lt;/EM&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696209#M25237</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-03T14:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696211#M25238</link>
      <description>Variable names.</description>
      <pubDate>Tue, 03 Nov 2020 14:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696211#M25238</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-11-03T14:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696228#M25239</link>
      <description>Can you explain what you are doing and why the variable order matters.  Does the data set contain other variables ?  If so, where should A,B,C,D be in relation to them ?</description>
      <pubDate>Tue, 03 Nov 2020 15:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696228#M25239</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-11-03T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696229#M25240</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329198"&gt;@Smitha9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dataset which includes the variable names:&lt;/P&gt;
&lt;P&gt;A B C D&lt;/P&gt;
&lt;P&gt;the above dataset need to format once in a week.&lt;/P&gt;
&lt;P&gt;Everyweek I have to check the order of the variables A B C D&lt;/P&gt;
&lt;P&gt;If D comes first or the order changes I need to flag it. The order must be A B C D order.&lt;/P&gt;
&lt;P&gt;Can I know the code for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you in advance.&lt;/P&gt;
&lt;P&gt;-Smitha&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS data sets do not care about the order of variables generally. So why is this an issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if your data source is changing the order that is the place to address things, before it gets to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents will tell you the column number of a variable.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696229#M25240</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-03T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696230#M25241</link>
      <description>&lt;P&gt;&lt;EM&gt;How&lt;/EM&gt; do you get your data?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696230#M25241</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-03T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696232#M25242</link>
      <description>Hi,&lt;BR /&gt;this is an example I gave.&lt;BR /&gt;My dataset has around 4 variables.&lt;BR /&gt;Lets say if we have A B C D. This dataset gets new values everyweek and gets formatted everyweek. I need to check the order of the variable names are correct and if there is a problem with the order of the variable names I need to flag it.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 03 Nov 2020 15:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696232#M25242</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-11-03T15:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: check the order of the variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696485#M25275</link>
      <description>proc contents data=sashelp.class varnum out=x noprint;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Check Variable Name and Variable Number in dataset X .&lt;BR /&gt;&lt;BR /&gt;Or try Dictionary.</description>
      <pubDate>Wed, 04 Nov 2020 12:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/check-the-order-of-the-variables/m-p/696485#M25275</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-04T12:57:06Z</dc:date>
    </item>
  </channel>
</rss>

