<?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: Required operator not found - but code/prompt works in a stored process in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462302#M29820</link>
    <description>&lt;P&gt;Stored processes and EG Prompts are two very different things.&amp;nbsp; EG prompts are (as far as I can remember) only there to create macro variables with some data as chosen by the user, so putting code in there is not really going to work - nor is it a very good idea in the best of cases as it could seriously impact the integrity of your system (its called SQL injection).&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 10:13:30 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-05-15T10:13:30Z</dc:date>
    <item>
      <title>Required operator not found - but code/prompt works in a stored process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462300#M29819</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i am getting this error if i do for example a substr(xx,1,4) AS xx2.&lt;/P&gt;&lt;P&gt;I implemented the code in a prompt associated with an EG programm file, and it doenst work with BIGINT, table gets not created...but it does work on an other colum(VARCHAR), with the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BIGINT column code works on a same generated prompt in a stored process and the log doenst show me the error (didnt tested if the VARCHAR works, but i assume it works too).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So im a bit confused?! How to clean the errors on the normal EG project programm and get this work with the BIGINT column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it with %sysfunc(%quote(substr(xx,1,4) AS xx2)) but that doesnt work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to understand, i put the whole substr(xx,1,4) AS xx2 in the prompt (unformated value), its in a static list and then i chose the value(formated displayed value) and take the function behind it, in this case the substr...&lt;/P&gt;&lt;P&gt;This works in a stored process with a simple prompt, but not 100% in a normal SAS EG promp associated with a program.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 09:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462300#M29819</guid>
      <dc:creator>DEBE</dc:creator>
      <dc:date>2018-05-15T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Required operator not found - but code/prompt works in a stored process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462302#M29820</link>
      <description>&lt;P&gt;Stored processes and EG Prompts are two very different things.&amp;nbsp; EG prompts are (as far as I can remember) only there to create macro variables with some data as chosen by the user, so putting code in there is not really going to work - nor is it a very good idea in the best of cases as it could seriously impact the integrity of your system (its called SQL injection).&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 10:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462302#M29820</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-15T10:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Required operator not found - but code/prompt works in a stored process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462306#M29821</link>
      <description>It works..because the code is the "data" that gets chosen.&lt;BR /&gt;&lt;BR /&gt;SQL injection on a server from outside, ok nothing new...but why or how could something like a substr or something else could impact on a system?&lt;BR /&gt;Its just a written query, what the difference between this type of query or put that hardcoded in a sas program?</description>
      <pubDate>Tue, 15 May 2018 10:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462306#M29821</guid>
      <dc:creator>DEBE</dc:creator>
      <dc:date>2018-05-15T10:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Required operator not found - but code/prompt works in a stored process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462322#M29823</link>
      <description>&lt;P&gt;How do you expect SAS (or any computer language) to run a character function like SUBSTR() on a numeric variable like BIGINT value?&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 12:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Required-operator-not-found-but-code-prompt-works-in-a-stored/m-p/462322#M29823</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-05-15T12:26:22Z</dc:date>
    </item>
  </channel>
</rss>

