<?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: Export formatc files as csv in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646801#M193521</link>
    <description>&lt;P&gt;It is not clear what you are talking about.&amp;nbsp; If you have a SAS dataset then it is easy to make CSV file.&amp;nbsp; PROC EXPORT for example.&lt;/P&gt;
&lt;P&gt;If you have a FORMAT catalog you can use PROC FORMAT to generate a SAS dataset with the format definitions.&amp;nbsp; You can then make a CSV file from the dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib 'my-path';
proc format noprint lib=mylib.mycatalog cntlout=my_formats; run;
proc export data=my_formats dbms=csv
  file="my_formats.csv" replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 May 2020 16:48:12 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-05-11T16:48:12Z</dc:date>
    <item>
      <title>Export formatc files as csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646787#M193517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if this has been answered. Our databases have formatc files separate from the data files. These are formatc files I can display in the html view, and I want to export their values to a csv file so I can use them outside of sas.&lt;/P&gt;&lt;P&gt;In short, how do I make a LUT csv from the formatc files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 16:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646787#M193517</guid>
      <dc:creator>python_user</dc:creator>
      <dc:date>2020-05-11T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export formatc files as csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646801#M193521</link>
      <description>&lt;P&gt;It is not clear what you are talking about.&amp;nbsp; If you have a SAS dataset then it is easy to make CSV file.&amp;nbsp; PROC EXPORT for example.&lt;/P&gt;
&lt;P&gt;If you have a FORMAT catalog you can use PROC FORMAT to generate a SAS dataset with the format definitions.&amp;nbsp; You can then make a CSV file from the dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib 'my-path';
proc format noprint lib=mylib.mycatalog cntlout=my_formats; run;
proc export data=my_formats dbms=csv
  file="my_formats.csv" replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 16:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646801#M193521</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-11T16:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export formatc files as csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646806#M193525</link>
      <description>&lt;P&gt;By "formatc" file do you mean a SAS format catalog?&lt;/P&gt;
&lt;P&gt;If so you can create a data set from the catalog using the Format procedure with the cntlout=datasetname option and then use the approach posted by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;proc format library=libname.catname cntlout=work.catnameformats;
run;&lt;/PRE&gt;
&lt;P&gt;where libname is the library containing the catalog catname is the name of the catalog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is not a SAS format catalog then we need some info such as are these SAS data sets?&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 16:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646806#M193525</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-11T16:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export formatc files as csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646813#M193527</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The " proc format noprint lib=fmt_file cntlout=data_out;" is what I was missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 17:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-formatc-files-as-csv/m-p/646813#M193527</guid>
      <dc:creator>python_user</dc:creator>
      <dc:date>2020-05-11T17:15:12Z</dc:date>
    </item>
  </channel>
</rss>

