<?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: Copy Formats to Other Libraries (without overwriting) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Copy-Formats-to-Other-Libraries-without-overwriting/m-p/119687#M10396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the MEMTYPE option on the COPY statement in PROC DATASETS so that it will only copy the datasets.&lt;/P&gt;&lt;P&gt;Use PROC CATALOG to copy the members in the format catalogs.&amp;nbsp; If you have more than one catalog you might need to loop over them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 14:53:56 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-06-26T14:53:56Z</dc:date>
    <item>
      <title>Copy Formats to Other Libraries (without overwriting)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Copy-Formats-to-Other-Libraries-without-overwriting/m-p/119686#M10395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two libraries that I want to combine into a single library.&amp;nbsp; I completed this task as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;datasets&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;copy&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=safety &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=dsur;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;datasets&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;copy&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=demog &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=dsur;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the datasets copied over just fine.&amp;nbsp; However, I noticed that after running the first PROC, all the formats in the DSUR library are present.&amp;nbsp; Then when I run the second PROC, all the formats from SAFETY are replaced by all the formats in DEMOG.&amp;nbsp; In other words, I am getting all the desired datasets, but I am only getting formats from the last library copied over.&amp;nbsp; Is there some kind of option that will not overwrite existing formats?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formats are not even named the same, by the way.&amp;nbsp; SAFETY has Action, Ctcgrd, Outcome, Relate, and Serious.&amp;nbsp; DEMOG as Cancertp, Ctry, Ethnic, Gender, and Race.&amp;nbsp; If that information helps at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Copy-Formats-to-Other-Libraries-without-overwriting/m-p/119686#M10395</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2013-06-26T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Formats to Other Libraries (without overwriting)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Copy-Formats-to-Other-Libraries-without-overwriting/m-p/119687#M10396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the MEMTYPE option on the COPY statement in PROC DATASETS so that it will only copy the datasets.&lt;/P&gt;&lt;P&gt;Use PROC CATALOG to copy the members in the format catalogs.&amp;nbsp; If you have more than one catalog you might need to loop over them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Copy-Formats-to-Other-Libraries-without-overwriting/m-p/119687#M10396</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-06-26T14:53:56Z</dc:date>
    </item>
  </channel>
</rss>

