<?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: INFORMAT: How not to read (') ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249494#M46937</link>
    <description>&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;data ABC.Entire_database_second;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;infile "/v_share/Xiaomin/SCOPES/sas_dataset/Oct-08-2015/ScopesCalculations_SecondaryConstruction_*" linesize = 300 firstobs = 2 DSD ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Informat &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_ST $3.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_DSTRB_AREA $5.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;N_RSK $7.0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;input&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_ST $&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_DSTRB_AREA $&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;N_RSK $&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;and attached is the csv file. Thank you&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2016 17:36:25 GMT</pubDate>
    <dc:creator>almmotamedi</dc:creator>
    <dc:date>2016-02-11T17:36:25Z</dc:date>
    <item>
      <title>INFORMAT: How not to read (') ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249490#M46934</link>
      <description>&lt;P&gt;Hi SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set (csv file) including several variables. The values of the variables include a (') at the begining like below . Could you please advise how to use INFORMAT, and &lt;U&gt;not&lt;/U&gt; to read the (') and just the numbers/characters ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'WV99&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249490#M46934</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-11T17:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT: How not to read (') ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249491#M46935</link>
      <description>&lt;P&gt;Share with us the code you tried and a few lines of the csv file.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249491#M46935</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-02-11T17:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT: How not to read (') ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249493#M46936</link>
      <description>&lt;P&gt;You can us COMPRESS function to get rid of all single quotation in your variables. Or you can use SUBSTR if your variable contains other desired single quotation other than the one in the beginning.&lt;/P&gt;
&lt;P&gt;For example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input x $;
x=compress(x,"'");
cards;
're34
'466
'terew
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249493#M46936</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-11T17:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT: How not to read (') ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249494#M46937</link>
      <description>&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;data ABC.Entire_database_second;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;infile "/v_share/Xiaomin/SCOPES/sas_dataset/Oct-08-2015/ScopesCalculations_SecondaryConstruction_*" linesize = 300 firstobs = 2 DSD ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Informat &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_ST $3.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_DSTRB_AREA $5.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;N_RSK $7.0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;input&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_ST $&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;C_DSTRB_AREA $&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;N_RSK $&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;and attached is the csv file. Thank you&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249494#M46937</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-11T17:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT: How not to read (') ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249499#M46941</link>
      <description>Thank you</description>
      <pubDate>Thu, 11 Feb 2016 17:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249499#M46941</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-11T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: INFORMAT: How not to read (') ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249526#M46952</link>
      <description>&lt;P&gt;The $QUOTE informat will also do that. &amp;nbsp;An you can associate the INFORMAT with all character variables.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;33         data test;
34            input x:$quote.;
35            put x=;
36            list;
37            cards;

x=re34
RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     
38         're34
x=466
39         '466
x=terew
40         'terew&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFORMAT-How-not-to-read/m-p/249526#M46952</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-11T19:58:46Z</dc:date>
    </item>
  </channel>
</rss>

