ODI:data RDBMS and put it into a file

hi i need to put data from an rdbms to flat file using a variable to specify which file to put the data in.
now i know how to put the data into flat file by specifying the file name as the resource name while creating the target datastore.
now i need to use a variable instead of directly specifying the file name.
the variable must contain a query that can fetch the file name based on the count of another variable..........so i can chose which file to write the data too......

hi....thanks for the help
i created a variable named var1
i entered abc.txt as the default value of the variable.
in the target datastore resource name i entered #var1
and i created the package with var1 as refreshing followed by my interface as you said.
the problem is that the file being created is with the name #var1 and not abc.txt
when i open this file with notepad it contains the correct data.
can you pls help me with this......

Similar Messages

  • How do I take data from a data grid and put it into a variable?

    I am having problems taking data from a datagrid (guess you got that from the title) and setting it to a variable. I am tak
    ing the data from 3 different rss feeds, depending on what button you press, and showing it in a grid. I would like to be able to do more with this data. Here is my code so far:
    <mx:VBox id="vbox" x="70" y="150">
      <mx:Label text="This Data Grid is doing nothing" />
      <mx:DataGrid width="1000" dataProvider="{fullXML}">
       <mx:columns>
        <mx:DataGridColumn id="dataGrid" *dataField="channel.description" headerText="Feed"/>
       </mx:columns>
      </mx:DataGrid>
    </mx:VBox>
    <!-- from test 5 -->
    <mx:Move id="moved" target="{hbox}" repeatCount="0" easingFunction="mx.effects.easing.Linear.easeIn" />
    <mx:HBox id="hbox" fontSize="12" fontFamily="courier">
      <mx:Label text="{website**}" />
    </mx:HBox>
    * this is the data I want to get out
    ** this is where I want to be able to put the variable.
    I don't know if I can do it here or if I need a function or what.
    I would like to be able to put it into an array, but step one is anything at all, so I'm trying just a variable.

    Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
    fullXML[myDataGrid.selectedIndex].FIELD_NAME;
    myDataGrid would be the id from the grid I am guessing?
    and selected index would be the channel.description part?
    and FIELD_NAME; is the variable name?
    does this go into a funtion or is it placed at the top where the variables are declared?

  • IO - Read two image files and put them into one file

    Hi,
    i have 3 files in all. The two image files and one text file. I need to place the image in the first image file, followed by text in the text file and then the image in the second image file, into one file.
    Can anyone tell me how do i go about doing this ?
    i tried using fileinputstream and fileoutputstream, which works fine if all the 3 files have text but when the first and the third file have image, the code doesn't give any error but the result file displays only the image from the first file and nothing else.
    i am running short of time and need to do this really soon.
    if anyone has done anything like this. please let me know,
    thanx,
    poonam

    One approach would be to programmatcally create a single zip/jar file from the three input files. You can use the java.util.zip and java.util.jar packages for this purpose.
    The other apprach would be to create a single image by drawing images and text strings on a BufferedImage object.
    I think the first approach is preferable because you can easily extract the individual files from the zip/jar file

  • Can I take the old hard drive from a Mac Pro G5 and put it into a Mac Pro Dual Xeon?

    Hello,
    I have an old Mac Pro G5 that still runs fine but the video card is bad so you can't see anything. Can I take the hard drive out of the G5 and put it into the Mac Pro Xeon without losing the data on it?
    Thanks!

    jenniferfromescanaba wrote:
    Even if I go from the hard drive on the G5 to the next generation up from the G5 and put in that hard drive into that next generation up from the G5? Isn't the mounting nearly the same?
    The storage bays are physically different from those in a G5. G5's had two bays in ther upper reat of the chassis, the Mac Pros have four slots running front-to-rear two thirds of the way up the chassis.
    But as The Hatter says, you can use the G5 drives but may need to "manage" the data transfers.

  • Taking 2 separate data sets and putting them in 1 spreadsheet

    Hi,
    I am sure this is a simple issue, but it does not seem to be coming together for me. I am currently attempting to take data from 2 different text files and put them together into 2 separate columns. The code I have attached manages to put them together into one long column, does anyone have any advice on writing out that second list to another column instead of just appending it to the first?
    Thank you,
    Michael
    Attachments:
    Read_Text.vi ‏47 KB

    Hi again,
    Thank you for your comment about the breakpoint, I removed it.
    So I will attach everything I have, and maybe you can tell me where things can be tightened up.
    I will summarize how things work. Michael.vi basically takes a measurement of frequency and amplitude and puts them in text files as so. Read_text.vi then opens up those text files and puts them together into one nice text file, which I will post in my next comment along with the latest version of Read_text, as I can only upload 3 things at a time. I would then like to plot this information in an X-Y plot on the screen, which I have been attempting to do by putting the points together in clusters to be plotted, but that has been miserably failing.
    Thank you,
    Michael
    Attachments:
    Michael.vi ‏21 KB
    frequency.txt ‏18 KB
    amp.txt ‏12 KB

  • How do I get the pictures folders in photoshop 7 out of My window XP computer and put them into my new computer windows 8 photoshop12

    How do I get the pictures folders in photoshop 7 out of My window XP computer and put them into my new computer windows 8 photoshop12

    I am so sorry for you and your situation. Were you using iCloud photostream?
    Otherwise I do not see any chance for your precious photos.
    Congrats anyway on the little darling!

  • When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete

    When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete them, FireFox won't open. I tried deleting FireFox and reinstalling it multiple times, and a message pops up sometimes that says FireFox may not have installed correctly, so I follow the steps, but all the extra icons on my desktop don't go away. This has happened every time I have downloaded FireFox. The browser itself works, but I need to know how to get rid of these icons, but still be able to use FireFox. This is on a new computer, with Windows 7.
    == I downloaded FireFox. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

    Managed to solve this myself. Just went to properties > hidden.

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • I have taken my 750GB HD out of my 17" MacBook Pro and put it into a 2.5" USB to SATA enclosure but can't get it to open up on my new 11" MacBook Air. Any ideas please.

    I have taken my 750GB HD out of my 17" MacBook Pro and put it into a 2.5" USB to SATA enclosure but can't get it to open up on my new 11" MacBook Air. Any ideas please.

    Have you installed the recent update?
    There are some issues with Apple USB 3.0 ports and some devices.

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • I need to get photos off a water damaged iPhone 3GS. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    I need to get photos off a water damaged iPhone 3GS. It spent time underwater, saltwater. I let it dry for a week, turned it on, the apple symbol came on, then it died. I need to retrieve my photos off it. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    You're talking about the logic board. The two most likely things to get toasted, with water damage, are the battery(it shorts out), & the logic board. The worst water damage would be salt water. I'm afraid your logic board is toast.

  • I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto?

    I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto? Even if there are duplicates, I'd like to make sure I get all the photos from my phone into iphoto.  Thanks

    To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.

  • I purchased some music and put it into my iPod 6th generation but i cant find it (in my iPod) PLEASE HELP!!

    I purchased some music and put it into my iPod 6th generation but i cant find it (in my iPod) I have tried a few things most of which including dragging from various places, and i have tried syncing, HELP!

    I have tried a feww things (most of the to do with dragging from various areas, and I did try syncing, but it wont show up) HELP!!!

  • I purchased some music and put it into my iPod 6th generation but i cant find it (in my iPod)

    I purchased some music and put it into my iPod 6th generation but i cant find it (in my iPod)

    I have tried a feww things (most of the to do with dragging from various areas, and I did try syncing, but it wont show up) HELP!!!

  • Reading .txt files and put it into a TextArea

    Hi all,
    I got a problem! I have to make something like a messenger.
    I want to put the written text into a .txt file, after that I have to get the text out of the .txt file and put in into a TextArea.
    I would ike it to to that like this:
    ">User 1
    Hello!
    >User 2
    Hi!
    Now here are my questions:
    1: What is the moet easy way to do this ?
    2: How could i put Enters into a .txt file with Java ?
    3: How could i read all the text from the .txt file and put it into a TextArea WITH ENTERS ?
    Thanks for your help!
    Greetings, Jasper Kouwenberg

    use JTextArea.read(new FileReader(fileName)) for reading.
    and JTextArea.write(new FileWriter(fileName)) for writing.
    The enters should be ok if the user press enter and adds a new line ("\n") to the text area component.
    It will save the enter in the text file and load it correctly back to the text area.
    If you want to add enter programmatically just add "\n" string to the text area component.

Maybe you are looking for

  • Firefix doesn't display some kind of pictures

    Firefix doesn't display some kind of pictures in the google+. I've tried an advice from support but problem still exists (https://support.mozilla.org/en-US/kb/fix-problems-images-not-show). Other internet browser shows these pictures correct. It seem

  • ITunes charging credit card money aswell as iTunes card credit

    When purchasing a game from iTunes , while having just redeemed a 20 dollar iTunes card. iTunes asked me to confirm payment information, as I did and spent 2 dollars , I found later that iTunes took two dollars off my iTunes credit , later I checked

  • Oracle.apps.ont.oi.xml_int.status event

    I am trying to set up a subscription on the oracle.apps.ont.oi.xml_int.status(11.5.10) event via processing constraint to raise the subscription after the pick release. I am using the update operation and user action as Raise Integration event but no

  • Seeking help for JAX-RPC in Eclipse

    Hi, I am going to deploy a web service with JAX RPC in Eclipse. I googled the tutorials, but most of them involves priciples and XML stuffs. I feel it is really hard for a beginner. I am looking for some snapshots or other materials to demonstate how

  • Question about Exception!

    class A public void f() throws Myexcption class B extends A public void f() throws [Myexception][devied exception from Myexception] Why B.f() can only throw less exceptions than A.f()? if A temp = new B(); temp.f() will perform the B.f()'s defination