To loop through all the values of a variable in ODI

Hi all

I have a table table1 with date fields in this

Thus, the table will be something like

Date_column

January 1, 2014

JANUARY 4, 2014

JANUARY 5, 2014.

I have a variable var1 declared in my project, which can take the values in this table.

So the definition of the updating of the variable var1 is

Select from table1 date_column.

Now for each of these dates, I have to run a script, the script takes value of var1 date as a parameter.

This must be run in a loop so that all the dates in the table may be covered.

Could you please how this can be achieved in a package in ODI.

Be able to find the solution for this: thanks to all the other post that helped me to get the solution.

Tags: Business Intelligence

Similar Questions

  • Loop through all the items in a collection

    I need to loop through all the elements of a collection in a VB.NET program that uses the InDesign API. For example, I want to loop through all the pasta spread masters in a document. Here is my sample code:

    Dim I As Integer = 0

    Var MyApp as InDesign.Application = Nothing

    Var MyDoc as InDesign.Document = Nothing

    Var MyPage as InDesign.Page = Nothing

    MyApp = CType (Activator.CreateInstance (Type.GetTypeFromProgID ("InDesign.Application"), True), InDesign.Application)

    MyDoc = CType (MyApp.Documents.Add (False), InDesign.Document)

    With MyDoc

    With. DocumentPreferences

    . PageHeight = "8.5I".

    . PageWidth = "5.5i."

    Ends with

    With. ViewPreferences

    . HorizontalMeasurementUnits = InDesign.idMeasurementUnits.idPoints

    . VerticalMeasurementUnits = InDesign.idMeasurementUnits.idPoints

    Ends with

    If. MasterSpreads.Count > 0 Then

    For I = 0 To. MasterSpreads.Count - 1

    Dim ThisMasterSpread As InDesign.MasterSpread = CType (.) MasterSpreads.Item (I), InDesign.MasterSpread)

    Next I

    End If

    Ends with

    When it runs, I get an error on the last Dim statement which defines ThisMasterSpread. It highlights. MasterSpreads.Item (I) and gives the following error:

    COMException was unhandled: the Member required to the collection does not exist.

    How I managed to loop over all the pasta spread masters?

    Thank you!

    A lot of trial and error, I discovered the answer to my own question: the Collections are 1-based, not 0-based. My statement

    For I = 0 To. MasterSpreads.Count - 1

    should be

    For I = 1 To. MasterSpreads.Count

  • To loop through all the variables on an image

    Hello. I am trying to write a method to save the State of the game that I do. I am able to loop through all the clips and get their existing frameworks, but is it possible to loop through all the variables on the current frame (without knowing their names) and put them in a table?

    Thanks 4 any help

    trigger2160

    Thanks for the help. A container object is just what I wanted, even though I knew not u can do. my variables are not accessible directly so I managed to change the way they were stored easily without negative effects for the rest of the game. Now I can also save and load the State of the game which entered 4 will facilitate 4 me to test.

    trigger2160

  • Work Dbma_scheduler execution of procedure which loops through all the customer drawings in the rear rollers database transaction in case of exception

    Hello

    Need your contributions on the approach to implement a work using dbms_scheduler.

    We have about 2000 drawings. Each schema has a package with 2 procedures.

    The requirement is to create a single job in SYS that loop over each schema and run the procedures specific to a time (once a day) and send a notification by e-mail on success or failure.

    Working script:

    BEGIN

    dbms_scheduler.create_job (job_name = > 'LOAD_EACH_SCHEMA_AUDIT_DATA',)

    job_type = > 'PLSQL_BLOCK ',.

    job_action = > ' BEGIN sys.p_loadaudit;

    END;',

    start_date = > systimestamp,

    repeat_interval = > ' FREQ = MINUTELY; RANGE = 1',

    number_of_arguments = > 0,

    enabled = > true,

    Comments = > "Use repeat interval is every five minutes");

    END;

    /

    Note: to test the end I put him repeat interval to carefully.

    Use of procedure must be running:

    Procedure sys.p_loadaudit:

    CREATE OR REPLACE

    PROCEDURE p_loadaudit

    AS

    v_count NUMBER: = 0;

    lv_error_message VARCHAR2 (4000);

    vstmt VARCHAR2 (4000);

    BEGIN

    I'm IN

    (SELECT username FROM dba_users WHERE username LIKE '% ABCFIRM')

    )

    LOOP

    vstmt: = "begin" | i.UserName | '. pkg_audit_info.p_load_coa; end;';

    EXECUTE immediate vstmt;

    vstmt: = "begin" | i.UserName | '. pkg_audit_info.p_load_am; end;';

    EXECUTE immediate vstmt;

    END LOOP;

    EXCEPTION

    WHILE OTHERS THEN

    lv_error_message: = ' error in procedure p_loadaudit: ' | SQLCODE. "- ERROR -" | SUBSTR)

    SQLERRM, 1, 300). '*' || dbms_utility.format_error_backtrace;

    raise_application_error(-20002,lv_error_message);

    END p_loadaudit;

    /

    Example of a scheme: SCHEMA_01

    create or replace

    PACKAGE pkg_audit_info

    AS

    CursorType type

    IS

    REF

    CURSOR;

    PROCEDURE p_load_COA;

    PROCEDURE p_load_AM;

    END pkg_audit_info;

    /

    create or replace

    Pkg_audit_info body PACKAGE

    AS

    PROCEDURE p_load_COA

    AS

    BEGIN

    INSERT INTO TABLE1();

    EXCEPTION

    WHILE OTHERS THEN

    lv_error_message: = ' error in procedure pkg_audit_info.p_load_COA: ' | SQLCODE

    || "- ERROR -" | SUBSTR (SQLERRM, 1, 300). '*' || dbms_utility.format_error_backtrace;

    RAISE_application_error(-20002,lv_error_message);

    END p_load_COA;

    PROCEDURE p_load_AM

    AS

    BEGIN

    INSERT INTO TABLE2();

    EXCEPTION

    WHILE OTHERS THEN

    lv_error_message: = ' error in procedure pkg_audit_info.p_load_AM: ' | SQLCODE.

    "- ERROR -" | SUBSTR (SQLERRM, 1, 300). '*' || dbms_utility.format_error_backtrace;

    RAISE_application_error(-20002,lv_error_message);

    END p_load_AM;

    END pkg_audit_info;

    /

    Table1 and table1 exist in schema_01.

    All 2000 patterns have same package.procedures.

    For security reasons, I removed the actual code.

    I was able to complete the task successfully. However, when a scheme procedure (SCHEMA_01.pkg_audit_info.p_load_COA) throws an exception, the job fails, and any transaction is rolled back.

    Is it possible to loop through each schema and run the corresponding procedures. Even if the exception occurs, it must restore only for this scheme and continue other patterns in the loop?

    Please let me know if there is a better way to do this. Is the way I'm handling exceptions in the work or the correct procedure?

    Thank you

    Hello

    RAISE_APPLICATION_ERROR will cause the program to exit to the appellant, even if you put it inside a block in the loop, so the statement RAISE or RAISE_APPLICATION_ERROR must be placed in your procedures 'pkg_audit_info.p_load_AM' and 'pkg_audit_info.p_load_coa '. In this way, you can use a block inside the loop and the error in the log.

    I'm IN

    (SELECT username FROM dba_users WHERE username LIKE '% ABCFIRM')

    )

    LOOP

    BEGIN

    vstmt: = "begin" | i.UserName | '. pkg_audit_info.p_load_coa; end;';

    EXECUTE immediate vstmt;

    vstmt: = "begin" | i.UserName | '. pkg_audit_info.p_load_am; end;';

    EXECUTE immediate vstmt;

    EXCEPTION

    WHILE OTHERS THEN

    --> Set the error in a table of otherwise custom event log you won't know what happened for this scheme: don't forget the user name

    END;

    END LOOP;

  • To loop through all the leaves in numbers

    How would browse all sheets in a file of numbers with AppleScript? (From here on, I'm wanting to rename each worksheet of the value of a cell on the sheet, but I think I found the part). Thank you very much.

    I'm not at home so I can't give you the exact code, and I assume that you already have some knowledge of script. If this can help:

    In applescript, you can refer to the leaves of number. that is to say the sheet 1

    so you might as likely get something like this works:

    Repeat with j from 1 to (number of sheets)

    say map j

    Hope this helps even a little.

    Jason

  • Store the user receives the value in a Variable of Odi

    Hello
    I want to store the value user given (run-time) in a .txt file using shell script. If I want to change the value of the user given to the shell script. In the package, I put the variable in mode refresh as a first step, then the odioscommand link OK. When I try to run this package fails (* ODI-1246: * the logical schema has not been set for Input_Variable).

    FYI: -.
    I just create a simple numeric variable. Select the most RECENT VALUE for her and the schema is not defined. Default value is 0.
    After that this problem occurred I select the oracle, memory engine diagram diagram etc and run again the package/scenario but it the same result.

    Please advice
    Thank you
    Papai

    NB
    Here are the details of the problem: -.

    ODI-1246: the logical schema has not been defined for Input_Variable.
    at com.sunopsis.dwg.dbobj.SnpSessTask.getDefaultDwgConnectConnection(SnpSessTask.java:508)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.getExecutor(SnpSessTaskSqlV.java:428)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.processTask(SnpSessTaskSqlV.java:405)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java:240)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)

    Yes. If you want to pass the variable at run time, then you will see a pop-up window. Here, you can pass the value.

  • I downloaded Itunes 12.3.3 and now I tunes does not recognize my Ipad or Iphone. I went through all the procedures and just uninstall and reinstall. Please fix 12.3.3.Thanks.

    I downloaded Itunes 12.3.3 and now I tunes does not recognize my Ipad or Iphone. I went through all the procedures and just uninstall and reinstall. Please fix 12.3.3.Thanks.

    iTunes: fix iPhone or iPod not detected Windows 10

  • How can I return to my start page without scrolling through all the links I have open?

    In previous versions of Ff, I could go to a menu drop down and go back to my original home page (or another that I had opened) without having to scroll through all the links open back. I can't find a way to do it in 4.0.

    You can get the menu drop-down by clicking on the previous/next buttons or now the left key pressed until the list is displayed.

    If you want the drop-down arrow, you can add it with the add-on of dropmarker rear - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • my sound keep disappearing. When I go to the volume control, it says no device installed. I have been through all the steps. How can I get my sound back?

    my sound keeps disappearing.  I go through all the help and support the steps but still no sound.  the volume control is all grey and says no audio device found.  but the Device Manager indicates that all is well.  What is the problem that I continue to have?

    Hello

    1. the troubleshooting steps are you referring?
    2. don't you make changes on the computer before this problem?

    The following article might be useful.
    No sound in Windows
    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

  • start-up problems: when you turn on the computer, it goes through all the trunk starts to load windows xp then starts again again and again

    When you turn on the computer, it goes through all the departures start loading windows xp then again again and again...

    Hi Keryn_Jansen,

    1. did you of recent changes on the computer?

    2. you receive an error message?

    3 when was the last time it was working fine?

    Check if you can start the computer in safe mode or from the last good known Configuration.

    Advanced Troubleshooting for General startup problems in Windows XP

    http://support.Microsoft.com/kb/308041

    How to fix a computer that does not start

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/how-to-fix-computer-that-will-not-start

  • I have xp pro I have activated telephone went through all the steps said active windows computing took me to the login screen, but when I try to log in, it tells me I have activated windows

    I have xp pro I have activated telephone went through all the steps said active windows computing took me to the login screen, but when I try to connect, it tells me that I need to activate windows so I click on activate the itr tells me that windows is already activated, then takes me in the newspaper and did the same thing

    To delete the message you are already enabled, you can force the activation on reboot. If the wpa.dbl and wpa.bak are damaged, they can cause a problem.
    Restart in 'Safe Mode '.
    Rename wpa.dbl and wpa.bak files located in the the\Windows\system32 folder
    Now, the message must be deleted, and you can now re-enable. TaurArian [MVP] 2005-2010 - Update Services

  • E-mail allows you to see the most recent at the top, but now I have to look through all the emails to be received email today. How can I fix it?

    I DON'T KNOW WHY BUT MY MESSAGES IN MY INBOX ARE ALL MUDDLED UP.
    USED TO SEE THE MOST RECENT AT THE TOP NOW, I TUNED THROUGH ALL THE EMAILS TO FIND THE RECEIPT TODAY'S MAIL? Help, please.

    Steve is of course correct.  What mail client do you have?

  • How can I retrieve all the values in a single query in the oracle XML

    Hi all

    I have xml format below, how do I retrieve all the values in a single query.

    < files >

    < job > MANAGER < / job >

    < details >

    < ename > JONES < / ename >

    < sal > 2975 < / sal >

    < ename > BLAKE < / ename >

    < sal > 2850 < / sal >

    < ename > CLARK < / ename >

    < sal > 2450 < / sal >

    < / details >

    < / documents >

    Thank you

    I prefer desgin a little more sophisticated xml and wrap the details in a separate label.

    Then you could something like that

    1 with testdata until)
    2. Select xmltype)
    3'
    4 MANAGER
    5


    6
    7 JONES
    8 2975
    9

    10
    11 BLAKE
    12 2850
    13

    14
    15 CLARK
    16 2450
    17

    18

    19
    20 ') in the form x
    21 double
    22)
    23 select
    24 j.job
    25, d.ename
    26, d.sal
    27 of testdata
    28 join
    29 xmltable ("Scriptures" in passing testdata.x)
    30 columns
    31 job varchar2 (30) path "job."
    32, details xmltype path «details»
    (33) j
    34 (1 = 1)
    left outer join 35
    36 xmltable (' details/emp' in passing j.details)
    37 columns
    path of varchar2 (30) 38 'ename' ename
    39, path of varchar2 (30) sal "sal".
    (40) d
    41 * (1 = 1)
    >/

    JOB                            ENAME                          SAL
    ------------------------------ ------------------------------ ----------
    JONES MANAGER 2975
    BLAKE MANAGER 2850
    MANAGER CLARK 2450

  • Where can I find my product key to 24 digits for Adobe CS6 Design and Web Premium? I went through all the normal download and a 19-digit serial number!

    Where can I find my product key to 24 digits for Adobe CS6 Design and Web Premium? I went through all the normal download and a 19-digit serial number! I had to buy a new hard drive from Apple, and when they were installed, I lost my programs. Help, please! Ive tried to download them for two days!

    http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html

    http://helpx.Adobe.com/x-productkb/global/find-serial-number.html

    Mylenium

  • I went through all the steps to download the trial version of Adobe Photoshop elements 13. It is said download completed, but nothing happened then prompting to launch the program. I checked the finder (MAC OS) and could not find. Don't have Adobe downloa

    I went through all the steps to download the trial version of Adobe Photoshop elements 13. It is said download completed, but nothing happened then prompting to launch the program. I checked the finder (MAC OS) and could not find. Don't have Adobe download wizard. How to open and run the program?

    Jediii please see Photoshop elements 13 full download. What to do next? where this topic was just discussed.

Maybe you are looking for

  • my printer does not print hp photosmart 7510

    help I can't print

  • initialize the Boolean control

    In a large VI, I need to create a Subvi who chooses between 3 plans (existing Subvi is attached). The problem is whenever I have start the simulation of the chosen scheme of previous simulation is preserved. How do I initialize Boolean controls such

  • I have Formated my Clip and it will not turn upward.

    Hello! I Pluged in my camera to the computer and then I formatted it from the computer! BUT! When I try to go to the database of device it tells me: Please Plugin device (: G) But Windows found the device and it work fine before I formatted it! and w

  • Windows 7 - THE DEPENDENCY SERVICE or GROUP has PU START

    Original title: I am Hiwa I got a problem with my internet connection when I opened the Network Center and sharing it tells me that you have a problem. no computer and internet was appear here! It is UNKNOWN THE SERVICE DEPENDENCY OR A GROUP COULD ST

  • ESXi 5.1 driver PMI-1157734 does not work properly?

    Hello worldI'm having a problem with an Intel RS25DB080 card. 5.1 ESXi can see the card properly and mount data warehouses which I created through the raid itself card bios. What I can't get to work is the card remote management.I installed the follo