<?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: Unable to create an Index file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602078#M174281</link>
    <description>&lt;P&gt;I have searched google for "sas documentation ERROR: Permanent copy of file ... was deleted".&lt;/P&gt;
&lt;P&gt;Please check next links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Cannot-Trouble-Shoot-Error-quot-permanent-copy-deleted-quot/td-p/139965" target="_self"&gt;https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Cannot-Trouble-Shoot-Error-quot-permanent-copy-deleted-quot/td-p/139965&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;&lt;A href="http://support.sas.com/kb/41/488.html" target="_blank"&gt;http://support.sas.com/kb/41/488.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 17:57:12 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2019-11-06T17:57:12Z</dc:date>
    <item>
      <title>Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601959#M174206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recently we have migrated a sas application from AIX (SAS9.3) to Linux(SAS9.4).&amp;nbsp; In this application, there is a functionality to write a sas dataset with it's index file to an external windows drive. This windows drive is mounted on the AIX and Linux servers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Linux server,when the program is trying to write the sas dataset with it's index on to windows drive, it is throwing the below message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Permanent copy of file TP_OUT.AAAAAAA.INDEX was deleted.&lt;BR /&gt;ERROR: Permanent copy of file TP_OUT.AAAAAAA.INDEX was deleted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The program code is taken from a SAS Data Integration job and submitted as a standalone sas program. The functionality is , if the sas dataset with it's index is available, the process deletes them and creates them and then appends the data using proc append.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,in the Windows location, it is shown as locked.&amp;nbsp; TP_OUT.AAAAAAA.SAS7BNDX.LCK&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No clue why the index is failing here.&amp;nbsp; Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601959#M174206</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2019-11-06T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601961#M174207</link>
      <description>&lt;P&gt;As much as I know you cannot copy index file into a different OS.&lt;/P&gt;
&lt;P&gt;You should recreate the index in the new OS.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601961#M174207</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-11-06T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601971#M174211</link>
      <description>&lt;P&gt;It is actually not being copied...instead is being created on the windows drive using the below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data TP_OUT.AAAAAAA;&lt;BR /&gt;attrib COL1 length = 8 format = YYMMDD10.; &lt;BR /&gt;attrib COL2 length = $8; &lt;BR /&gt;attrib COL3 length = $10; &lt;BR /&gt;attrib COL4 length = $3 format = $3. informat = $3.; &lt;BR /&gt;attrib COL5 length = $8; &lt;BR /&gt;attrib COL6 length = 8 format = commax18.4 informat = commax18.4; &lt;BR /&gt;attrib COL7 length = 8 format = datetime23.; &lt;BR /&gt;attrib COL8 length = 8 format = datetime23.; &lt;BR /&gt;attrib COL9 length = 8 format = datetime23.; &lt;BR /&gt;call missing(of _all_);&lt;BR /&gt;stop;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc datasets library=TP_OUT nolist;&lt;BR /&gt;modify AAAAAAA;&lt;BR /&gt;ic create not null (COL1);&lt;BR /&gt;ic create not null (COL2);&lt;BR /&gt;ic create not null (COL3);&lt;BR /&gt;ic create not null (COL4);&lt;BR /&gt;ic create not null (COL5);&lt;BR /&gt;ic create not null (COL6);&lt;BR /&gt;ic create not null (COL7);&lt;BR /&gt;ic create not null (COL8);&lt;BR /&gt;ic create Index1 = primary key (COL1 COL2 COL3 COL4 COL5);&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code was working fine in SAS9.3 on AIX but failing in SAS9.4 on Linux.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601971#M174211</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2019-11-06T13:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601976#M174212</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51337"&gt;@vijayanand&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It is actually not being copied...instead is being created on the windows drive using the below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data TP_OUT.AAAAAAA;&lt;BR /&gt;attrib COL1 length = 8 format = YYMMDD10.; &lt;BR /&gt;attrib COL2 length = $8; &lt;BR /&gt;attrib COL3 length = $10; &lt;BR /&gt;attrib COL4 length = $3 format = $3. informat = $3.; &lt;BR /&gt;attrib COL5 length = $8; &lt;BR /&gt;attrib COL6 length = 8 format = commax18.4 informat = commax18.4; &lt;BR /&gt;attrib COL7 length = 8 format = datetime23.; &lt;BR /&gt;attrib COL8 length = 8 format = datetime23.; &lt;BR /&gt;attrib COL9 length = 8 format = datetime23.; &lt;BR /&gt;call missing(of _all_);&lt;BR /&gt;stop;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc datasets library=TP_OUT nolist;&lt;BR /&gt;modify AAAAAAA;&lt;BR /&gt;ic create not null (COL1);&lt;BR /&gt;ic create not null (COL2);&lt;BR /&gt;ic create not null (COL3);&lt;BR /&gt;ic create not null (COL4);&lt;BR /&gt;ic create not null (COL5);&lt;BR /&gt;ic create not null (COL6);&lt;BR /&gt;ic create not null (COL7);&lt;BR /&gt;ic create not null (COL8);&lt;BR /&gt;ic create Index1 = primary key (COL1 COL2 COL3 COL4 COL5);&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code was working fine in SAS9.3 on AIX but failing in SAS9.4 on Linux.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If code fails, post the log, using the {i} button.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/601976#M174212</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-06T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602019#M174243</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: Creating table ...
MPRINT(ETLS_LOADER):   data TP_OUT.AAAAAAA;
MPRINT(ETLS_LOADER):   attrib COL1 length = 8 format = YYMMDD10.;
MPRINT(ETLS_LOADER):   attrib COL2 length = $8 ;
MPRINT(ETLS_LOADER):   attrib COL3 length = $10 ;
MPRINT(ETLS_LOADER):   attrib COL4 length = $3 format = $3. informat = $3. ;
MPRINT(ETLS_LOADER):   attrib COL5 length = $8 label = 'Currency sell code';
&amp;#12;22                                                         The SAS System                          09:54 Wednesday, November 6, 2019

MPRINT(ETLS_LOADER):   attrib COL6 length = 8 format = commax18.4 informat = commax18.4 ;
MPRINT(ETLS_LOADER):   attrib COL7 length = 8 format = datetime23. ;
MPRINT(ETLS_LOADER):   attrib COL8 length = 8 format = datetime23. ;
MPRINT(ETLS_LOADER):   attrib COL9 length = 8 format = datetime23. ;
MPRINT(ETLS_LOADER):   call missing(of _all_);
MPRINT(ETLS_LOADER):   stop;
MPRINT(ETLS_LOADER):   run;

NOTE: The data set TP_OUT.AAAAAAA has 0 observations and 9 variables.
NOTE: DATA statement used (Total process time):
      real time           0.04 seconds
      cpu time            0.00 seconds
      

MPRINT(ETLS_LOADER):  ;
NOTE: Creating integrity constraints ...
MPRINT(ETLS_LOADER):   proc datasets library=TP_OUT nolist;
MPRINT(ETLS_LOADER):   modify AAAAAAA;
MPRINT(ETLS_LOADER):   ic create not null (COL1);
NOTE: Integrity constraint _NM0001_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL2);
NOTE: Integrity constraint _NM0002_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL3);
NOTE: Integrity constraint _NM0003_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL4);
NOTE: Integrity constraint _NM0004_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL5);
NOTE: Integrity constraint _NM0005_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL6);
NOTE: Integrity constraint _NM0006_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL7);
NOTE: Integrity constraint _NM0007_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL8);
NOTE: Integrity constraint _NM0008_ defined.
MPRINT(ETLS_LOADER):   ic create Index1 = primary key (COL1 COL2 COL3 COL4 COL5);
ERROR: Permanent copy of file TP_OUT.AAAAAAA.INDEX was deleted.
ERROR: Permanent copy of file TP_OUT.AAAAAAA.INDEX was deleted.
MPRINT(ETLS_LOADER):   quit;

NOTE: Statements not processed because of errors noted above.
ERROR: File TP_OUT.AAAAAAA.INDEX is not open.
NOTE: Statements not processed because of errors noted above.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.
NOTE: PROCEDURE DATASETS used (Total process time):
      real time           0.42 seconds
      cpu time            0.01 seconds
      
MPRINT(ETLS_LOADER):  ;
NOTE: Appending data ...


NOTE: File TP_OUT.AAAAAAA.INDEX does not exist.
ERROR: The open failed because library member TP_OUT.AAAAAAA.DATA is damaged.
MPRINT(ETLS_LOADER):   proc append base = TP_OUT.AAAAAAA data = TP_MART.AAAAAAA () force ;
MPRINT(ETLS_LOADER):   run;&lt;/PRE&gt;
&lt;P&gt;Attached is the snippet of the log for the same issue.&amp;nbsp; TP_OUT is the windows location and TP_MART is the Linux location. Earlier TP_MART was the AIX location.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602019#M174243</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2019-11-06T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602024#M174248</link>
      <description>&lt;P&gt;Have you noticed message:&lt;/P&gt;
&lt;PRE&gt;The data set TP_OUT.AAAAAAA has 0 observations and 9 variables.&lt;/PRE&gt;
&lt;P&gt;what index can be created if no observations in dataset ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602024#M174248</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-11-06T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602064#M174271</link>
      <description>&lt;P&gt;The same program ran fine with no errors in AIX.&amp;nbsp; Please find attached the log of the program ran AIX - SAS9.3&lt;/P&gt;
&lt;PRE&gt;NOTE: The data set TP_OUT.AAAAAAA has 0 observations and 9 variables.
NOTE: DATA statement used (Total process time):
      real time           0.05 seconds
      cpu time            0.00 seconds
      

MPRINT(ETLS_LOADER):  ;
NOTE: Creating integrity constraints ...
MPRINT(ETLS_LOADER):   proc datasets library=TP_OUT nolist;
MPRINT(ETLS_LOADER):   modify AAAAAAA;
MPRINT(ETLS_LOADER):   ic create not null (COL1);
NOTE: Integrity constraint _NM0001_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL2);
NOTE: Integrity constraint _NM0002_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL3);
NOTE: Integrity constraint _NM0003_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL4);
NOTE: Integrity constraint _NM0004_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL5);
NOTE: Integrity constraint _NM0005_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL6);
NOTE: Integrity constraint _NM0006_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL7);
NOTE: Integrity constraint _NM0007_ defined.
MPRINT(ETLS_LOADER):   ic create not null (COL8);
NOTE: Integrity constraint _NM0008_ defined.
MPRINT(ETLS_LOADER):   ic create Index1 = primary key (COL1 COL2 COL3 COL4 COL5);
NOTE: Integrity constraint Index1 defined.
MPRINT(ETLS_LOADER):   quit;

NOTE: MODIFY was successful for TP_OUT.AAAAAAA.DATA.
NOTE: PROCEDURE DATASETS used (Total process time):
      real time           1.04 seconds
      cpu time            0.03 seconds
      

MPRINT(ETLS_LOADER):  ;
NOTE: Appending data ...
MPRINT(ETLS_LOADER):   proc append base = TP_OUT.AAAAAAA data = TP_MART.AAAAAAA () force ;
MPRINT(ETLS_LOADER):   run;

NOTE: Appending TP_MART.AAAAAAA to TP_OUT.AAAAAAA.
NOTE: There were 903 observations read from the data set TP_MART.AAAAAAA.
NOTE: 903 observations added.
NOTE: The data set TP_OUT.AAAAAAA has 903 observations and 9 variables.
NOTE: PROCEDURE APPEND used (Total process time):
      real time           0.07 seconds
      cpu time            0.00 seconds&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602064#M174271</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2019-11-06T16:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602078#M174281</link>
      <description>&lt;P&gt;I have searched google for "sas documentation ERROR: Permanent copy of file ... was deleted".&lt;/P&gt;
&lt;P&gt;Please check next links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Cannot-Trouble-Shoot-Error-quot-permanent-copy-deleted-quot/td-p/139965" target="_self"&gt;https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Cannot-Trouble-Shoot-Error-quot-permanent-copy-deleted-quot/td-p/139965&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;&lt;A href="http://support.sas.com/kb/41/488.html" target="_blank"&gt;http://support.sas.com/kb/41/488.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602078#M174281</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-11-06T17:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602081#M174282</link>
      <description>&lt;P&gt;Thanks for these links Shmuel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is the same windows drive that was being used when teh application was running in AIX-SAS9.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the application is running in Linux SAS9.4 and using the same windows drive...very strange.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is actually the code generated by SAS DI Studio Table loader transformation&amp;nbsp; with Replace Entire Table as load technique. This code is being submitted in SAS EG as a standalone sas program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though the log says that the index "Permanent copy of file TP_OUT.AAAAAAA.INDEX was deleted, the index file (AAAAAAA.sas7bndx.lck) is physically present with a lock.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 18:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602081#M174282</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2019-11-06T18:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create an Index file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602084#M174283</link>
      <description>&lt;P&gt;Does the file name have suffix .lck ?&lt;/P&gt;
&lt;P&gt;Then file is locked and probably damaged.&lt;/P&gt;
&lt;P&gt;Using windows tools delete the file and rerun your process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it will not help - I hope someone else can help.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 18:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-create-an-Index-file/m-p/602084#M174283</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-11-06T18:15:54Z</dc:date>
    </item>
  </channel>
</rss>

