<?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 9.4 32 bit datasets into 9.4 64 bit datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370576#M88507</link>
    <description>&lt;P&gt;So you don't know yet which ones need to be converted?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 13:49:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-06-26T13:49:10Z</dc:date>
    <item>
      <title>Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370530#M88494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to convert some datasets that were created in 32 bit SAS into 64 bit sas (both 9.4).&amp;nbsp; I found proc migrate, but no example i've found lists datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found:&lt;BR /&gt;libname in "path";&lt;/P&gt;&lt;P&gt;libname out base "path"&lt;/P&gt;&lt;P&gt;proc migrate in=in out=out; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The datasets i have to convert exist in a library with 100s of other datasets.&amp;nbsp; I can't migrate the entire library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to convert just 5 of the datasets?&amp;nbsp; Where to list them? I'm not seeing any examples of code with a leading key word like "var" in proc print or "tables" in proc freq or "delete or change" in proc datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Megan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Solved.&amp;nbsp; Thanks guys!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370530#M88494</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2017-06-26T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370536#M88497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71196"&gt;@MeganE&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CPORT/CIMPORT procedures might be what you're looking for.&lt;/P&gt;
&lt;P&gt;With the CPORT proc, you can select your SAS Files, furtehr details are available here&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/70377/HTML/default/viewer.htm#p0v36fq2v53pv8n1042qyv9gvxkn.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/70377/HTML/default/viewer.htm#p0v36fq2v53pv8n1042qyv9gvxkn.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370536#M88497</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2017-06-26T13:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370540#M88500</link>
      <description>&lt;P&gt;Move the datasets in question to a new library, run proc migrate there, and copy back.&lt;/P&gt;
&lt;P&gt;AFAIK, 32-bit datasets should be readable anyway, they just use CEDA. So you could simply rename the datasets first, then use a data step to recreate them as 64-bit, then remove the renamed dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370540#M88500</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-26T13:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370543#M88501</link>
      <description>&lt;P&gt;Thanks. While copying them over and then trying this is an option, they're quite large, one is 60gb.&amp;nbsp; 14gb, 16 gb, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370543#M88501</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2017-06-26T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370560#M88505</link>
      <description>&lt;P&gt;If you can read them (what I suppose), rename them with proc datasets and then do a simple&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data whatever;
set _whatever;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then remove the renamed instances.&lt;/P&gt;
&lt;P&gt;proc migrate will also do a complete read/write, so the overall load should be the same.&lt;/P&gt;
&lt;P&gt;Don't forget to add the compress=yes option if the datasets are already compressed. If they are not yet compressed, consider using the option. You might save lots of disk space.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370560#M88505</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-26T13:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370574#M88506</link>
      <description>&lt;P&gt;But what is the proc migrate code.&amp;nbsp; So far, through all of my googling and asking, all i can find on proc migrate is converting an entire libarary.&amp;nbsp; As like i said in my original post, i can't migrate the entire library.&amp;nbsp; There are 100s of datasets in there and i just need to migrate 5.&amp;nbsp; How do you list the datasets out?&amp;nbsp; I can't find that part anywhere.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370574#M88506</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2017-06-26T13:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370576#M88507</link>
      <description>&lt;P&gt;So you don't know yet which ones need to be converted?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370576#M88507</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-26T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370580#M88509</link>
      <description>&lt;P&gt;For such a simple issue no need to use PROC MIGRATE. &amp;nbsp;You should be able to do it using PROC COPY.&lt;/P&gt;
&lt;P&gt;If you are running the conversion using the target 64bit version of SAS then just make a new library and copy the files.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname old 'directory with 32bit files';
libname new 'directory for 64bit files';
proc copy inlib=old outlib=new datecopy noclone ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Otherwise use the OUTREP= option to tell SAS what format to create.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/ledsoptsref/69751/HTML/default/viewer.htm#n0p1yuyzltd52jn1dubaao0dlk2m.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/ledsoptsref/69751/HTML/default/viewer.htm#n0p1yuyzltd52jn1dubaao0dlk2m.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370580#M88509</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-26T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 9.4 32 bit datasets into 9.4 64 bit datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370581#M88510</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71196"&gt;@MeganE&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation for the MIGRATE procedure states "Migrates a SAS library forward to the current release of SAS.", you can't select individual datasets.&lt;/P&gt;
&lt;P&gt;Not sure if it's the best option but the CPORT proc will let you select datasets you want to migrate.&lt;/P&gt;
&lt;P&gt;Then the CIMPORT will read the transport file, for instance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename test "c:\temp\test.cpo";
proc cport lib=sashelp file=test;
select cars class;
run;

proc cimport infile=test library=work;
run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-9-4-32-bit-datasets-into-9-4-64-bit-datasets/m-p/370581#M88510</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2017-06-26T13:53:57Z</dc:date>
    </item>
  </channel>
</rss>

