<?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: Do the START and END values in a user defined format have to be text? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76383#M22154</link>
    <description>Your use of the PUT function identifies a CHARACTER type format being used, not a NUMERIC format.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sat, 24 Oct 2009 20:48:05 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-10-24T20:48:05Z</dc:date>
    <item>
      <title>Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76376#M22147</link>
      <description>Do the START and END values in a user defined format have to be text?  I'm trying to use the format as a lookup table to optain the company division/region and area names for each cost center number, to do a report for my company.  Currently, the cost center number column on our main reporting dataset is numeric.  Will I have to convert it to text to perform the lookup, then convert it back to numeric when the report is output?</description>
      <pubDate>Wed, 21 Oct 2009 15:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76376#M22147</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2009-10-21T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76377#M22148</link>
      <description>PROC FORMAT can generate either a numeric or character format which is dependent on your input variable.   See the DOC link below, hosted at the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Base SAS Procedures Guide - The FORMAT Procedure&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000063536.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000063536.htm&lt;/A&gt;</description>
      <pubDate>Wed, 21 Oct 2009 23:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76377#M22148</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-10-21T23:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76378#M22149</link>
      <description>a format is used as a value is "put".&lt;BR /&gt;
As such it provides text (often numeric text, but still text)&lt;BR /&gt;
That seems just fine for output.&lt;BR /&gt;
If your "output" is to be received in an environment where it is to be treated as numeric (like a database or excel) you'll be able to support the receiving environment with more information, like DBtype option (iirc) through SAS/Access, or tagattr strings through tagsets.excelXP&lt;BR /&gt;
 &lt;BR /&gt;
lots of options available.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Thu, 22 Oct 2009 22:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76378#M22149</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-10-22T22:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76379#M22150</link>
      <description>The question posed by the OP was about START and END, not LABEL.  Yes, the LABEL response to a format is character.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 23 Oct 2009 00:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76379#M22150</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-10-23T00:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76380#M22151</link>
      <description>Scott&lt;BR /&gt;
&lt;BR /&gt;
reading the OP question beyond the subjectline question[pre]&amp;gt;  I'm trying to use the format as a&lt;BR /&gt;
&amp;gt; lookup table to optain the company division/region&lt;BR /&gt;
&amp;gt; and area names for each cost center number, &lt;BR /&gt;
&amp;gt;  Currently, the cost center&lt;BR /&gt;
&amp;gt; number column on our main reporting dataset is&lt;BR /&gt;
&amp;gt; numeric.  Will I have to convert it to text to&lt;BR /&gt;
&amp;gt; perform the lookup, [/pre]&lt;BR /&gt;
&lt;BR /&gt;
I decided to answer the part that you had not already answered.&lt;BR /&gt;
 &lt;BR /&gt;
Chandler's program &lt;B&gt;won't need to convert&lt;/B&gt; his cost center number to perform the look-up.&lt;I&gt;(imho)&lt;/I&gt;&lt;BR /&gt;
Would you agree?&lt;BR /&gt;
 &lt;BR /&gt;
PeterC

Message was edited by: Peter.C</description>
      <pubDate>Fri, 23 Oct 2009 08:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76380#M22151</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-10-23T08:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76381#M22152</link>
      <description>Who knows how the PUT-returned character data was to be used.  Cleary you saw an opportunity and shared beyond the minimum.  No fault seen there.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 23 Oct 2009 18:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76381#M22152</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-10-23T18:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76382#M22153</link>
      <description>Thanks to both of you.  Sample numeric cost center ("START) data used in PROC FORMAT below:&lt;BR /&gt;
&lt;BR /&gt;
START    END       LABEL&lt;BR /&gt;
102300    102300   North Georgia&lt;BR /&gt;
107500    107500   Central Florida &lt;BR /&gt;
&lt;BR /&gt;
Code in program to generate "North Georgia" label by applying above format:&lt;BR /&gt;
&lt;BR /&gt;
format bk_grp bk_area $103. ;&lt;BR /&gt;
      bk_area = put(cost_cntr,$z_bkar.) ;</description>
      <pubDate>Fri, 23 Oct 2009 20:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76382#M22153</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2009-10-23T20:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Do the START and END values in a user defined format have to be text?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76383#M22154</link>
      <description>Your use of the PUT function identifies a CHARACTER type format being used, not a NUMERIC format.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 24 Oct 2009 20:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-the-START-and-END-values-in-a-user-defined-format-have-to-be/m-p/76383#M22154</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-10-24T20:48:05Z</dc:date>
    </item>
  </channel>
</rss>

