<?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: how to read character data that has quotation. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213370#M39413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other option without changing my entire code . Because I have 30 similar code with lot of&amp;nbsp; variables in input statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 13:21:07 GMT</pubDate>
    <dc:creator>nbonda</dc:creator>
    <dc:date>2015-06-25T13:21:07Z</dc:date>
    <item>
      <title>how to read character data that has quotation.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213368#M39411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a code that read a text file, with delimiter pipe (|)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;data sample;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Infile 'C:\mydata\test.txt' DSD&amp;nbsp; DLM='|'&amp;nbsp; LRECL=1024 MISSOVER&amp;nbsp; FIRSTOBS=1 TERMSTR=LF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Input&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fname :$CHAR20. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lname :$CHAR30. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; city :$CHAR40. &lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="279.9490399999999" style="font-family: monospace;"&gt;&lt;STRONG style="font-size: 14pt;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample text file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jen|Turner|'Chicago'&lt;/P&gt;&lt;P&gt;David||'New York'&lt;/P&gt;&lt;P&gt;Michael|ybarra|Detroit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use DSD option ,SAS not&amp;nbsp; reading single quotes and consecutive delimiters reading as missing value...., Without DSD option SAS reads single quotes, but&amp;nbsp; consecutive delimiters are not reading as missed value.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Is there any infile options or a statement that reads single quotations in data and consider missing value for consecutive delimiter.? Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 23:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213368#M39411</guid>
      <dc:creator>nbonda</dc:creator>
      <dc:date>2015-06-24T23:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to read character data that has quotation.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213369#M39412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the tilde format modifier :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data sample;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;length fname $20 lname $30 city $40;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Infile datalines dsd DLM='|' MISSOVER;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input fname ~ lname ~ city ~;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jen|Turner|'Chicago'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;David||'New York'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Michael|ybarra|Detroit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=sample; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 04:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213369#M39412</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-06-25T04:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to read character data that has quotation.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213370#M39413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other option without changing my entire code . Because I have 30 similar code with lot of&amp;nbsp; variables in input statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 13:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213370#M39413</guid>
      <dc:creator>nbonda</dc:creator>
      <dc:date>2015-06-25T13:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to read character data that has quotation.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213371#M39414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3&gt;Code: Program&lt;/H3&gt;&lt;DIV class="sce-html-export" style="font-family: 'Courier New', Menlo, 'Lucida Console';"&gt;&lt;PRE class="sce-render" style="font-family: 'Courier New', Menlo, 'Lucida Console'; font-size: 16px;"&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;sample&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;Infile&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;dsd&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;DLM&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'|'&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;MISSOVER&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;Input&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;fname&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;~&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="format" style="color: #008080;"&gt;$20.&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;lname&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;~&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="format" style="color: #008080;"&gt;$20.&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;city&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;~&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="format" style="color: #008080;"&gt;$20.&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;Jen|Turner|'Chicago'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;David||'New York'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;Michael|ybarra|Detroit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN class="sep" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 13:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-character-data-that-has-quotation/m-p/213371#M39414</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-25T13:32:17Z</dc:date>
    </item>
  </channel>
</rss>

