<?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: Length format informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251719#M47609</link>
    <description>&lt;P&gt;Data test1;&lt;/P&gt;&lt;P&gt;length x $32 ;&lt;/P&gt;&lt;P&gt;format y 4.;&lt;/P&gt;&lt;P&gt;informat z 4.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In above case , we have 3 variables x ,y, z.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the code we will get the below attributes of variables:-&lt;/P&gt;&lt;P&gt;X:- length $32&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;informat $32.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format $32.&lt;/P&gt;&lt;P&gt;y:- length 8&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;informat 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format 4.&lt;/P&gt;&lt;P&gt;z:- length 8&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;informat 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format best12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If u will check Y and Z variable. U can see that for 'Y' format statement has changed informat as well.&lt;/P&gt;&lt;P&gt;But for 'Z' variable informat statement has not changed format.&lt;/P&gt;&lt;P&gt;SO my question is why SAS is doing so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2016 04:26:11 GMT</pubDate>
    <dc:creator>Ps8813</dc:creator>
    <dc:date>2016-02-23T04:26:11Z</dc:date>
    <item>
      <title>Length format informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251628#M47584</link>
      <description>For character variable if i use length statement , it will change format and informat as well.&lt;BR /&gt;&lt;BR /&gt;In numeric variable if ii only use format statement, it will change informat also. But if i only use informat statement it wont change the format.</description>
      <pubDate>Mon, 22 Feb 2016 20:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251628#M47584</guid>
      <dc:creator>Ps8813</dc:creator>
      <dc:date>2016-02-22T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Length format informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251632#M47587</link>
      <description>&lt;P&gt;The informat and format don't have to match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also not clear on what your trying to ask, can you please clarify your question?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 20:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251632#M47587</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-22T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Length format informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251648#M47588</link>
      <description>&lt;P&gt;You use informat to tell SAS how to read input, it has nothing to do with the display.&amp;nbsp; Format is how SAS will display your data and has nothing to do with how SAS reads the data from the source.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 21:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251648#M47588</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2016-02-22T21:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Length format informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251719#M47609</link>
      <description>&lt;P&gt;Data test1;&lt;/P&gt;&lt;P&gt;length x $32 ;&lt;/P&gt;&lt;P&gt;format y 4.;&lt;/P&gt;&lt;P&gt;informat z 4.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In above case , we have 3 variables x ,y, z.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the code we will get the below attributes of variables:-&lt;/P&gt;&lt;P&gt;X:- length $32&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;informat $32.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format $32.&lt;/P&gt;&lt;P&gt;y:- length 8&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;informat 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format 4.&lt;/P&gt;&lt;P&gt;z:- length 8&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;informat 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;format best12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If u will check Y and Z variable. U can see that for 'Y' format statement has changed informat as well.&lt;/P&gt;&lt;P&gt;But for 'Z' variable informat statement has not changed format.&lt;/P&gt;&lt;P&gt;SO my question is why SAS is doing so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 04:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251719#M47609</guid>
      <dc:creator>Ps8813</dc:creator>
      <dc:date>2016-02-23T04:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Length format informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251731#M47613</link>
      <description>&lt;P&gt;I can't tell you why SAS is doing it, I can only tell you that SAS has (probably) been doing it this way for a long time. Just keep in mind that it does, and write your code accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anytime I need a specific format or informat assigned to a variable, I always write it out explicitly; I never let a computer assume something that could bite me in the ass later.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-format-informat/m-p/251731#M47613</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-23T07:06:11Z</dc:date>
    </item>
  </channel>
</rss>

