<?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 export dataset to a  sas7bdat file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687698#M208799</link>
    <description>Yes. I made sure that. I will close my all files and run the data again. I will let you know it it works or not</description>
    <pubDate>Wed, 30 Sep 2020 00:45:37 GMT</pubDate>
    <dc:creator>abdulla</dc:creator>
    <dc:date>2020-09-30T00:45:37Z</dc:date>
    <item>
      <title>how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687684#M208785</link>
      <description>&lt;P&gt;Can anyone help me with the following?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=have&lt;/P&gt;&lt;P&gt;outfile="&amp;amp;output.want.dat"&lt;/P&gt;&lt;P&gt;dbms=DLM&lt;/P&gt;&lt;P&gt;replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my libname created. But&amp;nbsp;this one is not working&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687684#M208785</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-09-29T23:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687686#M208787</link>
      <description>&lt;P&gt;In your example, have is already a&amp;nbsp;&lt;SPAN&gt;sas7bdat&amp;nbsp;file since it is in the work library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to copy it to a permanent&amp;nbsp;&amp;nbsp;library you can use proc copy, or just another data step.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;libname dest "&amp;amp;output";
data dest.want;
  set have;
run;&lt;/PRE&gt;
&lt;P&gt;The export procedure for creating non-SAS files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687686#M208787</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-30T00:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687688#M208789</link>
      <description>This doesn't create sas7bdat file. It creates a file for as code, not for data.</description>
      <pubDate>Wed, 30 Sep 2020 00:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687688#M208789</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-09-30T00:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687689#M208790</link>
      <description>&lt;P&gt;You asked to:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;export dataset to a sas7bdat&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS7BDAT is the extension for a SAS dataset.&lt;/P&gt;
&lt;P&gt;What format do you want output, and where?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687689#M208790</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-30T00:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687690#M208791</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let output = C:\temp\;
data have;
  x = 1;
run;
proc export data=have
   outfile="&amp;amp;output.want.dat"
   dbms=DLM
   replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Is this what you are trying to do?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687690#M208791</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-30T00:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687692#M208793</link>
      <description>ERROR: Export unsuccessful. See SAS Log for details</description>
      <pubDate>Wed, 30 Sep 2020 00:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687692#M208793</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-09-30T00:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687693#M208794</link>
      <description>Does my last example work?</description>
      <pubDate>Wed, 30 Sep 2020 00:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687693#M208794</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-30T00:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687694#M208795</link>
      <description>No, it doesn't. It gives the following:&lt;BR /&gt;&lt;BR /&gt;ERROR: Export unsuccessful. See SAS Log for details</description>
      <pubDate>Wed, 30 Sep 2020 00:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687694#M208795</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-09-30T00:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687695#M208796</link>
      <description>&lt;P&gt;Is there anything further up the log that gives more information?&lt;/P&gt;
&lt;P&gt;Did you change the line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let output = C:\Temp\&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To a location that exists and that you have write permission too?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687695#M208796</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-30T00:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687696#M208797</link>
      <description>I copied your data and just changed the path to see whether it works or not. It doesn't export file. Is it working for you?</description>
      <pubDate>Wed, 30 Sep 2020 00:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687696#M208797</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-09-30T00:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687697#M208798</link>
      <description>&lt;P&gt;Yes, that code runs exactly like it is posted.&lt;/P&gt;
&lt;P&gt;Are you making sure your path ends in a \ ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687697#M208798</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-30T00:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687698#M208799</link>
      <description>Yes. I made sure that. I will close my all files and run the data again. I will let you know it it works or not</description>
      <pubDate>Wed, 30 Sep 2020 00:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687698#M208799</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-09-30T00:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687701#M208800</link>
      <description>&lt;P&gt;Your PROC EXPORT creates a text file with a .dat extension not a SAS7BDAT file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a SAS7BDAT file you place it into that library and the file is created. If you want a text file you use a PROC EXPORT and ensure you have the path correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Export"/Save to a SAS7BDAT file to the myfolders folder.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myFiles "/folders/myfolders/";

proc copy in=work  /*library of input files*/
                out=myFiles; /*library of output files*/
select WANT; *dataset to copy is called want;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Export to a text file - Tab (09x) delimited, if you want a different delimiter change the delimiter statement.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=sashelp.class
outfile = "/folders/myfolders/class.dat" dbms=dlm replace;
delimiter = '09'x;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Make sure you code works before you add macro variables and then add the macro variables once it's working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260675"&gt;@abdulla&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Can anyone help me with the following?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc export data=have&lt;/P&gt;
&lt;P&gt;outfile="&amp;amp;output.want.dat"&lt;/P&gt;
&lt;P&gt;dbms=DLM&lt;/P&gt;
&lt;P&gt;replace;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have my libname created. But&amp;nbsp;this one is not working&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687701#M208800</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-30T01:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687702#M208801</link>
      <description>&lt;P&gt;If your code isn't working after this, post the exact code and log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260675"&gt;@abdulla&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes. I made sure that. I will close my all files and run the data again. I will let you know it it works or not&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/687702#M208801</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-30T01:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to export dataset to a  sas7bdat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/688785#M209330</link>
      <description>It didn't work. By the way, I got the solution. Thank you for your effort.</description>
      <pubDate>Sun, 04 Oct 2020 19:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-dataset-to-a-sas7bdat-file/m-p/688785#M209330</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-10-04T19:28:17Z</dc:date>
    </item>
  </channel>
</rss>

