Using Conditions in packages of 12 c ODI.

Hey,.

I have a package in my ODI 12 c, which takes the number of files in separate folders and stores them in the HIVE. Now I want to set up a condition that compares two values of count of the table of the HIVE, and if the number is the same (i.e. folder1_count == folder2_count) then it proceeds with the rest of the package. Is anyway to do this?

Hello

Create 2 Variables that each wrote about its necessary Refresh the scalar query tab. Var1 selects the first unique value and VAR2 the second unique value.

Write a query like:

(an example of a scalar to write tab refresh query)

SELECT MY_FIRST_VALUE FROM MY_TABLE_DS WHERE ID = 1

(another example of a scalar to write tab refresh query)

SELECT COUNT (*) IN MY_TABLE_DS

Then, slide the VAR1 and VAR2 variable on the packaging of the Panel and define their types as Variable r.

Now VAR1 and VAR2 each will contain one of the 2 different values to compare.

VAR2 down once more on the Panel and this time, set the variable as type Variable to evaluate:


Write the value to compare with VAR1 as shown above. If the evaluation is true, the 2 variables are equal, executing other terminate and send an email.

Tags: Business Intelligence

Similar Questions

  • Search for information using Multi-SCORM Packager

    The title pretty much everything said.  I'm looking for a good reference on how to use Multi-SCORM Packager.

    Thank you.

    Jay

    How to package multiple SCOs using Adobe Multi-SCORM Packager

  • Can I use it for packaging?

    Can I use it for packaging?

    Hello

    Yes, you can.  Please check the license terms for more information - Royalty free images, pictures and graphics. Adobe Stock

    Thank you

    Bev

  • Books of fusion and OCD using conditional text

    Hi all

    I'm trying to merge four books with similar content in one book by using conditional text.

    Instead of going to and comparing the three output files (pdf) one by one, I went through and tried to compare the documents/chapters in each book one by one. I applied the conditions for text added or deleted accordingly (it was a shortcut, and I know, not really advisable). But the problem I am facing now is that the table of contents do not work, if I try the technique of comparison.

    My question is, are at - it another way to merge several books and their tables of contents in one only book and table of contents, other than each chapter line-by-line reading and apply conditional text tags to associated content?

    Any help would be appreciated!

    Thank you

    RG

    Post edited by: Rashmi gourn Hello... anyone? No help is available for conditional tagging in Framemaker, AFAIK. Wait for some sort of answer from the experts here... Kind regards

    Simply create a new book file that contains all the files (with the exception of the generated - including the table of contents). Then create the appropriate - including the TOC generated files. You can import the existing formatting from the relevant files generated in an other books.

  • Can I add watermarks to PDF files using the PDF package?

    Can I add watermarks to PDF files using the PDF package?

    Hi Susannah,

    Adobe PDF Pack does not allow to edit a PDF file. To do this, you would need Acrobat. We invite you to try Acrobat free for 30 days: see http://www.adobe.com/products/acrobat.html for more information.

    This help document describes how to watermark a PDF in Acrobat: add watermarks to PDF

    Best,

    Sara

  • Can we use the same package for main and begotten of concurrent programs.

    Hello

    I use a package.procedure1 for a simultaneous program. Can I use the same package.procedure2 of a pondu simultaneous program which was called from package.procedure1? If I say incompatible as the same program of 1, which will create problems by running the 2nd program because the package is same?

    Thank you
    HC

    I use a package.procedure1 for a simultaneous program. Can I use the same package.procedure2 of a pondu simultaneous program which was called from package.procedure1?

    Yes you can.

    If I say incompatible as the same program of 1, which will create problems by running the 2nd program because the package is same?

    When you second the 2nd program it will not work if the 1st program execution, and he has to wait until you have completed the 1st program.

    Don't know what code you use in the first and second procedures or even in the whole, but you can try this in a TEST instance first and check whether or not it works as expected.

    Thank you
    Hussein

  • Impossible to install IPA using a standard package in Flash Builder 4.6 (Air 3.1)

    I created an application hello world that doesn't use any external resources (it draws just a box on the screen) and I can't seem to be installed in one of my iDevices (5G, iPhone 3GS, iPhone 4, iPod touch run all IOS 4 or above) using standard packaging in Flash Builder 4.6.

    When I try to install the IPA file using the iPhone Configuration utility it comes up with the error:

    "Could not install application on the device. Error: a signed resource has been added, changed, or deleted. »

    If I use the fast option in Flash Builder to package then I don't get any errors and the application installs works on all devices. The problem with this option is that I want to run performance tests and obviously using rapid option packaging not give me the actual data.

    I use Windows 7 for my development - I do not own a Mac.

    My certificates and provisions are very good because I double checked the.

    That's why others can get to work in Flash Builder 4.6 packaging standards (Air 3.1) on Windows 7? If Yes - can anyone suggest fixes for the please my problem?

    Just found the answer to this by experimentation.

    Its the iPhone Configuration Utility, which is the problem. If I use iTunes then packaging standard works. Do not know why the iPhone Configuration utility has a problem with the standard package, although

  • Email scripts do not when using the UTL_TCP package

    Hi all

    I wrote a script to email using the UTL_TCP package.

    create or replace procedure pr_email (p_email_from in varchar2,
    p_email_to in varchar2,
    p_email_cc in varchar2,
    p_email_subject in varchar2,
    p_email_text in varchar2
    *) is *.

    l_conn utl_tcp.connection;

    l_result pls_integer;
    l_localhost varchar2 (100): = ' ora - drs.dryers.com';

    Start
    dbms_output.put_line ('Start: execution of ' |) "PR_EMAIL");
    l_conn: = utl_tcp.open_connection (l_localhost, 1523);
    dbms_output.put_line ('open Connection');
    l_result: = utl_tcp.write_line (l_conn, 'DRS HELO');
    dbms_output.put_line ('The L_RESULT' | l_result);

    dbms_output.put_line (' checking the connection ' |) UTL_TCP.get_line (l_conn, true, true)); _ + / * mkk * / *

    l_result: = utl_tcp.write_line (l_conn, l_localhost);
    l_result: = utl_tcp.write_line (l_conn, ' MAIL FROM: ' | ') p_email_from);
    l_result: = utl_tcp.write_line (l_conn, ' RCPT TO: ' | ') p_email_to);

    l_result: = utl_tcp.write_line (l_conn, ' RCPT TO: ' | ') p_email_cc);
    dbms_output.put_line ('The L_RESULT' | l_result);
    l_result: = utl_tcp.write_line (l_conn, 'DATA');
    l_result: = utl_tcp.write_line (l_conn,
    *'Date: ' | *
    TO_CHAR (sysdate, ' dd my yy hh24:mi:ss'));)
    l_result: = utl_tcp.write_line (l_conn,
    *' De : ' || p_email_from | ' <' || *
    p_email_from | ') ;
    l_result: = utl_tcp.write_line (l_conn, "MIME-Version: 1.0 '");
    l_result: = utl_tcp.write_line (l_conn,
    *'To: ' || p_email_to | ' <' || *
    p_email_to | ') ;

    --*
    l_result: = utl_tcp.write_line (l_conn,
    *'Cc: ' || p_email_cc | ' <' || *
    p_email_cc | ') ;
    --*
    l_result: = utl_tcp.write_line (l_conn, ' subject: ' | p_email_subject);
    l_result: = utl_tcp.write_line (l_conn, ' Content-Type: text/plain "");
    l_result: = utl_tcp.write_line(l_conn, '');
    l_result: = utl_tcp.write_line (l_conn, p_email_text);
    l_result: = utl_tcp.write_line(l_conn, '');
    l_result: = utl_tcp.write_line(l_conn, '');
    l_result: = utl_tcp.write_line (l_conn, '.');
    l_result: = utl_tcp.write_line (l_conn, 'QUIT');
    UTL_TCP.close_connection (l_conn);
    dbms_output.put_line ("' closed connection");

    dbms_output.put_line ('End: execution of ' |) "PR_EMAIL");

    end pr_email;


    When I'm the enforcement procedure
    pr_email exec ('[email protected]', '[email protected]', '[email protected]', 'Test', 'Test');
    It's a failure to comment . MKK.

    I get an error message:
    ORA-29259: end-of-input reached
    ORA-06512: at "SYS." UTL_TCP", line 127
    ORA-06512: at "SYS." UTL_TCP", line 321
    ORA-06512: at "SYS." UTL_TCP", line 391
    ORA-06512: at "DRS_MGR. PR_EMAIL", line 20
    ORA-06512: at line 1


    When I comment the code dbms_output.put_line (' checking the connection ' |) UTL_TCP.get_line (l_conn, true, true)); + / * mkk * / _
    and run the procedure, I get no error, but I do not receive the mail.

    FOR INFO:
    The hostname and PortNumber I got from our Listner.ora file to our database.


    Let me know I do everything wrong here.

    Appreciate your help.

    Thank you
    Madhu K.

    UTL_MAIL is the new package to send mail from PL/SQL. UTL_SMTP was the package to do before 10.1.

    Normally, you would ask the administrator of the mail server if they are really running the SMTP server on a very unusual port on that server. Except that you can manually telnet to the server specified on the specified port, type "HELO" and see what was the answer. If there's nothing listening on the port, the telnet session fails. If there is an SMTP server listens on this port, it must respond to the HELO command.

    Justin

  • Use conditional tags to apply different Style sheets / Skins for purposes of brand?

    RoboHelp HTML > WebHelp appearance of layout using conditional build tags

    I have a client that provides an application to different companies and brands its product by changing the look, using a style sheet selected depending on the brand.

    Is there a way to customize a WebHelp layout, to select a style sheet and a skin 's brand, and another sheet of style and skin for the brand Band so on?

    Would this work in RH7? (The client uses this for the moment.)

    Would this work in RH8? (They could improve if this solves the problem.)

    Philip Tory, technical author

    Hello Phillip

    RoboHelp 8 offers capacity to appoint a specific CSS file in the presentation of single Source recipe. So sure.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • List of tables used in a package

    Is there a way to know the list of all the tables used in a package?

    Yes there is:

    select referenced_owner,referenced_name
    from dba_dependencies
    where name='your package_name' and owner='your package owner'
    and referenced_type='TABLE';
    

    Toon

  • How to use the DBMS_ROWID package

    Hello

    I am not able to use this DBMS_ROWID package, I ran this script in my schema dbmsrwid.sql

    When I use this sql I get the following error:

    SQL > select DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    2 FROM emp3
    3 where id = 1;
    Select DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    *
    ERROR on line 1:
    ORA-04067: not executed, the package body "KAM. DBMS_ROWID' does not exist
    ORA-06508: PL/SQL: called program unit is not found: "KAM. DBMS_ROWID.
    ORA-06512: at line 1

    and also when I try to use below that I get the same above erro

    SQL > DBMS_ROWID. () ROWID_BLOCK_NUMBER

    If I connect with scott so I am able to do it as below:

    SQL > select DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    2 FROM emp
    3. WHERE ename = 'KING '.

    DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
    ------------------------------------
    30
    Thank you and best regards,
    Kam

    Did you run dbmsrwid.sql in the KAM schema? Because it seems that the DBMS_ROWID package has been created it there.

    I suggest you drop the package in the KAM schema version, unless there is a specific reason that you need (very, very unlikely that you do).

    DROP PACKAGE kam.dbms_rowid
    

    If you do this, the SELECT statement that has worked in the SCOTT schema should also work in the KAM schema.

    SQL > SYS. DBMS_ROWID. () ROWID_BLOCK_NUMBER
    SP2-0734: unknown command starts 'SYS. DBMS_R... "- rest of line is ignored.

    You cannot call a function like this just to the SQL * quicker. You need to put it in a SELECT statement. If you add the SYS prefix to the query that you previously had, it should work as well. But if you do not file the package, you will always have an invalid version of DBMS_ROWID in the KAM schema.

    Justin

  • Cannot see data in excel after using the export_excel package

    After using the export_excel package of some cells in the display worksheet "#". If the cell is selected displays the data, but it disappears when you exit the cell and try to print it. Anyone know what causes this problem?

    Thank you

    Hello

    From the following link, the maximum width of a column in Excel 2000 is 255 characters: http://support.microsoft.com/kb/264626

    So, it seems that you may need to be upgraded, divide the cell into 2 or more cells, or add in a few line breaks?

    Andy

  • version of the application server to be installed to make use of the package-srw

    Hello

    If we have 9.2. version of the database, is there a specific version of the reporting services must be installed in order to use the srw package?

    Thank you
    Sisi

    Sisi,
    The package SRW is a built-ins primary packaging in the Oracle reports. It is available in all versions of reports since the 2.5 version (at least that's when I started to use the reports and the package was there). :-) I think the more appropriate question is: which version of reports is your report created with files and use this version on the server. If you configure the Application Server for the first time and you will begin to develop reports using Oracle reports Builder, then I suggest to use the latest version of Oracle (10 g version) reports.

    I hope this helps.
    Craig...

    -If my response or response from another is useful answers your question, please check the response accordingly. Thank you!

  • Use a function in a mapping on ODI 12 c

    Hello

    I need help... I got a package in the database and this package have a function inside and I need to use this function in a field in my correspondence.


    I proved to use but without running...

    < %=odiRef.getObjectName ("PROD_GUUIDPROD_PKG. SYS_GUID_FUM") % >

    The name of the package is 'PROD_GUUIDPROD_PKG'

    And the name of the function is 'SYS_GUID_FUM'

    Thank you

    Try to encapsulate your DB function inside a function user of ODI and then refer to the user ODI function in your mapping, the following article gives a good example how to proceed: http://www.ateam-oracle.com/implementing-early-arriving-facts-in-odi-part-ii-implementation-steps/ which provides a good abstraction layer

    Or you can do it directly in the map, but use the following syntax:

    < %="odiRef.getObjectName" (« l »,="" « prod_guuidprod_pkg »,="" « d »)="" %="" >.="">

    (L is, it's a logic diagram D is development environment)

  • Using conditions to automatically assign cell borders

    I was wondering if it was possible to use such terms in conditional highlighting or formulas Boolean to automatically generate cell borders to format my table automatically?

    This is a good feature if it is not possible at the moment because I work with what is considered to be a set of relatively small data for my line of work, and to properly format for easy use later it took me several hours already. It would be nice to be able to set up a model with conditional highlighting and automatic cell borders in order to shape future data sets easily.

    Hi Nagarok,

    Conditional highlighting rules currently provide only to set fill color, text color and style of the text (bold, italic, etc.) according to a given condition.

    Use to provide feedback from numbers found in the menu numbers Nubers for make a request for additional features,

    Kind regards

    Barry

Maybe you are looking for