<?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 calling sas formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475150#M122158</link>
    <description>&lt;P&gt;I have a question. I have defined some sas formats for different variables in a data set like for colon, stomach , digestive organs&lt;/P&gt;&lt;P&gt;eg.&amp;nbsp; value liver 100=Basalcarciinoma, 200= Sarcoma etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value stomach= .......................................&lt;/P&gt;&lt;P&gt;now I want to call all these format values at the same time in a data step in another program. Is there any way to do that?&lt;/P&gt;&lt;P&gt;I used&lt;/P&gt;&lt;P&gt;%include to bring the formats in the other program&lt;/P&gt;&lt;P&gt;normally one can then add to the data step eg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data changedformats;&lt;/P&gt;&lt;P&gt;set&amp;nbsp; dataiwanttochange;&lt;/P&gt;&lt;P&gt;if bodypart =liver then part=liver;&lt;/P&gt;&lt;P&gt;fomat part liver.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is how to I call all the format values at once like format liver. stomach. mouth. etc&lt;/P&gt;&lt;P&gt;Is there anyway to that?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jul 2018 12:15:45 GMT</pubDate>
    <dc:creator>Anita_n</dc:creator>
    <dc:date>2018-07-03T12:15:45Z</dc:date>
    <item>
      <title>calling sas formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475150#M122158</link>
      <description>&lt;P&gt;I have a question. I have defined some sas formats for different variables in a data set like for colon, stomach , digestive organs&lt;/P&gt;&lt;P&gt;eg.&amp;nbsp; value liver 100=Basalcarciinoma, 200= Sarcoma etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value stomach= .......................................&lt;/P&gt;&lt;P&gt;now I want to call all these format values at the same time in a data step in another program. Is there any way to do that?&lt;/P&gt;&lt;P&gt;I used&lt;/P&gt;&lt;P&gt;%include to bring the formats in the other program&lt;/P&gt;&lt;P&gt;normally one can then add to the data step eg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data changedformats;&lt;/P&gt;&lt;P&gt;set&amp;nbsp; dataiwanttochange;&lt;/P&gt;&lt;P&gt;if bodypart =liver then part=liver;&lt;/P&gt;&lt;P&gt;fomat part liver.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is how to I call all the format values at once like format liver. stomach. mouth. etc&lt;/P&gt;&lt;P&gt;Is there anyway to that?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 12:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475150#M122158</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2018-07-03T12:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: calling sas formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475156#M122161</link>
      <description>&lt;P&gt;So you have used PROC FORMAT somewhere in your program to create formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Later in the program, you want to use the formats. No %include is needed in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;my question is how to I call all the format values at once like format liver. stomach. mouth. etc&lt;/P&gt;
&lt;P&gt;Is there anyway to that?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format livervariable liver. stomachvariable stomach. mouthvariable mouth. /* more variables and formats can be listed here if they exist */;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jul 2018 12:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475156#M122161</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-03T12:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: calling sas formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475158#M122162</link>
      <description>&lt;P&gt;Okay, let me try that. Thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 12:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475158#M122162</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2018-07-03T12:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: calling sas formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475161#M122164</link>
      <description>&lt;P&gt;I think this is what you are asking about ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the PROC FORMAT statement, the LIBRARY= option lets you permanently save the formats you create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can make those formats available by adding (in subsequent programs)&amp;nbsp;the global option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options fmtsearch= ..... ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to do a little research on both topics (saving, and retrieving).&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 13:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calling-sas-formats/m-p/475161#M122164</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-03T13:00:29Z</dc:date>
    </item>
  </channel>
</rss>

