Capture the filename with ODI

Please find the query below. This has to be done exclusively in ODI only no shell scripts to get the file name.
Input file name : abc_<timestamp>.txt.
Now need to read the file and capture the filename.
Read the file and move it to Archive or Error Directories based on the output
How can we achieve this with in ODI?
Please let me know your inputs as early as possible.
Thanks in Advance.

Yes, it's possible.
For capturing filename you should use procedure using jython/beanshell
if the file is a source then you can use interfaces
Use the ---> for OK sucess and KO error
Use ODIFileMove utility to move the file
In order to do all these you should have understanding of using variables, models and interfaces.
For my part i have done a procedure which can monitor a directory and capture filenames as soon as file arrives , then invoke scenarios passing the filenames through variables.

Similar Messages

  • How to capture the Filename Dynamically in BPM

    Hi All,
    My scenario is FileBPMFile and my target end should get the same file name as source file name.
    If suppose it is simple File to File we can use set attributes option to get the same filename.
    But if BPM comes into Middle will it be managed if so how?
    Can anyone suggest me?
    Thanks,
    Kalyan.

    Hi,
    There is no difference between File>BPM>File & File-->File with the requirement you are looking for.
    Since you are not doing any modifications to the filename read from Sender File System no need for dynamic configuration concept in UDF of any mapping.
    Do the following
    Sender File Adapter Channel.
    file name : a particular file name or a .(STAR.STAR) according to your requirement.
    e.g., test.xml (or) *.xml (or) . (STAR.STAR)
    Enable Adapter- Specific Message Attributes check box and make sure that the File Name check box is enabled. Save and Activate.
    Receiver File Adapter Channel
    file name :  . (STAR.STAR)
    Enable Adapter- Specific Message Attributes check box and make sure that the File Name check box is enabled. Save and Activate.
    Execute your scenario.
    Thanks,
    Gujjeti
    Edited by: Praveen Gujjeti on Aug 11, 2008 10:14 AM
    There is formatting problem by the portal application as some characters will have specific meaning.

  • Using dataexport in a business rules and define the filename with a sub var

    Hi,
    I have created a calc script to export data using DATAEXPORT, and to define the filename an essbase variable.
    Here all right
    I copy this code to a business rules to run it from a business rules, but I have a problem with the essbase variable, when I validate it, it gives me the error:
    Detail:Encountered "&FileNm" at line 28, column 26.
    Was expecting:
    My essbase variable is set to:
    "e:\Hyperion\products\Essbase\EssbaseServer\app\TMPGB\dataexportCustomerY2.txt"
    in double quote
    How anyone use in a Business rules with the command dataexport an essbase substitution variable

    Just tried:
    Script: DATAEXPORT "File" " " &Filename "#Missing";
    SubsVar: "c:\DataExtract.txt"
    it worked with no issues.
    Cheers,
    Alp

  • HELP. Capture the Hdv with the Apple prores422 Capturing, but i can't chande the name of the file

    Hello there,
    i'm conforming an hdv shot while i capture it into FCP whit the setting of Apple pro res422.
    So the point is that when i start to capture the only thing that i can controle is to give the name of the file that i'm going to capture..
    everything is ok, but whet i have to chage the tape and so..the name of the file it does not work, even if i write the new name he keep the last name that i  use...
    i don't know what to do, i can't change the name after i capture because he capture the tape creating different file at all the stop of the shooting, so that i have alot of file for one tape..
    it looks like he keep in memory some protocols with the first name i give..but how i can change it when i change the tape??
    thnak u
    fede

    When you are logging your tape prior to capture you can do this.  For example, tape one contains scenes 1,2 and three, multiple takes of each.  Go to the beginning of scene one take 1.  Mark an in point.  Go to the end of all the takes of scene 1 and mark an out point.  Log the clip as scene one.  Do the same for scenes 2 and three.  Hit the batch capture button.
    Then as it captures it creates scene 1, scene1-1, scene 1-2, scene 1-3, et cetera.
    I HATE HDV.

  • Possible to capture the delimiter with split(String, regex)?

    If StringTokenizer is frowned on, is it possilble to capture the delimiter in the string array when using split()?

    In Perl, all you have to do is put parentheses around the regex to have the delimiters returned as tokens. I can understand why the Sun devs left that feature out, though: it would make split's behavior twice as confusing as it already is. Anyway, I can't think of a better way to do it than your lookaround method, Sabre.
    If StringTokenizer is frowned on,
    Says who?Says the docs, actually. They say to use split() instead, as if it were a drop-in replacement for StringTokenizer. Then they confuse people even more by implying that split("\\s") is equivalent to the default behavior of StringTokenizer (it should be split("\\s+")). I submitted a bug report about that, but they didn't want to hear it.

  • How to download the Oracle BI Apps 7.9.5.2 (the one with ODI) ?

    Hello,
    I would like to take a look on some real life usage of the ODI as an ETL tool and decided to install the Oracle BI Apps, where ODI is used instead of Informatica.. Unfortunately, I am not able to download it. Do you have an idea what a (Controlled Availability Release) means? Does it mean that I won't be able to investigate it? If there is no license issues, then who should be contacted from Oracle, so I can download it ?
    Thanks in advance!
    Edited by: hayrabedian on 2011-10-17 16:49
    Edited by: hayrabedian on 2011-10-17 16:50

    I believe 7952 was the only BI Apps release that used ODI. Also, this was only for EBS 1150 as a data source. That being said, you should still be able to download and install all components for 7952 from OTN.
    Here is the main documentation link..you can find the install and setup guides here as well:
    http://download.oracle.com/docs/cd/E12127_01/welcome.html
    If this response was helpful please mark as correct or helpful.

  • Using Image Capture to scan with Canon Pixma MX700

    I previously had trouble connecting my Canon Pixma MX700 to my MBP, but soon figured out that I needed a new high speed USB 2.0 cable, versus the old one I was trying to use it with. Doh!
    So now it prints without any trouble at all, and I know that all its features - printing, scanning, fax, copier, are supposed to be compatible with Leopard.
    However, I'm still having issues scanning. I Googled and found a comment somewhere that with this specific model, one has to use Image Capture for the scanning portion, instead of the Canon software.
    Great, so that explained the problem I was having trying to figure out how to GET it to communicate at all with the MBP (downloaded the latest scanner driver from Canon with no result).
    But it still will not scan with Image Capture. Communication is fine- the image is detected and I can see it perfectly in the Image Capture window, am able to change options, etc. Once I drag and select the image I want to scan and click the scan button, nothing happens. Or more specifically, the button will be click-able and for about two seconds it appears to be working (with the scan button substituted by a cancel button), but then the scan button will pop back up and nothing appears in the folder I specified the image to be saved to.
    Now I'm completely stumped. What am I doing wrong?
    Thanks!!!

    With my MacBook running Leopard, I had been able to successfully scan multiple images by pressing the MX7000 scan button and capturing the images with MP Navigator. The MX700 is networked over WiFi. Early on, I learned that it seemed to be more reliable to drive this process using the scan button, rather than trying to initiate the scan from the MP Navigator UI.
    However, recently things stopped working, and after the first image was scanned, subsequent scans would fail, with MP Navigator complaining about not being able to connect to the scanner. This sounds similar to the problem described in the original posting.
    I went to the Canon USA support site and downloaded /installed the latest versions of the MX700 scan driver (13.9.0) and MP Navigator (1.0.4), both available under the "Drivers and Downloads" section for the MX700 support page (be sure to select "Mac OS X" from the pull-down menu).
    http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&tabact=SupportDeta ilTabAct&fcategoryid=238&modelid=15651#DownloadDetailAct
    The new updates seem to have solved the problem, and I can now scan multiple images one after the other. Again, I always initiate the scan from the button on the MX700, and always capture using MP Navigator, which has the really nice feature for creating and editing multi-page PDFs.
    Message was edited by: donbondio

  • JFileChooser and the filename

    Hi All,
    I'm going for 11 new things learned today about Java!
    I'm using JFileChooser to prompt for a file, and I need to capture the filename and see if it's inside the file.
    I'm getting a "found int, expected boolean" compile error. Can comeone enlighten?
    Thanks!
    MVP
    String strFileName;
    JFileChooser jfc = new JFileChooser();
    strFileName = jfc.getSelectedFile().getName();  // tried both these
    strFileName = jfc.getName(); // lines
    currentLine = strInFileArray;
    if(currentLine.indexOf(strFileName)) //compile error on this line

    I didn't say it didn't compile, it does compile.
    And I know it doesn't do anything because I display
    currentLine before and after the change is attempted.
    And I did read up on the method - how do you think I
    found it in the first place?If you did, then what does it say after the word "Returns" in the method description? And where else could you have found the method? Some IDEs will spit out a list of possible methods that can be called from an option. One of the reaosns why I suggest new comers shouldn't use IDEs to start (forces them to learn about the API which is the best possible thing for someone in your (ie newbie, nothing personal) possition to do).
    >
    Now, if statements like
    i++
    setBackground(Color.WHITE)
    setFont(myfont)
    getContentPane().setLayout()
    repaint()
    and others (iow, no '=' for assignment)
    all change objects or attributes of objects, it seems
    a logical assumption to me that
    currentLine.replaceAll(strFileName,NEW_FILE_NAME);
    will change the object 'currentLine'.So you assume that all methods work the sae way, and forget the docs? The first sentance of the second paragraph in the String API says:
    "Strings are constant; their values cannot be changed after they are created. "
    So you see, the answer to your question, and the why it is the way it is, are both in the API.
    >
    Finally, (not for you jverd, you are polite), to be
    called names by supposedly mature posters on this
    forum - which exists specifically for beginner-level
    questions like mine - is just amazing. Excuse me for
    thinking I might find help and assistance instead of
    abuse.A double standard, yes? I have to be mature, but not you? You whine alot. You can ask questions without whining, others do it all the time (you didn't whine in the first question in this thread, and I tried to answer (well, tried to get you to answer yourself, which I believe is more beneficial)). Once you started your whining again, I became immature also. No apologies here.
    And even if the assinine (which it was intentionally) it still had some help (by pointing to the API). You saw the API before (which is good) but I did not know that, and your questions seemed to indicate otherwise.
    >
    TheReallyDisappointedMVPBuck up. Nothing personal. Just ask questions differently, that's all.

  • Filename with tab returned by getFileName()

    Our product uses JavaMail (1.4) to import mail messages from IMAP servers into our product.
    One of our clients is currently having a problem that sometimes attachments are not imported because they cannot be saved due to incorrect characters in the filename. Part of the reason is that we did not sanitize the output from Part.getFileName() (a MimeBodyPart in this case)
    We found out that in this case getFileName() returns a filename containing a tab (ascii 0x09), because (probably) their mailclient (Groupwise 7.0.2 HP) does not follow the intention of RFC 822 / 2822 (although it does conform to the letter of RFC 822) for the handling of long header fields. The mailclient has - as far as I can see - replaced a space in the filename by CR/LF and a tab (where I would expect CR/LF and a space).
    When JavaMail decodes the header this is (of course) decoded by replacing the CR/LF + tab by a tab, and getFileName simply returns the value of the filename parameter of the Content-Disposition header (including the tab).
    I would like to know:
    - Is there a system property to 'fix' this behaviour
    - Could you change the behaviour of getFileName() so it replaces any tabs in the filename with spaces (as far as I know there is no OS that allows tabs in filenames)

    Hi..thanks a bunch! The quotes did help. But there was another glitch. I could not store the existing file name in $oldfilename variable as only that part of the filename before the tab got stored. So wrote the filenames in the folder into a list file and then renamed one by one. Below is the code:
    for file in `ls $FilePath | sed 's/[     ]/,/g'`
    do
    echo $file >> $FilePath/"TabFiles"
    done
    ListFile=$FilePath/TabFiles
    for line in `cat ${ListFile}`
    do
    OldFile="$(echo "$line" | sed 's/[,]/     /g')"
    NewFile="$(echo "$line" | sed 's/[,]//g')"
    if [ "$OldFile" != "$NewFile" ]
    then
    mv "$OldFile" "$NewFile"
    fi
    done
    rm -f $FilePath/"TabFiles"
    I know the idea looks rather clumsy. Is there a better way of handling this?

  • Changing the filename prefix or setting the starting number

    I have two PowerShots. I have been using one for years. My newer one sets the filenames with the same prefix, IMG, and starts numbering at 0001. Can I change this so I don't get duplicate filenames in my photo library. I realize that having the new photos in different folders will help to prevent overwriting the existing ones. I would like to prevent the confusion or possible overwriting by mistake.
    Thanks for any advice.

    Hi Apic13,
    To keep your camera from resetting the file numbers, press the MENU button and go to the settings tab, It's yellow and normally has a wrench and hammer on it.  Now scroll down to "File Numbering", then use the right or left arrow to choose "Continuous", then press the MENU button again.
    This may vary slightly from model to model.
    I hope this helps,
    Richard
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How can I change the screen capture default filename and location?

    AS3 and AS4 screen capture keystrokes create badly named files in a bad location, i.e., picture1.png, picture2.png, etc. on the desktop. This is silly, as it creates un-differentiable files. I would at least like to change the filename template, and at best also the location that they go to, but I can't figure out how to do this, if it's even possible. (The filename should have a timestamp, not just a sequence number, for example: picture_200911181234.png or whatever -- pretty much anything but a simple sequence number!)

    Use TinkerTool to change the download location for the screenshots. However, AFAIK, you're stuck with those names unless you a folder action to the download location such that it will change the names according to some scheme you devise. For that, try a google search for *folder actions mac*.

  • Reg: How to capture the Excise Invoice with respect to Inbound delivery

    Hi All,
    Please give the process follow for capturing the excise invoice with respect to inbound delivery.
    Thanks & Regards
    Siva

    Hi Siva,
    Please check this link
    CIN with Example..?
    Regards,
    Bijoy Kumar

  • To capture the selected rows along with edited field contents in alv report

    Dear All,
             I do have requirement where, in alv report output one field is editable and need to save the content of the edited field along with the selected rows.
             For example If there are 10 records displayed in the alv output with 20 fields.
    Out of this 20 fields one field (say XYZ) is editable. Also i have already created a new pushbutton (say ABC) on alv output. Now in the alv output if we maintain some value in the field (XYZ ) for the 2nd and 4th record and select this two records, and when clicked on the pushbutton (ABC) it has to update the DB table.
          I am using the Func Module  'REUSE_ALV_GRID_DISPLAY'. 
          Your early reply with sample code would be appreciated.
    Thanks in Advance.

    HI Naveen ,
    There is an import parameter "i_callback_program" in the function module,
    plz pass the program name to it.
    Capture the command by passing a field of type sy-ucomm to "I_CALLBACK_USER_COMMAND ".  Check the returned command and
    and program a functionality as desired.
    u can try the event double_click or at line selection. there u can use READLINE command to c if the line has been selected.
    In case it is , process the code segment.
    Regards
    Pankaj

  • How do I find which photo iPhoto is telling me I have a problem with? I'm trying to buy a book I've formatted, but in place of the filename, it just calls it "(null)". All of the photos I'm using have names.

    How do I find which photo iPhoto is telling me I have a problem with?
    I'm trying to buy a book I've formatted, but in place of the filename, it just calls it "(null)".
    All of the photos I'm using have names.

    That same one others seem to have gotten: "Unable to Assemble Book -- There is a problem with the photo with the filename “(null).” The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your book"
    I've tried restarting iPhoto with the option and command keys pressed, and asking it to repair permissions, but still have the same message...

  • I have a 17" Macbook pro with flickering red and cyan(blue) lines across the screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem.

    I purchased my Macbook (17") through a certified apple tecnition in August 2012, it was refurbished and the motherboard was completely replaced. I do a lot of photo editing, but I have been unable to do so because of the red vibrating lines that interrupt my screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem. I brought the computer back to the technition I purchased it from and he said that it was a problem with my fan, so I have two new fans but the issue is still occuring. He says he doesnt know whats wrong. Does anyone have any information on this issue?
    Here is an image of the issue
    http://www.flickr.com/photos/67839707@N08/8884847081/

    I recommend having your Mac serviced by someone competent. A force sufficient to "blow apart" the fans was clearly excessive and may have damaged the display cable, as well as any number of other problems.
    Dust is properly cleaned with a vacuum, preferably one designed for computer service, and they are not cheap.
    Compressed air should never be used. It just blows dust everywhere, often into places where it can no longer be removed.

Maybe you are looking for

  • How do I use the Services menu to convert text to an iTunes track?

    I'm trying to convert text to an iTunes track using the Services option on the Firefox drop down menu, but having trouble with it. I have set my preferences to turn on that option, but all that happens is I get a spinning wheel at the top of my scree

  • How can i add a new count to this source code ?

    [4shared.com - document sharing - download db.txt|http://www.4shared.com/file/210566155/c080d93a/db_online.html] Hi everyone I have 5 variables 1. XTSM is between 0~200 2. XTS is between 0~2 3. XRX is 0~3 4. XHAN is 0~7 5. ZHTYPE is one of these : (1

  • Getting warning when trying to hide/show subforms

    hi, i have a pdf form with several subforms on it. I made the hide/show form option with the click event of some buttons. It worked fine. I then tried to do the same using the initialize method for the form. form1.page1.Subform1.presence = "hidden";

  • Last Week - This Week Snapshot

    Hi, I'm trying to produce a sales pipeline report to show comparisons from last week to this week on certain fields within the sales stage history subject area. I have got this to work for the Total Contract Value field by using the variables VALUEOF

  • Best way to export for DVD

    Hi Guys Right, I am exporting to DVD and i want to know the best way to do this at the highest quality, but also, so the DVD will play on most players. I am shooting in HDV 1080i 60, importing to Final Cut Pro 5.1.4 (the older final cut pro) using th