<?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: SAS EDI - Strings in the automatically generated where statement in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/399311#M12113</link>
    <description>&lt;P&gt;Thanks, I'll give that a try and post the results if they respond.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 19:20:24 GMT</pubDate>
    <dc:creator>CliftonDenning</dc:creator>
    <dc:date>2017-09-27T19:20:24Z</dc:date>
    <item>
      <title>SAS EDI - Strings in the automatically generated where statement</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/398870#M12104</link>
      <description>&lt;P&gt;Using SAS Data Integration studio, when you create a summary transformation in the table options advanced tab you can add a where statement to your code automatically. Unfortunately it adds some code that makes this resolve incorrectly. Putting the following in the where statement text box:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TESTFIELD = "TESTVALUE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Auto generates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let _INPUT_options = %nrquote(WHERE = %(TESTFIELD = %"TESTVALUE%"%));&lt;/P&gt;&lt;P&gt;In the code, used&lt;/P&gt;&lt;P&gt;proc tabulate data = &amp;amp;_INPUT (&amp;amp;_INPUT_options)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But resolves to&lt;/P&gt;&lt;P&gt;WHERE = (TESTFIELD = "TESTVALUE")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _ 22 ERROR: Syntax error while parsing WHERE clause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, (, *, +, -, :, INPUT, NOT, PUT, ^, ~.&lt;/P&gt;&lt;P&gt;(Sorry if the spacing doesn't work out in the actual post, the error is under the first double qoutes mark)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is this: Is there a way to add a function to the where statement box that would allow this quotation mark to be properly added here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that all functions get the preceding % when added to the where statement automatically and I have no control over that. This seems like something that should be relatively easy to fix but I haven't found a simple way yet.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 16:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/398870#M12104</guid>
      <dc:creator>CliftonDenning</dc:creator>
      <dc:date>2017-09-26T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EDI - Strings in the automatically generated where statement</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/399102#M12106</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140116"&gt;@CliftonDenning&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;That looks like something worth raising a SAS TechSupport track for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my mind the DIS generated code should add an %unquote() function for things to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc tabulate data = &amp;amp;_INPUT (&lt;FONT color="#FF0000"&gt;%unquote(&lt;/FONT&gt;&amp;amp;_INPUT_options&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 10:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/399102#M12106</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-27T10:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EDI - Strings in the automatically generated where statement</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/399311#M12113</link>
      <description>&lt;P&gt;Thanks, I'll give that a try and post the results if they respond.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 19:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/399311#M12113</guid>
      <dc:creator>CliftonDenning</dc:creator>
      <dc:date>2017-09-27T19:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EDI - Strings in the automatically generated where statement</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/400309#M12164</link>
      <description>&lt;P&gt;Thank you all for your responses. Long story short, I ended up creating a SAS Troubleshooting ticket. The analyst told me that they have now documented the&amp;nbsp; issue, which should now be resolved in a future iteration of DI.&lt;/P&gt;&lt;P&gt;The temporary solution was to create a new transformation, with a slight alteration, adding an UNQOUTE to the source code before the input options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc tabulate data = &amp;amp;_INPUT (%unquote(&amp;amp;_INPUT_options)) %unquote(&amp;amp;procOptions);&lt;/P&gt;&lt;P&gt;For those interested you will need to create the transformation in a public subfolder of your project so others can use it. Not what I was hoping for, but a workable solution while waiting for the version update.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-EDI-Strings-in-the-automatically-generated-where-statement/m-p/400309#M12164</guid>
      <dc:creator>CliftonDenning</dc:creator>
      <dc:date>2017-10-02T15:29:15Z</dc:date>
    </item>
  </channel>
</rss>

