How do I get the loaded file_name into a variable?

Hi,
I am busy loading multiple flat files into my Oracle Database. I have defined a File Format for this and it works fine. However, there is a FILE_NAME field in my table, which should contain the name of the file where a specific record was loaded from.
My question is, how do I store the file name in a variable so that i can use it to fill the FILE_NAME field in my table? I have defined my global variable $FileName but I don't know how to write the script to fill this variable.
Your assistance will be highly appreciated.
Ndahafa

In DI 11.7 this is very simple because there's a new option in the file reader instance that adds the file name as an additional output column. You will find this option when you use a file format in a dataflow and check the file reader options (last set of options in the list). More information can be found in the Designer guide (File Formats chapter).
In previous versions this is more difficult to accomplish.
You would need to:
1) use script and the exec() function to write al file names to a text file (something like dir *.txt > filelist.txt).
2) read this file and write to a table
3) in a loop read the file name from the table (with sql() function) and store in a variable
3) in the file reader use the variable to acces the file
It might be worth upgrading to DI 11.7 is you need the simple solution .

Similar Messages

  • How do I get the birthday icon into the calendar

    How do I get the birthday icon into the calendar

    Open the Contacts app > Select a contact > Edit > add field (at bottom) > Birthday > enter date

  • HT1725 I downloaded an album and all of the tracks will play about 3/4 of the song then stop and play the next song.  I went to itunes store and it said the songs fully downloaded. So how do I get the full song into my library?

    I downloaded an album and all of the tracks will play about 3/4 of the song then stop and play the next song.  I went to itunes store and it said the songs fully downloaded. So how do I get the full song into my library?

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • How can I get the Icloud photos into my pc?

    Hello Buddy...
    I'm having problems to get my photos from my icloud into my computer.
    In the shared photos of icloud in my computer just show 165 photos but on my device I can see that I have 400 photos on my icloud.
    How could I get all this photos from my icloud? could you help me how can I proceed?
    TKS
    Look to hear you soon.

    Upgrade to Windows 7 or above

  • How can I get the phone app into the doc

    I moved from an ipod touch, without a phone app.   Now my iphone 5s has a phone app, but how do I get it to be one of the four choices in the dock?

    You control what is in your dock. It hasn't changed, Press and hold an icon til they start to wiggle and then drag the icons you want to move. You can take any app you want to where ever you want rearange them on your home screen or move them to another screen or in and out of the dock.( tip : you can have an open space on your dock to use as a holder for moving apps from one screen to another.drag icon to dock flick to screen that you want to place icon then drage icon out to the new screen)

  • I have the new ipad.  I am in the process of trasferring movies that were not purchased thru itunes from my PC  to the ipad.  My GB ipad allotment is almost used up.  How do I get the remaining movies into the cloud or does it only take itunes videos?

    I have the new ipad and I'm trying to transfer videos from my PC to the ipad.  My GB allotment is almost used up and I want to utilize some of my free cloud storage.  How do I do this or does the icloud only take items purchased thru itunes?

    iCloud cannot help you - it's not a storage device, but primarily a syncing and backup service.  You have to decide which videos to put on your ipad as you cannot add more memory to it.

  • Get the file name into a Odi variable

    Hi,
    I need to get the file name into odi variable like ..A/ETC/file.txt
    For eg.the filename file.txt should get store in a variable.
    Then i want to compare the file name stored in the variable with some other value.
    Please suggest.
    Thanks.

    in package,
    declare the variable, then evaluate it with another variable, generally using # syntax
    if the variable is date type, suggest to use : syntax, because # will treat the variable value as text value
    in loadplan
    use case when syntax,

  • How to get the name of tag or variable

    Hi everyone,
    I am a newbie, I have problem on getting the name or tag of the variable from OLE for Processing Control(OPC) server, could anyone tell me how I can get the name of tag or variable from writting vb codes or please direct me to any helpful information. Here are
    my codes,
    Dim ItemsDef(NBR_ITEMS) As String
    Dim DeviceAddress As String
    Dim IndItem As Long
    DeviceAddress = "MBT:152.160.178.60"
    'Preparing the Handles for "AddItems"
    For IndItem = 1 To NBR_ITEMS
    ItemsDef(IndItem) = DeviceAddress & "!40000" & Format(IndItem) '40000 is the memory location of variable in the OPC, how can I get the variable name, what is the code or syntax?
    Next
    blah...
    Thank you,
    Calvin

    Hi Calvin,
    If you are looking for general information and examples about OPC, then we have lots of places for you to browse!
    Here is a small list, and you can probably find other links within these documents:
    **If you have Measurement Studio from National Instruments, then you can look at the "Measurement Studio Reference" help file. Search for OPC and in the overview you will find the methods for accessing the items on an OPC server.
    **Elsewhere in the help file, you can find a link to this Application Note on our developer zone
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?​openagent&F4921B34CA8F4A9786256874005BE3F7&cat=7CD​A3E51FEFC4AA2862568B80071A1E2
    **One more resource is http://www.ni.com/opc
    **Probably the most useful will be the examples yo
    u can find on our web site. You can go to http://www.ni.com/support and in Option 3 search the Example Code database for "opc".
    In the first example program (Controlling OPC Servers with the OPC Automation API in Visual Basic) that you should get when searching for "opc" in the example programs database, look for the line with this code: "browser.GetItemID(leaf)". There you can see the way the program creates an OPCBrowser from the server instance, and then gets the servers available items for use by the client. This sounds like the specific information you are looking for with the variable name.
    If you aren't able to find out your answer here or in the various help resources, then please feel free to contact us at National Instruments at http://www.ni.com/ask
    Regards,
    John N
    Applications Engineer
    National Instruments

  • How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    Hello Arthur,
    Thank you for the reply.
    You were correct that deleting the app and reinstalling it was the only thing to make it work but unfortunately I lost all the documents I made, even though they were backed up to iCloud before i deleted the app. At the same time as deleting pages I had to delete keynote and numbers too, so I've lost all the documents in them too.
    The mb of data which was assigned to each programme in iCloud has reduced, so. I guess they are gone for good. Is there any other way to reaccess them?
    Not your fault but I am a bit fed up the the iPad. I have lost work that I've done and have no other copy apart from what was in iCloud, as I don't have a printer and couldn't email them too myself as I couldn't get into the programme and  i've also got episodes of tv series I purchased that I can't download and albums that are half downloaded with songs missing, so I feel a bit swindled out of time and money and am going back to DVD ,  pen and paper and CDs .
    Instead of using iCloud I guess the only way to make sure I don't loose any more documents it to email them to myself each time I save them on the iPad. Is there anything else you could suggest please?
    I don't have any other apple products apart from iPods, so I can't access the iCloud on anything else can I?
    Thanks
    Amanda

  • Old laptop crashed - how do I get the music stored on iPod into new laptop?

    My old laptop crashed so I cannot follow the instructions for moving my iTunes library to a new computer because I can no longer go into my old iTunes and switch it to manual update and enable disk use. How can I get the music stored on my iPod into my new iTunes? I have a 60GB iPod video. Thanks

    Connect your iPod to your computer. If it is set to update automatically you'll get a message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default. Check the "manually manage music and videos" box in Summary then press the Apply button: Managing content manually on iPod
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTunes Music Store purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. You'll find details in this article: Copying iTunes Store purchases from your iPod to a computer
    The transfer of content from other sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    SharePod Windows Only
    iRepo Mac and Windows
    iPodRip Mac & Windows
    YamiPod Mac and Windows
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.

  • HT1329 my old computer crashed ... how can I get the music on my ipod back into itunes

    My old computer crashed. How do I get the music from my ipod back into itunes? I purchased touchcopy software, it loaded one third of my library into itunes and froze.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How do you get the Tones tab on iTune so I can load a song on ringtones?

    How do I get the Tones tab on iTunes so I can load a song on ringtones? Any instructions on how to add a new ringtone?

    I looked into that, and you right.
    I will replace the Class.forName() with ClassLoader.loadClass() and instantiate a new ClassLoader everytime I need a new version of an existing class ( up to a limit of, say, 100 times, after which the server will notify the client that it has to be restarted before that class can be updated ).
    Now, another question: What happens when I load 10 different versions of "Msg404.class", using different loaders ?
    Will the JVM give me the latest version, when I instantiate Msg404.class ?
    ( That is what I would expect to happen ).
    Thanks, Fredrik.
    -RUi

  • My iTunes downloads were made using my old gmail address.  I had to quit using this email address as it got hacked.  I created a new gmail account.  How can I get my iTunes downloads into the new gmail account?

    My iTunes downloads were made using my old gmail address.  I had to quit using this address  as it got hacked.  How do I get my iTunes downloads into my new iTunes account that was created with a new gmail address?  In my old iTunes account (with the old gmail address,  I can't 'update' my email address or even 'add an alternate address' as I had already created this gmail account and inputting the new address into iTunes gives me the 'pop-up' that 'this account is already in use.'   Advice please!

    Good luck. It took me weeks to fix this when I had to do it. Your old ID branches out in lots of places. You may have to delete app and get them again, at least that is what Apple told me. Plus, all of your settings on your iPad that required any ID, will have to be changed. My old ID kept showing up in different places for weeks. Changing it on Apple.com is just the beginning.

  • I am using FCP 7.0.3.on my Mac Pro. I bought a new mac book pro and loaded the software on to the lap top but the software is 6.0.3. How do i get the update to the lap top?

    I am using FCP 7.0.3 on my Mac Pro. I bought a new mac book pro and loaded the software on to the lap top but the software is 6.0.3. How do i get the update to the lap top?

    .. and by the way, the jump from FCP 6.0.3 to FCP 7.0 (or higher) isn't an "update"  It's a full version "upgrade" that has to be done using the install discs (or disc images).
    -DH

  • I just got a new macbook pro. How do I get the 900  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work.

    I just got a new macbook pro. How do I get the 900+  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work. I would like to have access to my full library without going into the user profile of my old computer, which is on my new computers hard drive. I would like to eventually delete the old profile so that I have more space on my hard drive.

    http://support.apple.com/kb/HT4527?viewlocale=en_US&locale=en_US

Maybe you are looking for

  • Hyperlinks opening files in internet browser

    Hi, I'm going to get straight to the problem I seem to be enountering.... I am running Adobe X 10.1.3. What we have on our system, is a load of documents, which get created in MS Word 2010.  In these documents are hyperlinks, to individual .pdf files

  • Product Cost: Sequence Number

    hi anybody solve my ticket,error has been coming  in Conformation of the production order T.C:CO11N  i,e sequence 0 operations not found in order 60002685, check entry Message no:RU 006 i am checking in se91error is "sequence &1 operation &2 not foun

  • Question for GR IR functionality - audit requirement (three-way) match

    Hello, I have a question in regards to three way match functionality in SAP (matching of PO, GR and IR).  Auditors asked us if  GR-IV indicator is checked for every PO, and for our company this indicator cannot be checked for every PO due to drop shi

  • A compurter to connect it to how do i fix my phone

    my phone is stuck on the itunes screen and i dont have a computer to connect it to

  • Copy  Field-symbols

    How to create an internal table from an field-symbol internal table . Thanks & Regards Santhosh