<?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: Sas7bndx in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839837#M332035</link>
    <description>If i move sasdataset from sas server A to sas server B then in sas server B, use sas program to convert sas dataset to text then expirt to oracle, then do i need to copy sas index filr from sas server A to sas server B while sas index file is not required in oracle..</description>
    <pubDate>Fri, 21 Oct 2022 03:56:20 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2022-10-21T03:56:20Z</dc:date>
    <item>
      <title>Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839831#M332030</link>
      <description>Hi i am copying files from sas server to use  as text in oracle. Some dataset came with an index file sas7bndx. Am i right to assume that i dont need these index file any more for using text data in oracle?</description>
      <pubDate>Fri, 21 Oct 2022 02:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839831#M332030</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-10-21T02:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839832#M332031</link>
      <description>&lt;P&gt;Sas7bndx files are only of relevance when you are using SAS datasets with SAS software.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 03:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839832#M332031</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-21T03:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839834#M332032</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi i am copying files from sas server to use as text in oracle. Some dataset came with an index file sas7bndx. Am i right to assume that i dont need these index file any more for using text data in oracle?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Files?&amp;nbsp; Do you mean SAS datasets?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS datasets are the .sas7bdat files.&amp;nbsp; The .sas7bndx files are the indexes for those file.&amp;nbsp; You will not need to copy any information out of the indexes.&lt;/P&gt;
&lt;P&gt;Note that SAS datasets are not text files that you could just read into Oracle.&amp;nbsp; So to copy the information out of them into Oracle you will want to use SAS to copy the information. Either directly into Oracle tables or to text files that you could read into Oracle.&amp;nbsp; &amp;nbsp;And SAS will expect to find the index files in the same directory as the dataset.&amp;nbsp; So if by "copy files" you mean move them from one SAS server to another SAS server you should probable keep both the dataset and the indexes together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 03:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839834#M332032</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-21T03:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839837#M332035</link>
      <description>If i move sasdataset from sas server A to sas server B then in sas server B, use sas program to convert sas dataset to text then expirt to oracle, then do i need to copy sas index filr from sas server A to sas server B while sas index file is not required in oracle..</description>
      <pubDate>Fri, 21 Oct 2022 03:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839837#M332035</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-10-21T03:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839839#M332036</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;If i move sasdataset from sas server A to sas server B then in sas server B, use sas program to convert sas dataset to text then expirt to oracle, then do i need to copy sas index filr from sas server A to sas server B while sas index file is not required in oracle..&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Test it and see.&lt;/P&gt;
&lt;PRE&gt;1    data class(index=(name));
2      set sashelp.class;
3    run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.CLASS has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds


4
5    data _null_;
6      infile "del ""%sysfunc(pathname(work))\class.sas7bndx""" pipe;
7      input ;
8      put _infile_;
9    run;

NOTE: The infile "del ""C:\Users\xxx\AppData\Local\Temp\1\SAS Temporary Files\_TD1824_yyy_\class.sas7bndx""" is:
      Unnamed Pipe Access Device,
      PROCESS=del "C:\Users\xxx\AppData\Local\Temp\1\SAS Temporary Files\_TD1824_yyy_\class.sas7bndx",
      RECFM=V,LRECL=32767

NOTE: 0 records were read from the infile "del ""C:\Users\xxx\AppData\Local\Temp\1\SAS Temporary
      Files\_TD1824_yyy_\class.sas7bndx""".
NOTE: DATA statement used (Total process time):
      real time           0.08 seconds
      cpu time            0.00 seconds


10
11   data test;
12     set class;
NOTE: File WORK.CLASS.INDEX does not exist.
ERROR: Unable to repair WORK.CLASS.DATA because it is in a scratch library.
13   run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TEST may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds


&lt;/PRE&gt;
&lt;P&gt;Looks like SAS really wants the index file to exist.&lt;/P&gt;
&lt;P&gt;It might be possible to run something to tell it to ignore the error, but why not just copy everything?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 04:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839839#M332036</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-21T04:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839983#M332117</link>
      <description>Because dataset alone already takes over 1 TB. If copy index too the vol is ever higher.</description>
      <pubDate>Fri, 21 Oct 2022 17:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839983#M332117</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-10-21T17:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839987#M332121</link>
      <description>&lt;P&gt;Remove the index at the source before copying the dataset file.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 17:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839987#M332121</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-21T17:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839993#M332127</link>
      <description>Move the index. It speeds up access to the dataset and will speed up your exports and usage of the data and saves you the time you'd likely use by trying to solve it otherwise. The cost of storage is less than the cost of developing and creating a workaround. &lt;BR /&gt;&lt;BR /&gt;Delete the indexes after the conversion is done if you need to maintain the datasets for some reason.</description>
      <pubDate>Fri, 21 Oct 2022 17:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839993#M332127</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-21T17:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sas7bndx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839995#M332129</link>
      <description>&lt;P&gt;Building on&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;example, you can use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p0tmodc2gpo5bpn11bmq0lihyp9z.htm" target="_self"&gt;DLDMGACTION option&lt;/A&gt; to not have the index but note that you cannot do this in WORK libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname demo '/home/fkhurshed/Demo1';

data demo.class(index=(name));
      set sashelp.class;
   run;



    data _null_;
    fname="tempfile";
    rc=filename(fname, "/home/fkhurshed/Demo1/class.sas7bndx");
    if rc = 0 and fexist(fname) then 
       rc=fdelete(fname); 
    rc=filename(fname);
run;

options DLDMGACTION=noindex;

  data test;
     set demo.class;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I still recommend copying over index and working with the files indexed as it may speed up access. The programming time will outweigh the data storage costs and then you can delete the indexes after, if you need access later, use the option specified.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 17:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas7bndx/m-p/839995#M332129</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-21T17:58:19Z</dc:date>
    </item>
  </channel>
</rss>

