<?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 we need to create informat in data step? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118636#M32738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still very confuse,so please at first tell me what is the purpose of the following "informat"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Informat&lt;/STRONG&gt; height comma12.3;&lt;/P&gt;&lt;P&gt;set sashelp.class ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 05:55:16 GMT</pubDate>
    <dc:creator>Mike_Davis</dc:creator>
    <dc:date>2012-11-08T05:55:16Z</dc:date>
    <item>
      <title>Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118632#M32734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know in data step we can set a format to a numeric variable to show it as a different format,such a&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;Format&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height comma12.5;&lt;/P&gt;&lt;P&gt;set sashelp.class ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is :do we sometime need to use informat in data step? if so what is the purpose?&lt;/P&gt;&lt;P&gt;such as&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;Informat height comma12.3;&lt;/P&gt;&lt;P&gt;set sashelp.class ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 18:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118632#M32734</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-11-06T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118633#M32735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe below link will help you in understanding informat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000178244.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000178244.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000178244.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 18:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118633#M32735</guid>
      <dc:creator>AkilanR</dc:creator>
      <dc:date>2012-11-06T18:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118634#M32736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and, using the same documentation that Akilan referred to, take a look at: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000148073.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000148073.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as well as the other ways of using the input statement shown in the list on the left side of that link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 18:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118634#M32736</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-06T18:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118635#M32737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a fair number of custome informats when reading text files prepared by contractors to reduce long text to a documented code value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the following infromat $HIV_ConfirmatorySample is used to read in a text field to codes used prior to the current contractor data extract provides. I often have a complimentary display format that produces shorter text in reports as the humans using the data tend to think of hte values such as "Declined" or "Referred".&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;invalue $ConfirmatorySample (just max=4 upcase)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"YES" = "01" &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"DECLINED CONFIRMATORY TEST" = "2.01"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"REFERRED TO ANOTHER AGENCY" = "2.02"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"DID NOT RETURN/COULD NOT LOCATE" = "2.03"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"OTHER REASON" = "88" &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;The shorted display formats make the data easier to read in table viewers instead of the original long text as well.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;While not as important as when memory and disk space was more expensive storing 2 ro 3 characters instead of as many as 80 can still improve performance sometimes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 22:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118635#M32737</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-11-06T22:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118636#M32738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still very confuse,so please at first tell me what is the purpose of the following "informat"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Informat&lt;/STRONG&gt; height comma12.3;&lt;/P&gt;&lt;P&gt;set sashelp.class ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 05:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118636#M32738</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-11-08T05:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118637#M32739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not a lot, other than it will move height to be the left-most variable since the statement comes before the set statement.&lt;/P&gt;&lt;P&gt;While one wouldn't typically add records to a file by setting the existing file and then using cards and an input statement, if you did, the values for height would now have to match the newly assigned informat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 15:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118637#M32739</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-08T15:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118638#M32740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very rare these days, but it could happen.&amp;nbsp; If you wanted to display the data interactively, and let the user edit the data, the informat might be useful.&amp;nbsp; For example, there might be a subsequent DATA step that uses WINDOW and DISPLAY statements, and lets the user edit the data values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also be very wary of using an informat with positions after the decimal point.&amp;nbsp; They change the variable's value, if the incoming text does not contain a decimal point.&amp;nbsp; But that's another story for another day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 15:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118638#M32740</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-11-08T15:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to create informat in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118639#M32741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really should have little effect. To me it looks like someone wanted to attach a format and accidentally typed INFORMAT instead of FORMAT.&amp;nbsp;&amp;nbsp; As Art mentions the main effect will be to cause SAS to place HEIGHT as the first variable and set the name as a 'height' instead of 'Height'. It is very hard to tell what the purpose is without a comment from the original coder.&amp;nbsp; Possible purposes:&lt;/P&gt;&lt;P&gt;- The changes that it causes.&lt;/P&gt;&lt;P&gt;- They plan to edit the file interactively with FSEDIT and want to be able to type or paste in values with commas.&lt;/P&gt;&lt;P&gt;- They want to set the attached informat metadata to help document the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 16:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Do-we-need-to-create-informat-in-data-step/m-p/118639#M32741</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-11-08T16:08:51Z</dc:date>
    </item>
  </channel>
</rss>

