Load File with wildcards?

Hello,
how could I load files with this pattern:
ausw_[name]_[date].xls (without the brackets)
Workbook workbook = Workbook.getWorkbook(new File("C:\\extracts/ausw_[name]_[date].xls"));
Could it be work with Regular Expressions?
Has anyone an idee?
Greetings
Marco

Check java.io.FilenameFilter and java.io.File.listFiles (FilenameFilter) or search the forum.

Similar Messages

  • FTP - FCC - GUILDFTPd - Unable to pick up multiple files with Wildcard char

    Hi All, 
    I am not sure if my issue is strange or i may be missing something here. I am using FTP - FCC and using GUILDFTPd to connect to my local machine. This is working perfect if i don't use wildcard characters in file name but if i use them it is not picking up files. I have green in Channel monitoring and polling as mentioned for every 60 Seconds.
    I have tried both using/without using 'Advanced selection for source file'  and also checked 'Adapter specific message attributes'. The same is working if i specify exact file name. By the way, i have tried using '*' and '?' as wildcard character.
    Any idea or help in this regard is appreciated.

    I have tried with just basic. I mean, it works fine if i specify exact file name. The problem is only when i want to pick up multiple files using any wildcard character. No error in communication channel or in archive settings as the scenario working for one file without any wildcard.
    However, i have changed to NFS and it is working good even with wildcard characters.
    It seems there is a problem with GUILDFTPd which is not picking up files but no errror.
    Any ideas are welcome. Thank you both for the responses.

  • URGENT: Problems Loading files with SQL Loader into a BLOB column

    Hi friends,
    I read a lot about how to load files into blob columns, but I found errors that I can't solve.
    I've read several notes in these forums, ine of them:
    sql loader: loading external file into blob
    and tried the solutions but without good results.
    Here are some of my tests:
    With this .ctl:
    LOAD DATA
    INFILE *
    INTO TABLE mytable
    REPLACE
    FIELDS TERMINATED BY ','
    number1 INTEGER EXTERNAL,
    cad1 CHAR(250),
    image1 LOBFILE(cad1) TERMINATED BY EOF
    BEGINDATA
    1153,/opt/oracle/appl/myapp/1.0.0/img/1153.JPG,
    the error when I execute sqlldr is:
    SQL*Loader-350: Syntax error at line 9.
    Expecting "," or ")", found "LOBFILE".
    image1 LOBFILE(cad1) TERMINATED BY EOF
    ^
    What problem exists with LOBFILE ??
    (mytable of course has number1 as a NUMBER, cad1 as VARCHAR2(250) and image1 as BLOB
    I tried too with :
    LOAD DATA
    INFILE sample.dat
    INTO TABLE mytable
    FIELDS TERMINATED BY ','
    (cad1 CHAR(3),
    cad2 FILLER CHAR(30),
    image1 BFILE(CONSTANT "/opt/oracle/appl/myapp/1.0.0/img/", cad2))
    sample.dat is:
    1153,1153.JPEG,
    and error is:
    SQL*Loader-350: Syntax error at line 6.
    Expecting "," or ")", found "FILLER".
    cad2 FILLER CHAR(30),
    ^
    I tried too with a procedure, but without results...
    Any idea about this error messages?
    Thanks a lot.
    Jose L.

    > So you think that if one person put an "urgent" in the subject is screwing the problems of
    other people?
    Absolutely. As you are telling them "My posting is more important than yours and deserve faster attention and resolution than yours!".
    So what could a typical response be? Someone telling you that his posting is more important by using the phrase "VERY URGENT!". And the next poster may decide that, no, his problem is evern more import - and use "EXTREMELY URGENT!!" as the subject. And the next one then raises the stakes by claiming his problem is "CODE RED! CRITICAL. DEFCON 4. URGENT!!!!".
    Stupid, isn't it? As stupid as your instance that there is nothing wrong with your pitiful clamoring for attention to your problem by saying it is urgent.
    What does the RFC's say about a meaningful title/subject in a public forum? I trust that you know what a RFC is? After all, you claim to have used public forums on the Internet for some years now..
    The RFC on "public forums" is called The Usenet Article Format. This is what it has to say about the SUBJECT of a public posting:
    =
    The "Subject" line (formerly "Title") tells what the message is about. It should be suggestive enough of the contents of the message to enable a reader to make a decision whether to read the message based on the subject alone. If the message is submitted in response to another message (e.g., is a follow-up) the default subject should begin with the four characters "Re: ", and the "References" line is required. For follow-ups, the use of the "Summary" line is encouraged.
    =
    ([url http://www.cs.tut.fi/~jkorpela/rfc/1036.html]RFC 1036, the Usenet article format)
    Or how about [url http://www.cs.tut.fi/~jkorpela/usenet/dont.html]The seven don'ts of Usenet?
    Point 7 of the Don'ts:
    Don't try to catch attention by typing something foolish like "PLEASE HELP ME!!!! URGENT!!! I NEED YOUR HELP!!!" into the Subject line. Instead, type something informative (using normal mixed case!) that describes the subject matter.
    Please tell me that you are not too thick to understand the basic principles of netiquette, or to argue with the RFCs that governs the very fabric of the Internet.
    As for when I have an "urgent" problem? In my "real" work? I take it up with Oracle Support on Metalink by filing an iTAR/SR. As any non-idiot should do with a real-life Oracle crisis problem.
    I do not barge into a public forum like you do, jump up and down, and demand quick attention by claiming that my problem is more important and more urgent and more deserving of attention that other people's problem in the very same forum.

  • Problem with loading file with SQL loader

    i am getting a problem with loading a file with SQL loader. The loading is getting
    terminated after around 2000 rows whereas there are around 2700000 rows in the file.
    The file is like
    919879086475,11/17/2004,11/20/2004
    919879698625,11/17/2004,11/17/2004
    919879698628,11/17/2004,11/17/2004
    the control file, i am using is like:-
    load data
    infile 'c:\ran\temp\pps_fc.txt'
              into table bm_05oct06
    fields terminated by ","
    (mobile_no, fcal, frdate )
    I hope, my question is clear. Please help, in solving the doubt.
    regards.

    So which thread is telling the truth?
    Doubt with SQL loader file wih spaces
    Are the fields delimited with spaces or with commas?
    Perhaps they are a mixture of delimiters and that is where the error is coming in?

  • LOAD FILE with xml

    HI
    I want to load an xml file into a RDBMS table, using sunopsis xml driver.
    I try to use an other xml file than the initial that is defined in the driver url.
    I cannot run this instruction in a XML treatment before the interface :
    LOAD FILE "C:/AXYUS/SURSAUD/entree/sosmed1.xml" WITH DTD "C:/AXYUS/SURSAUD/entree/sosmed.dtd" REPLACE READONLY AUTO_UNLOCK
    the file doesn't change at alll and I always load the initial file ( sosmed.xml )
    any idea ?

    Make sure that you issue your LOAD FILE command
    - on the SAME Transaction (0, 1, 2, etc...) than the one used in the LKM,
    - with the SAME logical schema as the source table logical schema
    - and with the SAME Context (if you use the execution context - leave it unset).
    This should do the trick, and the connection created in the procedure will be reused in the interface, provided that you chain both in a package.
    Regards,
    -FX

  • Loading file with empty/blank values

    My datas are in a file and my target is a DB2 table wich contains numeric columns, date columns, text columns (CHAR, VARCHAR)...
    If I load this file with Sunopsis with "KLM File to SQL", when the value of the column is blank in the file, the colum in the target table is null
    Now, with ODI and "LKM File to SQL", when the value of the colum is blank in the file, the data in the target table is :
    - null if it's a date
    - "0" if it's a numeric column
    - spaces if it's a text column
    Can you explain me why the result is different with the 2 tools ? I want that ODI make the same thing than Sunopsis.
    Thanks.

    For those who are interested, the problem come from the differents drivers used for files :
    In Sunopsis, by default :
    -     driver :     com.sunopsis.jdbc.driver.FileDriver
    -     url jdbc :      jdbc:snps:file
    In ODI
    -     driver :      com.sunopsis.jdbc.driver.file.FileDriver
    -     url jdbc :      jdbc:snps:dbfile
    Problem solved.

  • SQLLDR: Loading files with no extension

    Does the Sql*Loader mandates extensions in file? I'm providing data file in the argument like
    sqlldr CONTROL=test.ctl data=/whatever/AFileWithNoExtension
    It errors out with AFileWithNoExtension.dat not found.
    Thanks

    If you don't specify an extension sqlldr assumes as default extension .dat
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch04.htm#1004744
    You need to rename your file before running sqlldr

  • How to load file with seperators

    Hi, I am attempting to load a CSV file. Currently the first column has data in the format '101-000-12345-345' where
    101 is the entity
    000 is the Custom1
    12345 is account
    345 is ICP. There are other columns in the file for C2, C3 etc. My problem is that I need help on how to define an Import format which can (in the above example) pick up 101 for entity, 000 for Custom 1 etc. Please note the length for ENtity, C1, Account and ICP is fixed.
    Please advise

    Hi,
    It sounds like you need to define "-" as your delimiter for that specific Import Group.
    When you first create your Import Group you will need to define the delimiter. Once you have done this, you can then begin to define your Dimensions - here you are defining the format of your datafile. You have a couple options here - my recommendation would be to use the Import Format Builder - it will let you drag and drop sections to define your dimension. This will get you a bit more familiar with how this works.
    I would strongly recommend taking a look at the FDM Admin Guide, there is an entire section dedicated to creating an Import Group. Here is the link to the 11.1.2.2 doc - though you may be on a different version: http://docs.oracle.com/cd/E17236_01/epm.1112/fdm_admin.pdf
    Good luck!

  • How to load file with 500M into noncontiguous memory and visit them

    My data file consist of  a serial of 2d images. Each image is 174*130*2 butes and the total images in the file is up to 11000, which takes almost 500M bytes. I hope to load them into memory in one turn since I need to visit either image many times in random order during the data processing. When I load them into one big 3d array, the error of "out of memory" happended frequenctly.
    First I tried to use QUEUE to load big chunk of data into noncontiguous memory. Queue structure is a good way to load and unload data into noncontiguous memory. But it dosn't fit here since I may need to visit any of the all the images at anytime. And it is not pratical if I dequeue one image and enqueue it into the opposite end, since the image visited may be not in sequential order.
    Another choice is to put the whole file into multiple small arrays. In my case, I may load the data file into 11000 small 2d arrays and each array holds the data of one image. But I don't know how to visit these 2d array and I didn't get any cues in the posters here.
    Any suggestion?
    PC with 4G physical memory, Labview 7.1 and Win XP.
    Thanks.

    I'll try to get the ball rolling here -- hopefully there's some better ideas than mine out there.
    1. I've never used IMAQ, but I suspect that it offers more efficient methods than stuff I dream up in standard LabVIEW.  Of course, maybe you don't use it either -- just sayin'...
    2. Since you can't make a contiguous 11000-image 3D array, and don't know how to manage 11000 individual 2D arrays, how about a compromise?  Like, say, 11 3D arrays holding 1000 images each?   Then you just need ~50 MB chunks of contiguous memory.
    3.  I'm picturing a partially hardcoded solution in which there are a bunch of cloned "functional globals" which each hold 1000 images of data.  This kind of thing can be done using (A) Reentrant vi's or (B) Template vi's.  You may need to use VI Server to instantiate them at run-time.
    4. Then I'd build an "Action Engine" wrapper around that whole bunch of stuff.  It'd have an input for image #, for example, image # 6789.  From there it would do a quotient & remainder with 1000 to split 6789 into a quotient of 6 and remainder of 789.  Then the wrapper would access function global #6 and address image # 789 from it.
    5. Specific details and trade offs depend a lot on the nature of your data processing.  My assumption was that you'd primarily need random access to images 1 or 2 at a time. 
    I hope to learn some better ideas from other posters...
    -Kevin P.
    P.S.  Maybe I can be one of those "other posters" -- I just had another idea that should be much simpler.  Create a typedef custom control out of a cluster which contains a 2D image array.  Now make an 11000 element array of these clusters.  If I recall correctly, LabVIEW will allocate 11000 pointers.  The clusters that they point to will *not* need to be contiguous one after the other.  Now you can retrieve an image by indexing into the array of 11000 clusters and simply unbundling the 2D image data from the cluster element.

  • Loading files with my iWeb

    How do I load a file -- say spread sheet, pdf, or word processed document -- with my iWeb? I plan to have a host server different from MMe.

    If you are just wanting to link to them you could create a folder on your server "web host" called documents or PDF's with said files in it. The the link would be dome thing along the line of:
    http://www.YourWebsite.com/PDF/mydoc.pdf

  • Oraclexe and loading file with .xml suffix

    Using the Oraclexe utility to load an xml file it errors with xml error load, and that is all. I created a table (create table xmload of xmltype). Here is a snippet of the xml content. What needs to be done to "get there from here".
    <Response RequestID="1000000080000" Client="PERMS" RequestStatus="Passed" SessionAuthToken="sessionAuthToken" TimeSlot="09:20:00 18:00:00">
    <Soldier Status="Passed" NumberOfDocuments="53">
    <SSN>123456789</SSN>
    <SoldierName>Doe Jonnie</SoldierName>
    <Site>M</Site>
    <Document DocStatus="Passed" Pages="1">
    <DocType>CRS RES/NR</DocType>
    <DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
    <SID>G</SID>
    <EffDate>2002/03/15</EffDate>
    <AcceptDate>2002/04/29</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>202804760</DocID>
    </DocumentID>
    </Document>
    <Document DocStatus="Passed" Pages="2">
    <DocType>679DA</DocType>
    <DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
    <SID>A</SID>
    <EffDate>2002/04/30</EffDate>
    <AcceptDate>2002/09/14</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>202932534</DocID>
    </DocumentID>
    </Document>
    <Document DocStatus="Passed" Pages="1">
    <DocType>CRS RES/NR</DocType>
    <DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
    <SID>G</SID>
    <EffDate>2000/04/14</EffDate>
    <AcceptDate>2000/07/01</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>202074950</DocID>
    </DocumentID>
    </Document>
    </Document>
    <Document DocStatus="Passed" Pages="2">
    <DocType>679DA</DocType>
    <DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
    <SID>A</SID>
    <EffDate>1999/04/04</EffDate>
    <AcceptDate>1999/07/26</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>201773383</DocID>
    </DocumentID>
    </Document>
    </Soldier>
    </Response>

    For those who are interested, the problem come from the differents drivers used for files :
    In Sunopsis, by default :
    -     driver :     com.sunopsis.jdbc.driver.FileDriver
    -     url jdbc :      jdbc:snps:file
    In ODI
    -     driver :      com.sunopsis.jdbc.driver.file.FileDriver
    -     url jdbc :      jdbc:snps:dbfile
    Problem solved.

  • Load file with encoding UTF-16 into data base with encodin UTF-8

    I want to load a bfile into a clob using dbms_lob.loadclobfromfile. My problem i that the encoding in the file is UTF-16 and the database has UTF-8.
    Is there a way to convert the character set.
    I have tried to set the bfile_csid parameter to
    NLS_CHARSET_ID('UTF8'),
    NLS_CHARSET_ID('UTF16') and
    NLS_CHARSET_ID('AL16UTF16'). None of them works.
    /Jonas

    I have checked the MSDN document that it states:
    SQL Server does not support code page 65001 (UTF-8 encoding).
    http://technet.microsoft.com/en-us/library/ms162802(v=sql.105).aspx

  • Mass Rename of files with Wildcards

    Is there a command line I can use that will allow me to rename all the files in a folder to add "_thumb" to the end of each filename using a unix command in terminal?
    eg. I have chicken001.jpg, chicken002.jpg, etc.
    I want chicken001_thumb.jpg and chicken002_thumb.jpg
    However, I have 500 files in this folder and want to change them all.

    Yes you do. It is a zsh function.
    Do this:
    1. start zsh by typing (of all things)
    zsh
    2. Then issue
    autoload -U zmv
    3. Then make the following alias:
    alias mmv='noglob zmv -W'
    For additional information:
    cat /usr/share/zsh/4.2.3/functions/zmv

  • FileDownloadRenderer down loads file with errors

    We got this error message appended to the end of downloaded file after calling FileDownloadRenderer:
    "java.lang.IllegalStateException: Response has already been committed."
    Does any one know what this means? Thanks,
    --Sining fang                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    In Lion the downloads in Safari is the downward facing arrow button to the right of the toolbar, next to the google search field.  It appears after you have downloaded something.  It disappears if you clear the downloaded items list.

  • Problem in loading an external file with unicode name

    Hi,
    I am working on a project which involves loading of an
    external file with unicode name for ex:
    "插入音乐.mp3
    ,插入音乐.jpg". These unicode files are
    loaded successfully when I play/publish the movie with flash player
    alone.
    But when the movie is embedded in to HTML file, it is failing
    to load files with unicode name. this works fine with English name.
    is it a bug? if not pls help.. on this issue
    Thx

    what is your code? so we can get clear picture.

Maybe you are looking for

  • Masking Certain Field in Vendor Master Data

    We have a Enhancement which involves conversion of Vendor Numbers.,It so happened that a category of Vendor Codes were the Social Security Numbers. Now that due to Privacy Laws etc they are converting that number logic which is throwing challanges. T

  • BINDUMP of content denied in the SMICM log while connecting to external sys

    Hi, Though this question is related to SAP XI, I feel this question can also be answered by people in ITS, so i am posting this in this forum. In my current scenario where SAP XI system pushes data to another system(ABC system) using HTTPS connection

  • My ipod wont open the camera

    Everytime i go to my camera it is always on the shutter bar. Sometimes it goes black after a while. i have tried going on other apps using the camera and it doesnt work. i have reset my ipod many of times but it still doesnt help! HELP ME!!!

  • Cutting layers using curved shapes to create lines

    I need to create  a  document in .jpg format that has a photograph on one layer then two more layers with two color curved lines that will be covering only the bottom right, see the photo. trying this in Photoshop is killing me with the pen tool, wou

  • [HELP] About Sql Service Broker ==True ?

    i coding in other project, need copy oitm data to project, so sql set service broker ==>true, and use of ado.net sqlDependency to implement this function but company db service broker is false. if i change true,will cause problems in sap business one