<?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: How to create an index in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809618#M319272</link>
    <description>&lt;P&gt;So you have two sas environments running on different operating systems.&lt;/P&gt;
&lt;P&gt;I would just drop the idea of creating an index and sort the data. Then you will have a more or less increase of runtime depending on the system you are using the data, but this is the only way i can think of, that allows using one dataset on two different os.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 05:21:46 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2022-04-25T05:21:46Z</dc:date>
    <item>
      <title>How to create an index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809531#M319250</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I use SAS Enterprise Guide 7.15 on a Linux server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to create a table with an index to the windows server I run the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname tavtdata "/cifs/sastest2012 ";

data tavtdata.areamatch (outrep=windows_64);
set tavtdata.areamatch;
run;

data tavtdata.areamatch (outrep=windows_64 index=(areaCode));
set tavtdata.areamatch;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The error obtained in creating the index:&lt;/P&gt;
&lt;DIV id="tinyMceEditorshlomiohana_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shlomiohana_1-1650830540376.jpeg" style="width: 908px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70771i26DCD89E8739D6D9/image-dimensions/908x296?v=v2" width="908" height="296" role="button" title="shlomiohana_1-1650830540376.jpeg" alt="shlomiohana_1-1650830540376.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will ask for your help on how to create an index in Linux and the table will be windows_64.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 20:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809531#M319250</guid>
      <dc:creator>shlomiohana</dc:creator>
      <dc:date>2022-04-24T20:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809533#M319252</link>
      <description>&lt;P&gt;What you are trying to do does not make much sense.&amp;nbsp; That and the fact that it is probably impossible is probably why it does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to make an index you have to do with a native format file.&lt;/P&gt;
&lt;P&gt;Why do you want to make the dataset in a format that is not native to the version of SAS you using.&lt;/P&gt;
&lt;P&gt;Why do want to make an index?&lt;/P&gt;
&lt;P&gt;Why not just sort the data instead?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 20:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809533#M319252</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-24T20:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809536#M319255</link>
      <description>&lt;P&gt;There is a system that is on a windows server until today my Guide was on a windows server so I had no problem running the code I attached, but now my Guide is on a Linux server and I need to create this table with an index, but the system is on the windows server does not accept the index created in Linux, so I used the option outrep = windows_64 so that the output would be in windows and not in Linux.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 20:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809536#M319255</guid>
      <dc:creator>shlomiohana</dc:creator>
      <dc:date>2022-04-24T20:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809556#M319265</link>
      <description>&lt;P&gt;It is still not clear what you are trying to do here. Are you trying to share a SAS data library between Linux and Windows? The LIBNAME you use suggests you are storing it in a Linux folder. Was this library first created on Windows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I'm guessing that your original library is simply a copy from Windows in CEDA-format for cross-platform compatibility. Creating a new Linux-specific library should solve your problem:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname tavtdata "/cifs/sastest2012 ";
libname tavtdatl "/cifs/linux/sastest2012 ";

data tavtdatl.areamatch (index = (areacode));
set tavtdata.areamatch;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Apr 2022 01:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809556#M319265</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-25T01:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809618#M319272</link>
      <description>&lt;P&gt;So you have two sas environments running on different operating systems.&lt;/P&gt;
&lt;P&gt;I would just drop the idea of creating an index and sort the data. Then you will have a more or less increase of runtime depending on the system you are using the data, but this is the only way i can think of, that allows using one dataset on two different os.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 05:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809618#M319272</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-04-25T05:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809620#M319274</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288727"&gt;@shlomiohana&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;There is a system that is on a windows server until today my Guide was on a windows server so I had no problem running the code I attached, but now my Guide is on a Linux server and I need to create this table with an index, but the system is on the windows server does not accept the index created in Linux, so I used the option outrep = windows_64 so that the output would be in windows and not in Linux.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So create the index on the Windows server after moving the file there, if simply sorting is not an option.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 05:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index/m-p/809620#M319274</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-25T05:49:17Z</dc:date>
    </item>
  </channel>
</rss>

