<?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 share SAS data set with custom formats? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598106#M172426</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117666"&gt;@rudfaden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... or send the format in a data set ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know how to send the format in a data set. Please give an example.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 12:46:24 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-10-21T12:46:24Z</dc:date>
    <item>
      <title>How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598100#M172422</link>
      <description>&lt;P&gt;Here's the situation. I create a SAS Data set, where some of the variables have custom formats. Then, a colleague asks me to share this data set with him, but he can't open it because he doesn't have the custom formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know he can use the NOFMTERR option and then he can open the SAS data set, but then he can't see the custom formatted data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I can create a permanent format library and also share that with my colleague, and he can then issue the FMTSEARCH= option appropriately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a better or easier way?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598100#M172422</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-21T12:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598103#M172425</link>
      <description>&lt;P&gt;You can either send the format catalog or send the format in a data set and then let the reciever read the format themselves. By using the latter you avoid compatability issues.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598103#M172425</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2019-10-21T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598106#M172426</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117666"&gt;@rudfaden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... or send the format in a data set ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know how to send the format in a data set. Please give an example.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598106#M172426</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-21T12:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598108#M172428</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/forum2007/068-2007.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/forum2007/068-2007.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598108#M172428</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2019-10-21T12:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598110#M172430</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How is that superior to creating a permanent format library, and then having my colleague use the FMTSEARCH= option?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598110#M172430</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-21T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598111#M172431</link>
      <description>&lt;PRE&gt;proc format ;
value fmt
 low-12='Y'
 other='N';
run;

proc format library=work cntlout=fmt;
select fmt;
run;




/****Your colleague side ,run this ******/
proc format  cntlin=work.fmt;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598111#M172431</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-21T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598112#M172432</link>
      <description>&lt;P&gt;I don't know if you can call it superior. But if you share a catalog between e.i. a 64 and 32 bit SAS, you will not be able to read the format catalog. But you can create the format from the data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598112#M172432</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2019-10-21T13:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598115#M172434</link>
      <description>&lt;P&gt;With CEDA (ability to read data written using a different SAS version or different operating system) a SAS dataset (SAS7BDAT file) is easier to transfer than a format catalog.&amp;nbsp; To transfer a format catalog to a different version of SAS you need to create a transport file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For most formats the best way to share them is to send the SAS code to create the format.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598115#M172434</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-21T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598118#M172436</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;With CEDA (ability to read data written using a different SAS version or different operating system) a SAS dataset (SAS7BDAT file) is easier to transfer than a format catalog.&amp;nbsp; To transfer a format catalog to a different version of SAS you need to create a transport file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For most formats the best way to share them is to send the SAS code to create the format.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For this particular custom format, it is created within a large macro, and so I don't have static code that I can save and then send. Each time the macro runs, it may create different PROC FORMAT code. In this case, it sounds to me that the CNTLOUT= method to save the format as a SAS data set would be the best way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598118#M172436</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-21T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598119#M172437</link>
      <description>&lt;P&gt;Sir&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I seek your clarification as I understand that meaning share/place the code in a server in multi user environment perhaps as an autoexec file, of course restricting users to appropriate departments in the organization?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598119#M172437</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-10-21T13:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598131#M172441</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sir&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I seek your clarification as I understand that meaning share/place the code in a server in multi user environment perhaps as an autoexec file, of course restricting users to appropriate departments in the organization?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what you are asking.&amp;nbsp; If you have shared format catalogs you could just share them.&amp;nbsp; The FMTSEARCH option can be used to control which catalogs are searched.&amp;nbsp; Of course you might have issues with name conflicts if you have many independent format catalogs that users might need to work with together.&amp;nbsp; Naming conventions can help with that.&amp;nbsp; You might want to implement a hierarchy of format definitions and reflect that in the storage and search order.&amp;nbsp; So you might have company wide formats, department level, project level.&amp;nbsp; Then set your search path appropriately.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598131#M172441</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-21T13:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598133#M172442</link>
      <description>&lt;P&gt;Makes sense.&amp;nbsp; You can also convert the CNTLOUT/CNTLIN dataset into a text file (CSV for example) to make it even more portable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also depending on how the dynamic formats are being generated the macro might also create a the program file with the PROC FORMAT code to create the needed formats to the current run.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598133#M172442</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-21T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to share SAS data set with custom formats?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598134#M172443</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;You might want to &lt;EM&gt;&lt;STRONG&gt;implement a hierarchy of format definitions and reflect that in the storage and search order&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; So you might have&lt;STRONG&gt;&lt;EM&gt; company wide formats, department level, project level&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; Then set your search path appropriately."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That's what I wanted to learn. Cool. Sorry if i didn't phrase the question properly. Well, you comprehended it clean. Thank you for your time! Appreciate it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-share-SAS-data-set-with-custom-formats/m-p/598134#M172443</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-10-21T13:43:24Z</dc:date>
    </item>
  </channel>
</rss>

