Search code examples
oracle11gseparatordata-integrationoracle-data-integrator

ODI Sql Spool with GetOption of Query Separator


Hello . I need to run a select using a separator for the fields to make a sql spool WHEN use static character ;

So I do: select < % = odiRef.getColList ( " " , " [ EXPRESSION ] ',' || ' , ' || " , " " , " " ) % > from < % = snpRef.getFrom ( ) % > Now if I try to replace ' || ' , ' || " with a odiRef.getOption not working .

Some of you have already had a similar problem ?


Solution

  • try this:

    select <%=odiRef.getColList("", "[EXPRESSION]", **"||'" + odiRef.getUserExit("option_name") + "'||"**, "", "")%> from <%=snpRef.getFrom()%>