Expression syntax

Hi
In an "ADF Task Flow", i'm trying to use a router to select which page will show base on the result from a query (if empty, page A, else page B).
There is alot option in expression builder of the router.. but not much related to the results of my query?!?
Thanks for your help
Ben
note: I'm using jdev 12c

Not exactly your use case, but it should get you started. The key is to execute the vo query first and then check if the iterator returned zero rows or more than zero rows.
Check http://tompeez.wordpress.com/2012/12/01/jdeveloper-11-1-1-5-0-use-router-to-create-new-row-or-edit-existing/for more info.
Timo

Similar Messages

  • Expression syntax in TestStand 4.0 tutorial

    Hello All
    Teststand is new to me, and I am trying its tutorial with "Using TestStand" manual.
    At the Using TestSTand page 3-7, Insert a Template Step step 7, we insert a
    message popup "Retry if Previous Step Fails".  This step has post action "Goto Step",
    but it doesn't goto next step and uses an expression "RunState.PreviousStep.TS.Id".
    I can't find the expression at the expression browser and don't know what this means.
    There is a RunState.PreviousStep at the expression browser but no "TS.Id". 
    I've attached a pic (teststand_ques.jpg) to show the expression.  Could anyone
    tell me its meaning. 
    Also, is there any manual or guide of TestStand expression syntax?  I know expression
    browser shows its operator and functions, but I'd like to have a detail reference manual.
    Thank you
    Attachments:
    teststand_ques.JPG ‏214 KB

    Hi,
    The TS is a hidden property of the Step.
    You can unhid this property by a setting in the Station Options select the Preference Tab.
    You actually dont need to enable this setting, you could of just typed it in (, the .TS.id I mean). But when learning it is handy to see all the properties.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Assignment Expression Syntax Guide

    Hi,
    Can somebody point out the material on Assignment Expression syntax in MDM. Where i can find list of all available operations with some sample code. Somebody pointed out in another thread the IS_UPPER and UPPER are functions but they don't appear in the drop down.
    I also need to know:
    1. How can the items be accessed that donot have a direct relation with the table of the Assignment.
    2. How can i update multiple fields in single assignment (especially since we don't have assignment groups).
    I am using SAP MDM 5.5 SP5 P4
    Thanks
    Yasir Rizwan Saqib

    Hi,
    The TS is a hidden property of the Step.
    You can unhid this property by a setting in the Station Options select the Preference Tab.
    You actually dont need to enable this setting, you could of just typed it in (, the .TS.id I mean). But when learning it is handy to see all the properties.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • What is the expression syntax to make the visibility of a column hidden in a Tablix?

    So if my Parameter value is...
    MCCL, MCMA, MCPL, MCPR, MCRE, MCSE, MCSN, MCVA, MCCL, MCEP, MCMA, MCRE out of 43 possible choices, what is the expression syntax to hide my tablix column based on my parameter value?
    =iif(instr(Join(Parameters!ColumnVisibility.Value,","),"MCCL","MCMA","MCPL"...)>0,false,true)
    Just not sure of the syntax...or do I have to qualify each one???
    = IIf(Parameter!PF1.Value = "MCCL" OR Parameter!PF1.Value = "MCMA"..., TRUE, FALSE)

    Hi ITBobbyP,
    Per my understanding that you have create multiple values parameter "ColumnVisibility" based on the fields LineofBusiness and the fields LineofBusiness have the n to 1 relationship with the BusinessUnit like below(Sample Data):
    When you select values from the dropdown list which only include the "FM" or "MC", the column "HCFNumber" will show or it will hide, right?
    If so, If you have two many values in the lineofBusiness mapped of the BusinessUnit, you can create an new cascading parameter "BusinessUnit" based on the BusinessUnit field like below:
    select distinct a.BusinessUnit from (select 'MCCL' lineofBusiness, 'MC' BusinessUnit ,11 HCFANumber
    union
    select 'MCCS' lineofBusiness, 'MC' BusinessUnit ,11 HCFANumber
    union
    select 'COLG' lineofBusiness, 'CO' BusinessUnit ,11 HCFANumber
    union
    select 'COSM' lineofBusiness, 'CO' BusinessUnit ,22 HCFANumber
    union
    select 'FMMS' lineofBusiness, 'FM' BusinessUnit ,33 HCFANumber
    union
    select 'FMCG' lineofBusiness, 'FM' BusinessUnit ,44 HCFANumber)a
    where lineofBusiness in (@LineofBusiness)
    Add another filter in the (@BusinessUnit) and use expression below on the column visibility:
    =IIF(Join(Parameters!BusinessUnit.Value,",")="FM" or Join(Parameters!BusinessUnit.Value,",")="MC" or Join(Parameters!BusinessUnit.Value,",")="FM,MC" , false,true)
    Preview like below:
    If you still have any problem, please try to provide more details information about the expect result you want to get based on the show/hide.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Method expression syntax error in jsp jsf 2.0 eclipse

    hi i made a simple bean jsp project, n ussed el to call methods in backing bean n show some text on the basis of method called....
    the project works perfectly fine, but theres a small issue, that eclipse jsp editor marks the expression as red n shows err.. the proj deploys fine on tomcat, n even works fine with expected results...
    wat should i do to fix that err show by eclipse...
    using eclipse helios with wtp 3.2, tomcat 7, jsf 2.0, el-api n el-impl 2.2 version jars in tomcat lib.... n latest jstl n standard jars...
    eg of jsp call -      <h:outputText value="#{myJsfBean.fetchCourseName(studentBean.courseId)}" />
    backing bean fn -
    public String fetchCourseName(Integer iCourseId){
              String theCourseName="";
              for(CourseBean aCourseBean:courseBeanList){
                   if(aCourseBean.getCourseId().equals(iCourseId)){
                        theCourseName=aCourseBean.getCourseName();
                        break;
              return theCourseName;
    jsp editor show err - Multiple annotations found at this line:
         - Syntax error in EL
         - Expression must be a value expression but is a method
         expression
    for "#{myJsfBean.fetchCourseName(studentBean.courseId)}" part of the expression
    its a trivial issue i think but annoying,, tried to search alot cudnt fix it....
    plz help

    my guess is that the project is not setup as being a JEE6 project and is being validated it as if it is a JEE5 application; the ability to be able to call methods with parameters through an EL expression is a new feature of JEE6 (or to be more precise: the el 2.2 API).
    Perhaps you can specify in your project properties that this is in fact a JEE6 project? Eclipse Helios should support JSF 2.0 out of the box.

  • CASE Expression Syntax( PL/SQL)

    Hi,
    I am facing a strange problem. I want touse CASE expression. I am facing the following error in PL/sql.
    can somebody plz tell me where i am wrong? wht's exact syntax of CASE in Plsql.
    1 declare
    2 var1 number;
    3 begin
    4 var1:=2;
    5 case var1
    6 when 1
    7 dbms_output.put_line('1');
    8 when 2 dbms_output.put_line('2');
    9 else dbms_output.put_line('else');
    10 end case;
    11* end;
    SQL> /
    case var1
    ERROR at line 5:
    ORA-06550: line 5, column 1:
    PLS-00103: Encountered the symbol "CASE" when expecting one of the following:
    begin declare end exception exit for goto if loop mod null
    pragma raise return select update while <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall
    <a single-quoted SQL string>
    Thx in Advance.
    Namrata

    I wrote a simple test:
    select case 3
    when 1 then 'true'
    when 0 then 'false'
    else 'maybe'
    end
    from dual
    and this works fine. Now I tried to write a PL/SQL function as a test and got errors. Please help!
    create or replace function hiSpecEval(evalOper in varchar2, evalVal in number)
    return number is
    Result number;
    begin
    case 3
    when 1 then result := 1
    when 0 then result := 'false'
    else result := 'maybe'
    end
    return(Result);
    end hiSpecEval;
    and I got errors:
    Compilation errors for FUNCTION PJ.HISPECEVAL
    Error: PLS-00103: Encountered the symbol "WHEN" when expecting one of the following:
    * & = - + ; < / > at in is mod not rem <an exponent (**)>
    <> or != or ~= >= <= <> and or like between ||
    Line: 7
    Text: when 0 then result := 'false'
    Error: Hint: Parameter 'evalOper' is declared but never used in 'hiSpecEval'
    Line: 1
    Text: create or replace function hiSpecEval(evalOper in varchar2, evalVal in number)
    Error: Hint: Parameter 'evalVal' is declared but never used in 'hiSpecEval'
    Line: 1
    Text: create or replace function hiSpecEval(evalOper in varchar2, evalVal in number)
    Error: Hint: Value assigned to 'result' never used in 'hiSpecEval'
    Line: 6
    Text: when 1 then result := 1

  • EXPRESSION SYNTAX REQUIRED FOR DERIVED COLUMN

    Hi
    I've had a look around and can't find the correct syntax for an Expression in a Derived Column task.
    Below is the logic in TSQL. Please could someone help me convert it?
    CASE
    WHEN FIELD1
    =
    'A'
    AND FIELD2
    IS
    NULL
    THEN
    'A'
    WHEN FIELD1
    =
    'B'
    AND FIELD2
    IS
    NULL
    THEN
    'B'
    WHEN FIELD1
    =
    'A'
    AND FIELD2
    =
    'C'
    THEN
    'C_A'
    WHEN FIELD1
    =
    'B'
    AND FIELD2
    =
    'C'
    THEN
    'C_B'
    WHEN FIELD1
    =
    'A'
    AND FIELD2
    =
    'D'
    THEN
    'D_A'
    WHEN FIELD1
    =
    'B'
    AND FIELD2
    =
    'D'
    THEN
    'D_B'
    ELSE
    '0'
    END
    Thanks in advance
    Lucy

    Hi Lucy,
    Try like below expression in derived columns.. 
     ((FIELD1 = 'A'
    && FIELD2 IS NULL)
    ? "A" :
      (FIELD1 = 'B'
    && FIELD2 IS NULL)
    ? "Y" :
    (FIELD1 = 'A' && FIELD2 = 'C' )?
    ”C_A” :
    (FIELD1 = 'B' && FIELD2 = 'C' )
    ? “'C_B” :
    (FIELD1 = 'A' && FIELD2 = 'D' )
    ? “'D_A'” :
    (FIELD1 = 'B' AND FIELD2 = 'D' )
    ? “'D_B”
    : "0"))

  • Generic Alert Log Expression Syntax

    Can anyone explain or point where I can understand the syntax allowed for expressions for monitoring the alert log? For example :
    ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]

    Are you asking what 'ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]' means?
    If so, its just a perl expression. look on google for searching patterns etc in perl and then change it accordingly to what you want (or not) to search for.
    Bazza

  • CreateRole() expression syntax

    Is there documentation on the syntax for expressing policies to the RoleEditorMBean.createRole(String
    resource, String role, string expression) method?
    I am trying to programmatically migrate pre WL70 acls and map them to roles using
    the Dafault Role Mapper. I tried the syntax generated on the console (configure
    role), but I get the exception: admin : SubjectLandAdmin weblogic.entitlement.data.EnCreateException:
    Unknown word for 'Caller is member of group SubjectLandAdmin' at position:0
    Start server side stack trace:
    weblogic.entitlement.data.EnCreateException: Unknown word for 'Caller is member of
    group SubjectLand
    Admin' at position:0
    at weblogic.entitlement.engine.EEngine.createRoles(EEngine.java:414)
    at weblogic.security.providers.authorization.DefaultRoleMapperImpl.createRole(DefaultRoleMap
    perImpl.java:118)
    at java.lang.reflect.Method.invoke(Native Method)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1287)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:920)
    at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:346)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:300)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:762)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:295)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    End server side stack trace
    Any help and advice is much appreciated. Ziad--

    I feel uncomfortable providing support on an unsupported feature. BEA
    provides no guarantees about the functionality, correctness,
    appropriateness, nor forward compatibility of any unsupported features.
    That being said, what you have looks basically correct although it is
    subject to change at any time without notice.
    - Neil
    Ziad wrote:
    I grabbed the policy expression from several roles and tried to immitate it. I came
    up with:
    Grp(name) or {Usr(name)}
    {Grp(name)}
    {Grp(name1)|Grp(name2)}
    usr(name) or {usr(name)}
    combinations of the above
    Is that about right?
    Neil Smithline <[email protected]> wrote:
    Unfortunately, due to timing constraints we could not get this syntax to
    a state that we were comfortably making it public. We are trying to
    address this in a future release.
    - Neil
    "Ziad Kurdi" ziad.m.kurdi.gsk.com wrote:
    Is there documentation on the syntax for expressing policies to the RoleEditorMBean.createRole(String
    resource, String role, string expression) method?
    I am trying to programmatically migrate pre WL70 acls and map them toroles using
    the Dafault Role Mapper. I tried the syntax generated on the console(configure
    role), but I get the exception: admin : SubjectLandAdmin weblogic.entitlement.data.EnCreateException:
    Unknown word for 'Caller is member of group SubjectLandAdmin' at position:0
    Start server side stack trace:
    weblogic.entitlement.data.EnCreateException: Unknown word for 'Calleris member of
    group SubjectLand
    Admin' at position:0
    at weblogic.entitlement.engine.EEngine.createRoles(EEngine.java:414)
    at weblogic.security.providers.authorization.DefaultRoleMapperImpl.createRole(DefaultRoleMap
    perImpl.java:118)
    at java.lang.reflect.Method.invoke(Native Method)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1287)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:920)
    at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:346)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:300)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:762)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:295)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    End server side stack trace
    Any help and advice is much appreciated. Ziad--

  • FM9 SDL Authoring Assitant Regular Expression Syntax?

    I'm trying to trick SDL into identifying words that are not approved by STE.
    Under "Configure|Style and Linguistic Checks|User Defined Rules" the program allows regular expressions to create custom rules.
    I have all other options in the Utility unchecked.
    I am by no means a pro at regular expressions but was able to create a pretty solid command at http://regexlib.com/RETester.aspx.
    The idea is to create an expression that looks for any word other than those seperated by vertical bars.
    For the test text "this is not the way that should work. this is not the way that should work."
    \b(?:(?!should|not|way|this|is|that).)+
    returns: the work the work
    At that website, I can change the excluded words and it works every time. Change the test text, same thing, still works.
    Perfect! I ripped every approved word in STE into the formula and it (SDL) only returns words at the end of the sentence that are followed by a periods and question marks. So I added"\." to the exclusion list in the expression and it only found words next to question marks. I excluded question marks and now it finds nothing. I don't understand this as I wasn't aware that I had any criteria in the expression that dictates functionality only at the end of the sentence.
    I have an O'reilly book to refer to, if anyone can give me a shove in the right direction as to which set of rules to adhere to, I would appreciate it. Why did negative word matching have to be my introduction to this subject?

    I tried your expression in a couple of regex tools and it seems to parse as you wanted it to. I suspect that the SDL implementation doesn't follow the unix/linux standards. I haven't used the tool and the usage documentation is non-existant, except for the limited flash-based demo.
    From the SDL knowledgebase, it states that their regex filter uses the .NET regex flavour and I believe that the differences on this are explained in the "Mastering Regular Expressions" book.

  • Case Expression syntax

    Hi,
    I am writing the below program.
    when case_not_found exception raises
    can any one help me....
    declare
      i integer := 10;
      l_result NUMBER;
      begin
       l_result:= CASE i
                     WHEN 1 THEN 2
                       WHEN 2 THEN 3
                         END CASE;
    EXCEPTION                 
      WHEN CASE_NOT_FOUND THEN
        dbms_output.put_line(nvl(l_result,200));
    end;Regards,
    Rajesh

    A case statement, when does not find an Appropriate match, raises a CASE_NOT_FOUND Exception.
    On the contrary, the Case Expression, returns a NULL Value.
    Since, you used a Case Statement, use the ELSE clause to return some value, say NULL, and the select statement will nto fail.
    Modify it this way:
    declare
      i integer := 10;
      l_result NUMBER;
      begin
       l_result:= CASE i
                     WHEN 1 THEN 2
                       WHEN 2 THEN 3
                     else NULL
                         END;
    EXCEPTION                 
      WHEN CASE_NOT_FOUND THEN
        dbms_output.put_line(nvl(l_result,200));
    end;Extract for Oracle Documentation
    +"If the ELSE clause is omitted, the system substitutes a default action. For a CASE statement, the default when none of the conditions matches is to raise a CASE_NOT_FOUND exception. For a CASE expression, the default is to return NULL."+
    Read For more info on Case Expression and Case Statement
    Edited by: Purvesh K on Dec 13, 2012 12:26 PM

  • Basic question on this Regular Expression syntax

    The below query returns the string before the first comma.
    SQL> select regexp_substr('JACK,AND,JILL,WENT', '[^,]+' ) FROM DUAL;
    REGE
    JACKWhat does
    [^,]do? Does it just mean, look for comma (,)
    What does the plus sign in
    '[^,]+'do?
    These are not mentioned in the 10GR2 's SQL Reference for REGEXP_SUBSTR function, hence i am posting this in OTN.

    Hi, Hoek,
    hoek wrote:
    Hi Pete,
    They are documented:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_regexp.htm#sthref547
    Metacharacter     Description
    ^     Anchor the expression to the start of a lineIt looks like you were in a hurry.
    The ^ in
    [^,]+is the non-matching character marker: "Matches any single character not in the list within the brackets"

  • Report Builder 3.0 Expression i am not able to make it work on Oracle DB Table

    Hi,
    I am newbie to SSRS Report Builder 3.0 so please be patient with me. I am trying to create a report to query Remedy Ticketing System and it uses Oracle Database installed on a Unix OS...My end objective is to do some calculation on the ticket metrics (i.e.
    percentage of tickets closed within SLA, etc) however i am stuck from the very beginning where i am not able to make my expression work...
    To begin with. my query statement...
    Select Distinct TICKET_NUMBER, Assigned_Group, Category, REGION, TICKET_STATUS,EXCEEDED_SLA, TO_CHAR(date '1970-01-01' + (TICKET_CREATION_DATE/60/60/24), 'DD/MON/YYYY HH:MI:SS AM')TICKET_CREATION_DATE
    from ARADMIN.Request
    where (Assigned_Group like 'HOTS' OR Assigned_Group like 'PAID' OR Category like 'HVD%') and TICKET_CREATION_DATE > (TO_DATE('31/DEC/2014 11:59:59 PM','DD/MON/YYYY HH:MI:SS PM', 'NLS_DATE_LANGUAGE=AMERICAN') - DATE '1970-01-01')*60*60*24
    order by ticket_creation_date
    the data type of the oracle table:
    Here is the Query Result of the DataSet:
    Basically Ticket_Status has values from 0 to 4 although from the screenshot above you only see 2 and 4...
    Ticket_Status 0 - Means Open Ticket
    Ticket_Status 1 - Means Work In Progress Ticket
    Ticket_Status 2 - Means Pending Ticket
    Ticket_Status 3 - Means Awaiting Closure Ticket
    Ticket_Status 4 - Means Closed Ticket
    I created a chart column using the expression below but it did not work...what i mean by it does not work is that the chart column output shows all Ticket_Status total count including 0, 1, 2, 3, & 4 (i.e. total count of tickets are 206)...using
    the expression i was only expecting the total count for Ticket_Status 4  (i.e. 180 tickets) but i guess i am doing something wrong with the expression syntax...
    =Count(Fields!TICKET_STATUS.Value=4) 
    i also used the expression below but it did not work...
    =Count(Fields!TICKET_STATUS.Value="4")
    i converted the Ticket_Status to CHAR on the dataset using the TO_CHAR(Ticket_Status) AS Ticket_Status then i tried the expression below but did not work...
    =Count(Fields!TICKET_STATUS.Value="4")
    i tried again the expression below but did not work'
    =Count(Fields!TICKET_STATUS.Value=4) 
    i cannot proceed to the arithmetic calculation if i cannot filter my dataset with the correct value...again i am a newbie with SSRS & report builder and i would appreciate it very much if you can guide/help me :-)

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to write the expression when create the calculated column?

    Dear,
           I want to create some calculated column in my attribute view, but I don't know how to write the code in the expression, is there any introduction about this part, how to use those function and how about the grammar in this expression code ?  or is there any example about this calculated column?
       Thanks for your sincerely answer.

    Hi Zongjie,
    you can find some information about the creation of calculated columns in the HANA Modeling Guide (http://help.sap.com/hana/SAP_HANA_Modeling_Guide_for_SAP_HANA_Studio_en.pdf).
    Within chapter 6.2.1 (Create Analytic Views) you can see under point 7 some basics and also a simple example. The same is also valid for Calculation Views.
    Chapter 8.9 (Using Functions in Expressions) describes the different available functions.
    You also can use the integrated search in the HANA Studio by clicking the "?" button in the button left corner. Then you get some links in the side panel with related information.
    In general you can write your expression manually or you can just drag and drop the functions, elements, operators into the editor window. For example if you drag and drop the "if" function into the editor window you get "if(intarg,arg2,arg3)" inserted. The arguments can be replaced manually or also by drag and drop.
    It is also worse to use the "Validate Syntax" button on top of the editor window. It gives you directly a feedback if your expression syntax is correct. If not you get some helpful information about the problem (ok, sometimes it is a little bit confusing because of the cryptic error message format ).
    Best Regards,
    Florian

  • DECODE in expression

    Hello list,
    How do I go about DECODE function in expression?
    It's legal only in SQL statement, so validation is fine, but when OWB deploys a script I have error message because DECODE is used in PL/SQL as well. I have solved it temporarly manually changing the script, but this is an error-prone method. What are other solutions except creating user transformation?
    TIA,
    Alex

    I have tried it, but it won't work.
    For instance:
    case INGRP1.CD
    when 1 then 2
    else 3
    end
    Gives the folowing error:
    Line 1, Col 1:
    PLS-00103: Symbool "CASE" aangetroffen terwijl een van de volgende werd verwacht:
    ( - + mod not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string>
    This means that the word CASE cannot be used as first.
    Any suggestions? I cannot found any documentation about creating expressions (syntax, functions, examples).
    Very sad, because it takes a lot of time to accomplish such a simple thing.
    Regards,
    Maurice

Maybe you are looking for