<?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: Trouble with Informat:( in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536206#M147327</link>
    <description>Hi:&lt;BR /&gt;  I would expect that your program has some errors in the log. Your INFORMAT statement is not used correctly or in the right place and your PUT statement is also incorrectly positioned. INFORMAT only strips out punctuation and special characters when you read data into SAS or when you convert a character variable INTO a numeric value.&lt;BR /&gt;&lt;BR /&gt;  I suggest you read more about using informats and write more programs to prove to yourself that informats, used correctly, will produce the desired results.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
    <pubDate>Sun, 17 Feb 2019 01:19:07 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-02-17T01:19:07Z</dc:date>
    <item>
      <title>Trouble with Informat:(</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536201#M147326</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="informat.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27221i4655FB3CA9F4B033/image-size/large?v=v2&amp;amp;px=999" role="button" title="informat.PNG" alt="informat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;data format;&lt;BR /&gt;input id weight date1 ddmmyy8.;&lt;BR /&gt;format id dollar8.2 weight comma10. date1 ddmmyy8.;&lt;BR /&gt;datalines;&lt;BR /&gt;189 1450 30-12-16&lt;BR /&gt;249 1679 30-12-16&lt;BR /&gt;3456 1958 30-12-16&lt;BR /&gt;5454 2205 30-12-16&lt;BR /&gt;;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;BR /&gt;informat id comma10.;&lt;BR /&gt;put id;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the above program after reading some info about the Informat but like it says in the text, informat statement is not removing the dollar sign ($) and period(.) and I'm getting same output in both the print procedures. Please let me know where I'm doing this wrong. Thank you:)&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 00:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536201#M147326</guid>
      <dc:creator>mdoddala</dc:creator>
      <dc:date>2019-02-17T00:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Informat:(</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536206#M147327</link>
      <description>Hi:&lt;BR /&gt;  I would expect that your program has some errors in the log. Your INFORMAT statement is not used correctly or in the right place and your PUT statement is also incorrectly positioned. INFORMAT only strips out punctuation and special characters when you read data into SAS or when you convert a character variable INTO a numeric value.&lt;BR /&gt;&lt;BR /&gt;  I suggest you read more about using informats and write more programs to prove to yourself that informats, used correctly, will produce the desired results.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 17 Feb 2019 01:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536206#M147327</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-02-17T01:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Informat:(</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536207#M147328</link>
      <description>&lt;P&gt;use format not informat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data format;
input id weight date1 ddmmyy8.;
format id dollar8.2 weight comma10. date1 ddmmyy8.;
datalines;
189 1450 30-12-16
249 1679 30-12-16
3456 1958 30-12-16
5454 2205 30-12-16
;
proc print data=format;
	format id comma10.;
run;
proc contents data=format;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE class="table" style="background-color: transparent; border-collapse: collapse; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-spacing: 0px 0px; color: #000000; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 10.06px; margin-left: 355.16px; margin-right: 355.16px; orphans: 2; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; border: 0.5px solid #c1c1c1;" aria-label="Data Set WORK.FORMAT"&gt;
&lt;THEAD style="border-collapse: collapse; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-spacing: 0px 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; border: 0px none #c1c1c1;"&gt;
&lt;TR style="border-bottom-color: #c1c1c1; border-bottom-style: solid; border-bottom-width: 0px; border-top-color: #c1c1c1; border-top-style: solid; border-top-width: 1px;"&gt;
&lt;TH class="r header" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="col"&gt;Obs&lt;/TH&gt;
&lt;TH class="r header" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="col"&gt;id&lt;/TH&gt;
&lt;TH class="r header" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="col"&gt;weight&lt;/TH&gt;
&lt;TH class="r header" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="col"&gt;date1&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY style="border-collapse: collapse; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-spacing: 0px 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; border: 0px none #c1c1c1;"&gt;
&lt;TR style="border-bottom-color: #c1c1c1; border-bottom-style: solid; border-bottom-width: 0px; border-top-color: #c1c1c1; border-top-style: solid; border-top-width: 1px;"&gt;
&lt;TH class="r rowheader" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;189&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;1,450&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;30/12/16&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border-bottom-color: #c1c1c1; border-bottom-style: solid; border-bottom-width: 0px; border-top-color: #c1c1c1; border-top-style: solid; border-top-width: 1px;"&gt;
&lt;TH class="r rowheader" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;249&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;1,679&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;30/12/16&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border-bottom-color: #c1c1c1; border-bottom-style: solid; border-bottom-width: 0px; border-top-color: #c1c1c1; border-top-style: solid; border-top-width: 1px;"&gt;
&lt;TH class="r rowheader" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;3,456&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;1,958&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;30/12/16&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="border-bottom-color: #c1c1c1; border-bottom-style: solid; border-bottom-width: 0px; border-top-color: #c1c1c1; border-top-style: solid; border-top-width: 1px;"&gt;
&lt;TH class="r rowheader" style="background-color: #edf2f9; color: #112277; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: bold; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #b0b7bb; border-style: solid; padding: 3px 6px 3px 6px;" scope="row"&gt;4&lt;/TH&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;5,454&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;2,205&lt;/TD&gt;
&lt;TD class="r data" style="background-color: #ffffff; font-family: Arial,&amp;amp;quot; albany amt&amp;amp;quot;,helvetica,helv; font-size: 10.06px; font-style: normal; font-weight: 400; text-align: right; vertical-align: top; border-width: 0px 1px 1px 0px; border-color: #c1c1c1; border-style: solid; padding: 3px 6px 3px 6px;"&gt;30/12/16&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sun, 17 Feb 2019 01:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536207#M147328</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-02-17T01:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Informat:(</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536232#M147332</link>
      <description>&lt;P&gt;Maxim 2: Read the Log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;informat and put are data step statements and cannot be used outside of a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not see any dollar signs or periods in your datalines that need to be removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"ID" values are (usually) not used in calculations and should therefore be stored as character. Why do you store them as numbers and assign a dollar display format?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 06:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536232#M147332</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-17T06:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Informat:(</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536253#M147341</link>
      <description>&lt;P&gt;Formats convert values to text. They are used when displaying the data. In code you can use them in PUT statement or PUT() function.&lt;/P&gt;
&lt;P&gt;Informats convert text into values.&amp;nbsp; They are only used when reading text.&amp;nbsp; So they are used by INPUT statement or INPUT() function.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 16:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-Informat/m-p/536253#M147341</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-02-17T16:18:13Z</dc:date>
    </item>
  </channel>
</rss>

