<?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: Converting very large sd2 datasets to sas7bdat in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883774#M20813</link>
    <description>&lt;P&gt;Your first step looks right.&amp;nbsp; You are copying the V6 dataset to a V9 dataset.&lt;/P&gt;
&lt;P&gt;Your second step also looks right, but the libref NEW is WRONG (or at least potentially wrong or confusing).&amp;nbsp; &amp;nbsp;If you don't tell SAS what engine to use it will pick one based on the files in the directory.&amp;nbsp; If the only SAS datasets that are there are V6 then it will pick V6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use BASE as the engine and SAS will use the default engine for whatever version of SAS you are running.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname new base 'path';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last one is flat out wrong.&amp;nbsp; You cannot write a V6 dataset unless you are running SAS 8 or earlier.&amp;nbsp; INFILE is for reading TEXT files (or reading binary files as text).&amp;nbsp; You cannot use it to read a SAS dataset or a directory.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 17:03:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-07-06T17:03:15Z</dc:date>
    <item>
      <title>Converting very large sd2 datasets to sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883744#M20810</link>
      <description>&lt;P&gt;I have a very large sd2 dataset file which is about 42GB. I can only load it into SAS by a script which qualifies certain variables. I cannot read the dataset structure nor open it in SAS universal viewer.&amp;nbsp;&lt;SPAN&gt;I have tried all the methods I can find on the Internet and forums, including but not limited to using old v6. For example, all of the following scripts don't work:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;libname in v6 'path';
libname out v9 'path';
proc copy inlib=in outlib=out;
run;&lt;/PRE&gt;&lt;PRE&gt;libname new 'path';
libname old v6 'path';
data new.test;
set old.test; 
run;&lt;/PRE&gt;&lt;PRE&gt;libname out v9 'path';                                                                                                        
libname in v6 'path';                                                                                                               
                                                                                                                                        
data in.test;                                                                                                                       
  infile 'path';                                                                                                       
  input;                                                                                                                                
run;                                                                                                                                    &lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I think the main error is that:&amp;nbsp;Write access to member 'IN.TEST.DATA' is denied. I don't know why. How can i convert the sd2 file to sas7bdat?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 14:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883744#M20810</guid>
      <dc:creator>williamty</dc:creator>
      <dc:date>2023-07-06T14:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting very large sd2 datasets to sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883766#M20811</link>
      <description>&lt;P&gt;Avoid having two LIBNAMEs pointing to the same path. You can't have test.sd2 and test.sas7bdat in the same directory, SAS does not allow this.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 16:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883766#M20811</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-06T16:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Converting very large sd2 datasets to sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883770#M20812</link>
      <description>&lt;P&gt;SAS does not have any trouble with a directory having mixed version 6 and version 7/8/9 format files in the same directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you do need to tell it which engine to use for which libref.&amp;nbsp; Otherwise it will pick one for you (and I am not sure what logic it uses to pick).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname in v6 'path';
libname out v8 'path';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Avoid having two LIBNAMEs pointing to the same path. You can't have test.sd2 and test.sas7bdat in the same directory, SAS does not allow this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 16:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883770#M20812</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-06T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting very large sd2 datasets to sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883774#M20813</link>
      <description>&lt;P&gt;Your first step looks right.&amp;nbsp; You are copying the V6 dataset to a V9 dataset.&lt;/P&gt;
&lt;P&gt;Your second step also looks right, but the libref NEW is WRONG (or at least potentially wrong or confusing).&amp;nbsp; &amp;nbsp;If you don't tell SAS what engine to use it will pick one based on the files in the directory.&amp;nbsp; If the only SAS datasets that are there are V6 then it will pick V6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use BASE as the engine and SAS will use the default engine for whatever version of SAS you are running.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname new base 'path';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last one is flat out wrong.&amp;nbsp; You cannot write a V6 dataset unless you are running SAS 8 or earlier.&amp;nbsp; INFILE is for reading TEXT files (or reading binary files as text).&amp;nbsp; You cannot use it to read a SAS dataset or a directory.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 17:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/883774#M20813</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-06T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Converting very large sd2 datasets to sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/903597#M20878</link>
      <description>&lt;P&gt;Did you try this?&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p00mbor90f24mfn192ma4krabl05.htm" target="_blank"&gt;SAS Help Center: Overview: PROC MIGRATE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 06:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/903597#M20878</guid>
      <dc:creator>Al_CUA</dc:creator>
      <dc:date>2023-11-17T06:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting very large sd2 datasets to sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/903602#M20879</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445854"&gt;@williamty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) can you share log from the 1st and 2nd steps.&lt;/P&gt;
&lt;P&gt;2) and you are working on Windows, right? (e.g. Linux does not have v6 engine)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 07:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-very-large-sd2-datasets-to-sas7bdat/m-p/903602#M20879</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-11-17T07:09:04Z</dc:date>
    </item>
  </channel>
</rss>

