<?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: Read any string &amp;quot;as-is&amp;quot; without any smarts like removing quotes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-a-string-quot-as-is-quot-without-any-smarts-like-removing/m-p/801279#M315341</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Insert the tilde modifier after &lt;FONT face="courier new,courier"&gt;snippet&lt;/FONT&gt; in the INPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;  snippet &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;~&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Mar 2022 10:39:44 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-03-10T10:39:44Z</dc:date>
    <item>
      <title>Read a string "as-is" without any smarts like removing quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-a-string-quot-as-is-quot-without-any-smarts-like-removing/m-p/801277#M315340</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sure there must be a simple answer but right now throwing a blank.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I use DSD but also instruct SAS to read the data "as-is" without ever removing quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In below sample what do I need to change so variable &lt;EM&gt;snippet&lt;/EM&gt; stores the value 'alfred' in quotes?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data control.rule_instances;
  attrib
    rule_type length=$30  informat=$30.
    libref    length=$8   informat=$8.
    table     length=$32  informat=$32.
    column    length=$32  informat=$32.
    snippet   length=$500 informat=$500.
    ;

  infile datalines4 dsd truncover dlm='|';
  input
    rule_type
    libref   
    table    
    column   
    snippet  
    ;

  datalines4;
Not Null|work|sample|name
Not Null|work|sample|sex
In a List|work|sample|sex|'F','M'
Not In a List|work|sample|name|'alfred'
Not In a List|||demo|'alfred'
;;;;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1646908485936.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69319i3690CA633E96D418/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1646908485936.png" alt="Patrick_0-1646908485936.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-a-string-quot-as-is-quot-without-any-smarts-like-removing/m-p/801277#M315340</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-03-10T10:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read any string "as-is" without any smarts like removing quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-a-string-quot-as-is-quot-without-any-smarts-like-removing/m-p/801279#M315341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Insert the tilde modifier after &lt;FONT face="courier new,courier"&gt;snippet&lt;/FONT&gt; in the INPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;  snippet &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;~&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-a-string-quot-as-is-quot-without-any-smarts-like-removing/m-p/801279#M315341</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-03-10T10:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read any string "as-is" without any smarts like removing quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-a-string-quot-as-is-quot-without-any-smarts-like-removing/m-p/801280#M315342</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-a-string-quot-as-is-quot-without-any-smarts-like-removing/m-p/801280#M315342</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-03-10T10:43:27Z</dc:date>
    </item>
  </channel>
</rss>

