How to use ODI tool (file move etc) and plsql in a ODI procdure step

Hi,
I need your help to uses both plsql code and ODI tolls in a ODI procedure step.
Req:
moving files to different directory Based on the variable value and previous step return code ,
BEGIN
IF #SEQ=1 AND <%=odiRef.getPrevStepLog("RC")%> =0
then OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=processed/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
ELSIF #SEQ=1 AND <%=odiRef.getPrevStepLog("RC")%> !=0
then OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=reject/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
END IF;
END ;
how do I do that ? which technology I have to use because for plsql I need oracle and ODI file move I need sunopsis
Please help me.
Thanks,

Hello User,
Use below code, it will work fine.
Technology: OdiTools
<@if((<%=odiRef.getPrevStepLog("RC")%>)>0 && #PROJ_FILE.SEQ==1){@>
OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=processed/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
<@}else if ((<%=odiRef.getPrevStepLog("RC")%>)>0 && #PROJ_FILE.SEQ==1){@>
OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=reject/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
<@}@>
Thank You.

Similar Messages

  • How to use multiple video files??

    hi all,
    i am using flex 4 ...
    now i have designed video player..
    i used single flv file for execution..
    how to use more flv files in tis program???
    i have included program also..
    can any one reply for this...
    thanks in advance...
    regards,
    saran r
    video.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()" height="700" >
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.core.UIComponent;
                import flash.events.NetStatusEvent;
                import flash.media.Video;
                import flash.net.NetConnection;
                import flash.net.NetStream;
                private var nc:NetConnection;
                private var stream:NetStream;
                public var videoDuration:Number;
                public var nsClient:Object = new Object();
                private var videoComp:Video = new Video();
                private var meta:Object = new Object();
                private var timer:Timer = new Timer(100);
                private var uiComp:UIComponent = new UIComponent();
                private function init():void
                    nc = new NetConnection();
                    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    nc.connect("rtmp://localhost/saran");                 
                    this.addElement(uiComp);
                    uiComp.addChild(videoComp);
                    timer.addEventListener(TimerEvent.TIMER,timerHandler);
                    timer.start();
                private function netStatusHandler(event:NetStatusEvent):void
                    trace("Code ===>>>    "+event.info.code);
                    if(event.info.code == "NetConnection.Connect.Success")
                        connectStream(nc);
                private function connectStream(nc:NetConnection):void {
                    stream = new NetStream(nc);
                    videoComp.attachNetStream(stream);
                    stream.play("Terminator")
                    // stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    stream.client = nsClient//new CustomClient();
                    nsClient.onMetaData = metadataHandler;
                    trace("stream ===>>>    "+stream.currentFPS);
                    //responder = new Responder(onResult);
                    // nc.call("getStreamLength", responder, "bikes" );
                private function metadataHandler(metadataObj:Object):void
                    meta = metadataObj;
                    videoComp.width = metadataObj.width;
                    videoComp.height = metadataObj.height;
                    //positionBar.move(videoComp.x, ((videoComp.y + videoComp.height)+20));
                    //positionBar.width = videoComp.width;
                    trace("Duration ====>>>>   "+meta.duration);
                private function timerHandler(event:TimerEvent):void
                    //trace("Timer called.........."+stream.time);
                    //positionBar.setProgress(stream.time, meta.duration);
            ]]>
        </fx:Script>
    </s:Application>

    I have the same question but I am using two pc's

  • How to use my as3 file in flex

    hi, I am new in flex and want to divert into flex. How to  use my as3 file into flex. Is there any sample tutor . so, that I could learn fast.

    Please clarify. Is this .as file a class you previously used as a complonentcomponent you now wish to use as the main application?
    If the .as file just has variables and functions you wish to access from your Flex app, use:
    include "subfolder1/subfolder2/etc/MyASFile.as";
    If you want to use classes from the file, do this:
    import subfolder1.subfolder2.etc.MyClassName;
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to use Vector or other ArrayList etc to store my JTree??

    How to use Vector or other ArrayList etc to store my JTree??
    Dear friends,
    I have following I posted before, but not get satisfactory answer, so I modify and repost again here.
    I have following code can add classes and students in the JTree,
    in class Computer Science, it has student Bill Brien,
    in Math, no,
    Then I I add Student Nancy, Laura, Peter into Computer Science Class,
    add AAAA, BBB, CCC into Math class,
    I create a new class called Chemistry, then I add DDD int Chemistry;
    so this JTree is dynamically changed,
    [1]. How can I dynamically save my current JTree with all above tree structure and its nodes in a Vector or ArrayList(not sure which one is best)??
    see code below:
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    public class ModelJTreeTest extends JFrame {
      private JTree tree;
      private DefaultTreeModel model;
      private DefaultMutableTreeNode rootNode;
      public ModelJTreeTest() {
        DefaultMutableTreeNode philosophersNode = getPhilosopherTree();
        model = new DefaultTreeModel(philosophersNode);
        tree = new JTree(model);
        JButton addButton = new JButton("Add Class/Students");
        addButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            addPhilosopher();
        JButton removeButton = new JButton("Remove Selected Class/Students");
        removeButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            removeSelectedPhilosopher();
        JPanel inputPanel = new JPanel();
        inputPanel.add(addButton);
        inputPanel.add(removeButton);
        Container container = getContentPane();
        container.add(new JScrollPane(tree), BorderLayout.CENTER);
        container.add(inputPanel, BorderLayout.NORTH);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(400, 300);
        setVisible(true);
      private void addPhilosopher() {
        DefaultMutableTreeNode parent = getSelectedNode();
        if (parent == null) {
          JOptionPane.showMessageDialog(ModelJTreeTest.this, "Select Class", "Error",
              JOptionPane.ERROR_MESSAGE);
          return;
        String name = JOptionPane.showInputDialog(ModelJTreeTest.this, "Add Class/Students:");
        model.insertNodeInto(new DefaultMutableTreeNode(name), parent, parent.getChildCount());
      private void removeSelectedPhilosopher() {
        DefaultMutableTreeNode selectedNode = getSelectedNode();
        if (selectedNode != null)
          model.removeNodeFromParent(selectedNode);
      private DefaultMutableTreeNode getSelectedNode() {
        return (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
      private DefaultMutableTreeNode getPhilosopherTree() {
        DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Students");
        DefaultMutableTreeNode ancient = new DefaultMutableTreeNode("Computer Science");
        rootNode.add(ancient);
        ancient.add(new DefaultMutableTreeNode("Bill Brian"));
        DefaultMutableTreeNode math = new DefaultMutableTreeNode("Maths");
        rootNode.add(math);  
        DefaultMutableTreeNode physics = new DefaultMutableTreeNode("Physics");
        rootNode.add(physics);
        return rootNode;
      public static void main(String args[]) {
        new ModelJTreeTest();
    }the actual Tree dynamically created somehow looks like following:
                             |            1.Peter
                             |---CS---    2. Nancy
                             |            3. Laura
                             |            4.Brian
                             |
    Root(University): -------|---Math- 1.AAA
                             |            2.BBB
                             |            3.CCC
                             |
                             |
                             |---Chemistry- 1. DDDThanks a lot
    Good weekends

    you can't directly store a tree in a list.Ummm... Just to be contrary... Yes you CAN store a tree in a table.... In fact that's how the windows file system works.
    Having said that... you would be well advised to investigate tree data-structures before resorting to flattening a tree into a list.
    So... Do you have a specific requirement to produce a List? Your umming-and-erring about Vector vs ArrayList makes it sound like you're still at the stage of choosing a datastructure.
    Cheers. Keith.

  • Hi Any body Knows How to use CAT Tool for Up Loading?

    Hi
    If any body knows how to use CAT Tool for up loading transactions, explain the steps.
    Our requirement is, we want to up load transactions like Oppor , Quotation,Order etc...we want to up load these transcations from Local system to CRM Server
    how to do this? Let me know the steps.
    Regards
    Venkat

    If you have 10,000 or less, CATT is a reasonable method, but I would suspect that you have far more than that if you're needing to load transactions.
    LSMW is probably a better way to go if you have more than 10k, but I am not familiar with LSMW

  • Hello how to use nativetoacii tool

    hi,
    iam unable to display the properties file labels which are in arbic properly..i created a properties file called MessageBundle_ar_AE.properties and saved it as UTF-8 formatt..i read soeme where that we have to use nativetoacci for displayingn them correctly..can any body tell me how to use this tool..for my above file..i need synatx for this..
    Regards,

    Look on your computer. Under the directory where your JDK is installed you'll find a "docs" directory. Under that there's a "tooldocs" directory and in that there's a file "tools.html". Look in there.

  • How to use a key file in the FTP Task using and SSL connection

    In the past I have used this code to set the FTP pass word in an FTP component task in SSIS.
    Does anyone know how to use a Key file in an SSL connection to download a file from an FTP site?  If not can you tell me where I can get the C# code examples to learn how to create a script task or if there is another way in SSIS to download large files
    from an SSL FTP site?  Thank you for any help offered.
    public void Main()
    ConnectionManager FTPConn;
    FTPConn = Dts.Connections["FTPServer"];
    FTPConn.Properties["ServerPassword"].SetValue(FTPConn, Dts.Variables["FTPPassword"].Value);
    Dts.TaskResult = (int)ScriptResults.Success;
    Antonio

    You can use SFTP for this.
    This is a way of implementing SFTP in SSIS using standard tasks 
    http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html
    also see
    http://blog.goanywheremft.com/2011/10/20/sftp-ftps-secure-ftp-transfers/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to use pen tool in Adobe and Illustrator?

    How to use pen tool in Adobe and Illustrator?

    With the pen tool in Indesign, is there a way of making the points not join if you want to make a few single lines?

  • How to use a c file in LabVIEW

    Hi All,
    I have a c file which communicates through serial port and J1850 protocol. I want to use the C file in labview and do the communication through serial port.
    Can any one give me an idea how I have to use the c file in LabVIEW.
    Thank you.!
    ---------------- Be Good. Do Good. ---------------------

    Have you tried reading the LabVIEW Help or even searching this web site? This question has been asked MANY times. There's a section in the LabVIEW Help called "Calling Code Written in Text-Based Programming Languages." There are also several articles written on this. Here's just one: https://decibel.ni.com/content/docs/DOC-1690
    Please do the research and then come back with a more specific question.

  • How to use bind tool in flash

    i'm using flash cs5.5 . i have a problem with bind tool. how to use it.i'm trying lot of times, but i can't find how to use bind tool.please any can help me with a helpful answer.

    Hi Sampath,
    Please use this Help article to learn how to use Bind Tool.
    http://help.adobe.com/en_US/flash/cs/using/WS58BD3A02-DA25-488f-B534-AE5463A24833.html
    Please let me know if you would need more help.
    Thanks,
    Suhas Yogin

  • How to use template.fmb file within form builder

    Hi
    I have created forms without using template.fmb file
    and deploy them on EBS then they working fine
    But when I try to use template.fmb file then it gives an error
    following are the steps :
    1:open template.fmb file with form builder
    2:rename that file with XXXX.fmb
    compile that file and deploy XXXX.fmb file in AU_TOP
    after that
    in putty i m trying to create XXXX.fmx file in same TOP but it gives an error
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.5.0 Production
    Compiling package specification APP_CUSTOM...
    No compilation errors.
    Compiling package specification APP_CUSTOM...
    No compilation errors.
    Compiling package body APP_CUSTOM...
    Compilation error on package body APP_CUSTOM:
    PL/SQL ERROR 302 at line 22, column 19
    component 'DISABLED' must be declared
    PL/SQL ERROR 0 at line 22, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 40, column 5
    identifier 'APP_WINDOW.CLOSE_FIRST_WINDOW' must be declared
    PL/SQL ERROR 0 at line 40, column 5
    Statement ignored
    Compilation errors have occurred.
    Form not createdfollowing is command
    $ frmcmp_batch module=$AU_TOP/forms/US/XXXX.fmb userid=APPS/apps output_file=$AU_TOP/forms/US/XXXX.fmx module_type=form batch=NO compile_all=special

    for you question - EBS General Discussion General EBS Discussion
    Compiling Forms In R12
    and search on forum

  • How to use eyedropper tool?

    Hi Everyone,
    How to use eyedropper tool?
    Please describe to me.

    Hi, yes sorry I mean colour overlay.
    Here's an example. If you fill a layer with the paint bucket tool using red. And then give that same layer a 'colour overlay' of blue. When you use the eye dropper tool it will  give you the red colour. I was just wondering if there's a key I can press at the same time as using the eyedropper tool that will set the foreground colour (2 squares at the bottom of the tools toolbar) to blue in this case, rather than the underlying red.

  • Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why do i need to do some settings for it ?

    Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why? do i need to do some pre defined  settings to run the cd's and dvd's ?

    A .exe file is a Windows executable. OS X does not run Windows programs. If you need to use .exe files then you will need to install Windows on your Mac:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How do i decide what files iCloud does and does not upload/store?

    Hello,
    I am in the process of uploading my music to the iCloud.
    This includes music from the iMatch facility that I am subscribed to as well as other music that I need to upload because it’s not available in the ITunes store.
    I have a question?
    How do I control what files/playlists etc are uploaded to the cloud??
    As at present I only have 50GB of storage, how to I best manage this to see what I have and check I upload all that I want?
    In the same way as doing a standard sync with your iPod/iphone to your PC, you can control what playlists and tracks that you add and which you don’t?
    How in essence do I do this with ICLOUD and prioritize what it holds??
    Appreciate your feedback folks
    Simon.

    Hi Kirk,
    Thank you for your response.
    I was under the impression that the limit was 50GB max or 25,000 files whichever came first?
    I have a total of 80gb :-)
    Anyway, if the limit is 50GB and say for somereason i only wanted to upload 3/4 of my files to the cloud, how do i detrmine which ones are uploaded and stored via match or non match upload and which remain outisde the cloud?
    Can this be done?
    Regards
    Simon.

  • How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?

    Hi!
    Question about the problem mentioned in subject.
    I have configured that JNLP opens with 1.5 version, both versions are enabled in Java Control Panel Runtime Settings but when I try to start a desktop java console says:
    Java Web Start 1.5.0_22
    Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
    And the opening of the desktop creates an exception:
    Java Web Start - Invalid Argument Error
    TooManyArgumentsException[ Too many arguments supplied: {C:\WINDOWS\Temporary, Internet, Files\Content.IE5\....
    I'm trying to open my desktop with 1.5 version and other programs with 1.6 version. What is it that I still need to do? I'm kind of confused with this. Some of my collagues have succeeded with this and some doesn't, with the same configuration.
    So the question is, how to use multiple JREs with IE8 so that one application uses 1.5 version and others 1.6 version?
    Br,
    Katri
    Edited by: ka**** on 09-Mar-2011 01:16
    Edited by: ka**** on 09-Mar-2011 03:16

    ka**** wrote:
    ..Question about the problem mentioned in subject.No "Using multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8" is a statement. To transform it to a question would be something like "How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?".
    Once you can come up with an actual question, I might look at this more closely.

Maybe you are looking for

  • Hp officejet 4255 all in one drivers for windows 7

    I HAVE HP 4255 OFFICEJET DRIVER FOR WINDOWS XP BUT WHEN CHANGED MY OS TO WINDOWS 7 I AM NOT ABLE TO INSTALL THE SAME -- AN ANYBODY POST THE DRIVER SUITABLE TO THE PRINTER WITH WINDOWS 7 OS? THANKS ALANGADAN

  • How do I fix meeting requests/invitations default to ms outlook calendar and do not show up on iCloud calendar?

    This is frustrating and seems to be a known issue. Regular calendar items work fine but any meeting invitations sent to and accepted on PC running Outlook 2010 with iCloud add in only show up on default (local) calendar. Must add them manually. Also

  • Trying to play an SWF file in an MS Word File

    I found a cool .SWF file and would like to create a Birthyday card and attach the SWF file (imbed it in the MS Word file (the Birthday card) that I am trying to create. so the recepient can only doubleclick on the SWF icon in the MS word and play it.

  • HP 6180 All-in-one won't print 6.5x4.5 paper

    I have tried changing to custom size in properties or printing preferences. The printer says size mismatch. Now it won't even let me go into properties. It says internet explorer has stopped working and makes me close the program.

  • Can't attach files in yahoo email with Lion

    After installing Lion, I'm unable to attach files from my Yahoo email account.!x? Also, I am unable to print from my Epson NX 400 printer as Epson has provided an update for Mac OS X v10.7+ Anyone have recommendations to correct issues, other than de