title: snowflake stored procedure is throwing unexpected Token error
body: <p>I have written down a procedure by following the snowflake documentation to generate a list of 'SET' statement and execute them in Snowflake. I'm getting Unexpected identifier error while calling the procedure. could somebody please help me out here.</p>
  <pre><code>create or replace procedure SET_ENV()
      returns string
      language JavaScript
      as
      $$
      MASTER_QUERY = {sqlText: SELECT ('SET '||TABLE_NAME||'= 
      CONCAT($Database_pre,'||'''.'''||',$Schema_pre,'||'''.'''||','''||TABLE_NAME||''');') AS 
   QUERY
   FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'
   AND( TABLE_NAME NOT LIKE 'TMP_%' AND TABLE_NAME NOT LIKE '%WRK_%')};
      STATEMENT = snowflake.createStatement(MASTER_QUERY);
  
    rs = STATEMENT.execute();
  
  
  
    var s = '';
    while (rs.next())  {
    
        EXECUTION_QUERY = {sqlText: rs.getColumnValue(&quot;QUERY&quot;)};
        stmtEx = snowflake.createStatement(EXECUTION_QUERY);
        stmtEx.execute();
        s += rs.getColumnValue(1) + &quot;\n&quot;;
        }
         
    return s;
    
    $$
  </code></pre>
  <p>;</p>
  <pre><code> CALL SET_ENV() 
  </code></pre>
  <p>The error i'm getting is as follows.</p>
  <p>JavaScript compilation error: Uncaught SyntaxError: Unexpected identifier in SET_ENV at 'MASTER_QUERY = {sqlText: 'SELECT ('SET '||TABLE_NAME||'= ' position 35</p>