How to use procedures in a variable of ODI ODI

Hello
I have the condition

Select c1 from the table where c1 > #ODIVAR1 and use of the output of this query in a variable to define the workflow package

If output = 0 workflow package goes xxx
on the other
flow goes like YYY.

Then please suggest how to use an ODI variable to capture the putput procedures and use it in the package for this stream.

Thank you
Naveen.

Hello

In the workflow of the package type of the variable as a Variable to be evaluated , if the step is ok go for a flow...
otherwise, go to another stream in the Advanced tab.

Thank you
Ananth

Tags: Business Intelligence

Similar Questions

  • How to use the Group condition in the ODI mappings

    Hi Experts,

    I have a requirement in the customization of BI applications. Can you please someone explain how to use the LISTAGG function in odi mapping.

    I applied the LISTAGGR function at the level of mapping odi, but I get error below.

    Mapping of ODI: ColumnName: ENAME Expression: LISTAGG (EMP. ENAME, ",") THE GROUP (RANKING BY EMP. ENAME)

    Error:

    ODI-1240: Flow LIST_AGG_FUN_USAGE fails during an operation of integration. This flow of charge table target EMP_BI.

    ODI-1228: task failed LIST_AGG_FUN_USAGE (integration) on the scott_db of ORACLE target connection.

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00937: not a function of simple-group


    Oracle query:

    If I used this sql query in the database the correct result is.

    SELECT DEPTNO, LISTAGG (ENAME, ',') WITHIN THE EMP EMP (ENAME CONTROL) GROUP. DEPTNO;

    Output:

    10CLARK, KING, MILLER
    20ADAMS, FORD, JONES, SCOTT, SMITH
    30ALLEN, JAMES, MARTIN, BLAKE, TURNER, WARD


    Please give your valid solutions, thanks in advance.

    Kind regards

    REDA

    If you try in #ODI12C then in the set of properties, you can select the column which should be used to group by.

    If it's 11g so its bit complicated. Simply replace the mapping with below codes.

    LISTAGG (EMP. ENAME, ",") WITHIN GROUP (ORDER BY ENAME) / * sum() * /.

    Magic!

    Thank you

    Chantal

  • How to use a static const variable while loop collection ArrayCollection?

    Hello

    I have an arraycollection collection which I get to main system, that has two columns named, 'Id' and 'Desc '.

    I created a static const variable:

    public static FIELD_DESC_NAME:String const = 'Desc ';

    I have been using this variable const everywhere in my code, for example:

    super.dataProvider = model.acVariants;
    super.labelField = FIELD_DESC_NAME;  instead of using super.labelField = "Desc";

    But unfortunately, there is one place where I'm not able to use it. And it's all in the loop as shown below:

    for (var i: uint = 0; i < model.acVariants.length; i ++) {}

    If (value.label is model.acVariants [i]. DESC) {/ / I want to use the FIELD_DESC_NAME variable, instead of using 'Desc' model.acVariants [i]. / / DESC}
    super.selectedItem = model.acVariants [i];
    break;
    }

    }

    Can you please let me know how can achieve us?

    Appreciate your help...

    <! - Deepak - >

    Can you put a debug statement and draw the value returned by model.acVariants [i] [FIELD_DESC_NAME] and value.label

    Hope that there must be a difference.

    If this does not solve then please let me know

    -Vikash

  • How to use a default session variable in SQL

    I want to use a session variable (: PAGE #_VARNAME) by default for a column in a layout table whenever a new record is inserted into the table.

    What is the best way to do it? I tried to set the default value for this column: _VARNAME # PAGE under element in a table, but nothing works.

    Thanks for your comments.
    -Reid

    Try the PAGE #_VARNAME whose Type point (application or page name of the option) assuming that the PAGE #_VARNAME is an application or a name of the default page.

    Scott

  • How to use the 'Get Shared Variable list' VI on a target RT?

    Hello

    I would like to browse all variables shared in a library hosted on my CompactRIO programmatically. I dropped the 'Get Shared Variable list' VI in my VI in real time, but when I tried deploying, LabVIEW says

    Deployment PRC_GetVarList.viPRC_GetVarList.vi loaded with errors on the target and was closed.
    LabVIEW: Unable to load the shared library dscProc.dll:ni_lvdsc_process_GetTagListEnd:C. ensure that the library is present on the target of RT. MAX allows you to install software from OR or FTP to transfer custom RT target libraries.
    LabVIEW: Unable to load the shared library dscProc.dll:ni_lvdsc_process_GetTagListBegin:C. ensure that the library is present on the target of RT. MAX allows you to install software from OR or FTP to transfer custom RT target libraries.

    I watched the wizard of the MAX software, but cannot find the DSC-based modules. Where should I look?

    Thank you!

    Hello

    The palette of DSC is not supported on the screws in real-time and will lead to errors when they are deployed.  Unfortunately, to have a successful build you will need to modify your application and remove the screws from the palette of DSC on your target of RT.

  • How do I know where a variable was used?

    How can I tell where a variable is used in a procedure of interface/package /?

    Should I check using internal tables from the repository?

    Thank you

    Hello

    You must do some queries to find the variable used in ODI object.

    as he retrieves the variable with the name of the scenario and scénarion can meet your need.

    Select v.i_var, v.var_name, s.scen_name of

    ODEV91119_ODI_WORK.snp_var v, ODEV91119_ODI_WORK.snp_scen s

    where

    s.i_var = v.i_var

    and s.scen_NAME = 'V_BTCH_NAME'

    and agree with the answer SH

    Thank you

  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

  • How to use the environment variable in LAbVIEW

    Hello

    I'm trying to use an environmental variable in the diagram (use this as the path of a file). I can't know how get the value of the variable approx. can you please help this?

    Thank you for your attention.

    JACIE

    Try these.

  • How to use the global variable in the table target?

    Hello

    I am trying to load several files into a single interface. the data is loaded successfully. 92. the files are there. for this I used variables and package.

    My requrement is 92 files of data loaded into the target table. I want to know what data from file.

    to this I added a column (filename) to the existing target table.

    If I used joints (not same condition), its totally wrong. all file names are coming.

    Please see the following screenshots.

    err27.jpg

    exit; target table.

    err26.jpg

    in fact in the target table. first 10 lines are coming from file.i.e first _ACCOUNT_LIMIT_511.TXT. but all the files names are coming.

    I'm confuse. After the first data file inserted then insert second data file. in that all file names are coming. Please help me.

    I thought that the global variable is preferable to identify the data came from which file.

    to do this, the global variable is used in the target table. I don't always have my exit.

    Please help me.

    Thanks in advance.

    err25.jpg

    Hello

    You can use the same way, how you use the project variable, just you have to do a thin is #GLOBAL.variable_name for example: #GLOBAL. SMART_AL_FILE_NAME_S

    Note: Make sure you that while you use one variable overall in interface, indicator should be staged as you chose above the screen

    hope this helps you

    Kind regards

    Phanikanth

  • How to use stored procedures of database instead of triggers in database?

    Hi gurus

    Here in SQL / PLSQL community discussion, I read some discussions that the stored procedures of database are better and 9should be used instead of database triggers.

    But despite reading 10s of discussions, I am unable to understand how a stored procedure may be an alternative to a DB-trigger while having many differences.

    And even if I'm using a DB instead of DB-trigger procedure, then at what level I should call? of my application, oracle forms IE?

    And should I write 3 different procedures, each of them for the Insert, update and delete while I can manage all of these events from a single trigger?

    Will you please advice me for this because I am using widely especially triggers to maintain the Stock / inventory, update several tables of a trigger n etc.

    PS... I'm working on the database 10g Rel.2.

    I use extensively since Oracle 7 database triggers (database Oracle 6 had no triggers).

    I use it mainly for complex integrity checks and sometimes for the calculation of derived data.

    So, I do not accept that "database triggers are evil".

    It is often said that, instead of triggers in database, we use the API (API function, better than the table API).

    However, the API may not always replace triggers.

    Excellent explanation is given by Toon Koppelaars in 'triggers considered harmful, considered harmful' http://harmfultriggers.blogspot.com/

    Regarding your question, it is possible to make the procedures of database to work with Forms - Yes, it is possible.

    You can make the database to INSERT, UPDATE, and DELETE procedures and call them before or / and after INSERT / UPDATE / DELETE triggers of forms.

    Another option is to use on INSERT / UPDATE / DELETE triggers of forms.

    Please note that I do not use these forms to work with the Oracle database triggers. In my view, database triggers are much better.

    The third variant will create a data block in a procedure that uses a "table of records.

    Kind regards

    Zlatko

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • How to use the pl/sql procedure

    Hi all,

    How to use pl/sql packages and especially in what situations we are pl/sql, which is the cause of the procedure. Please explain with precision using small example.

    Thanks and greetings

    RAM

    I could tell this at a very high level.

    PL/SQL's procedural extension to SQL. SQL (structured query language) has no procedural capacity. They are executed as a stand-alone statement. When you want to generate a process flow with several SQL statement that you need to have a procedural language that could accommodate your SQL. PL/SQL is something similar to Java and Dot Net in this aspect. Said that PL/SQL is Oracle DB. This has some advantages. The most important thing is that when you have your SQL in PL/SQL oracle maintains its reliance on the object. Any database oracle related so you want to build, then you can consider to PL/SQL as the best way to use process flows.

    PL/SQL provides various methods such as the PROCEDURE, FUNCTION and the PACKAGE. The only thing that race stands is in its ability to modularize your code. So, using the package you can create process workflows that is modular and easy to understand.

  • How to use variable Substitution Essbase in ODI

    Hello

    Can someone help me please how to use void var Essbase in ODI?
    I created an interface to load data from text to planning. In the mapping, to the Point of view, I gave the necessary dimensions which is "years". In Essbase, we set a variable called CurrYr which
    We want to use in the view. So, I added a line like this in the map

    'Work', 'Budget', 'CC1', '#sYearValue '. The sYearValue is used to extract the void var Essbase before loading the planning data. I have followed the blog for void var post below (John has been very kind in showing many examples of ODI, link below is one of them).

    [http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html]

    Whenever I run the Interface, it fails with the error "ODI-17506: Variable has no value: XXXXX.sYearValue.

    Thanks in advance!

    PM

    This line should print the values in the agent log, see log

    System.out.println ("current year =" + sYearValue + "current period =" + sPerValue);

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • When we need to use a query variable and how to use it?

    Hello

    When we create a line of dashboard, we set the variable, there are two types: variable presentation and application.
    I'm confuse when we need to use a query variable and how to use it?

    Thank you
    Anne

    Hello
    The variable 'demand' can be used if you want to use session related information specific to you.

    See below a:
    http://gerardnico.com/wiki/dat/OBIEE/logical_sql/obiee_set_request_variable_dashboard_prompt

    FYI... example of
    for the example query variable (a good post Nico)

    http://gerardnico.com/wiki/dat/OBIEE/set_variable

    for the variable of presentation with example

    http://gerardnico.com/wiki/dat/OBIEE/presentation_variable

    Thank you

    Deva

  • How to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

Maybe you are looking for

  • iPad Pro PPT mirrored glitch?

    iPad Pro connected to projector (lightning / vga) will reflect the PPT presentation. If you click on a URL and show a video YouTube then back to the presentation that the connected display will remain frozen on video. Go to the home screen and return

  • Photos of duplication

    Hello I think you have a problem with the Photos app on iOS by which old photos that still exist in my album duplicate themselves and appear as new images at the top of my album.  ID say this comes around only once a week and only duplicates about 10

  • How can I erase my browser?

    I don't know how to clear browser search

  • Help - update is stuck in the install after more than an hour

    I went to update and when I returned an hour later, he always seems to be install. This is for Windows Live, and he never took this long to install a before update. I don't want to cut the power, but I can't think otherwise to return. Any ideas?

  • trying to install printer hp photosmart c5280 on computer vista, no internet access

    Error 1935.  An iccurred errir during the installation of Assembly 'MICROSOFT. YC80, Processor Architecture = "X 86", public key token = "1f8b3g9a1e18e3b", version = "WIN32". Please see Help & Support for more information. Please to http://www.hp.com