WILD CARD char in file Name

Hi all,
I'm trying to use the wild card character "" in file name to read files from App server using open dataset st.If the file name is 2005stcjk.txt ,and if i use wild card like 2005.txt it should be able to pick that up.I tried and i'm not getting this to work.
Is ther anything i'm missing,i guess it's possible.any help is greatly appreciated.
Thanks,
Gopal.

You cannot do that. Open dataset works with only one file at a time and the filename and directory should be valid.
You can use EPS_GET_DIRECTORY_LISTING function module to get the list of files in a specific directory. You can then loop at that internal tables with file names, and do a READ DATASET on each of those files. Remember, this function module is used on the administrative side, so you need proper authorizations to use function module. Otherwise you will get a blank internal table. Also, you can do a search with wild card only with * at the end, not any other way.
Hope this helps,
Srinivas

Similar Messages

  • How to load file thru reader which contains non-english char in file name

    Hi ,
    I want to know how to load file in english machine thru reader which contains non-english chars in file names (eg. 置顶.pdf)
    as LoadFile gives error while passing unicode converted file name.
    Regards,
    Arvind

    You don't mention what version of Reader?  And you are using the AcroPDF.dll, yes?
    Sent from my iPad

  • Remove First/Last N chars from file names?

    I have many files in one folder where the actual name of the file is preceeded by a few characters, and other files in another folder where the actual name of the file is followed by a few characters.  In Windows I could create a batch file in the directory, then when I run the file all other files in its directory are shortened by N characters from either the beginning or the end of the name, depending on what I wrote.
    Is it possible to do such a thing in AppleScript?  If so, would someone please point me to a resource or give me an example?  Thank you very much in advance.

    Hi,
    Avai wrote:
    Is it possible to do such a thing in AppleScript?  If so, would someone please point me to a resource or give me an example?
    Yes, it's possible.
    Here a example
    set nCharacters to 4
    set theFolder to choose folder
    display dialog "remove characters in name :" buttons {"Cancel", "End", "Beginning"} cancel button "Cancel"
    set btn to button returned of the result
    tell application "Finder"
      repeat with thisFile in (get document files in theFolder)
      try
      tell thisFile to set name to my cutChars(name, btn, nCharacters)
      end try
      end repeat
    end tell
    on cutChars(t, b, n)
      if b is "End" then
      return text 1 thru -(n + 1) of t
      else
      return text (n + 1) thru -1 of t
      end if
    end cutChars

  • Terminal command to rename files in bulk with wild cards?

    I had a group of files that had double extensions in the name and I wanted to strip the second extension:
    myfile.r01.1
    myfile.r02.1
    so that the new names were
    myfile.r01
    myfile.r02
    In DOS this would be accomplished easily by using the command line:
    rename myfile.r??.1 myfile.r??
    In OS X Terminal/Bash shell, though I couldn't find a command that has similar function that allows the use of wild cards in the file names.
    I tried both the 'mv' abd 'cp' commands along the lines of:
    mv myfile.r??.1 myfile.r??
    but nothing worked, even using the * for the wildcard.
    I did manage to use the Automator to accomplish the task by using some of its Finder options, but really, a simple command line would have been simpler and easier than building an Automator workflow for this.
    Can anyone point me to a unix command that would have done what I am looking for, and the proper syntax for it?
    Thanks.

    From this page: http://www.faqs.org/faqs/unix-faq/faq/part2/section-6.html
    How do I rename "*.foo" to "*.bar", or change file names to lowercase?
    Why doesn't "mv *.foo *.bar" work? Think about how the shell
    expands wildcards. "*.foo" and "*.bar" are expanded before the
    mv command ever sees the arguments. Depending on your shell,
    this can fail in a couple of ways. CSH prints "No match."
    because it can't match "*.bar". SH executes "mv a.foo b.foo
    c.foo *.bar", which will only succeed if you happen to have a
    single directory named "*.bar", which is very unlikely and almost
    certainly not what you had in mind.
    Depending on your shell, you can do it with a loop to "mv" each
    file individually. If your system has "basename", you can use:
    C Shell:
    foreach f ( *.foo )
    set base=`basename $f .foo`
    mv $f $base.bar
    end
    Bourne Shell:
    for f in *.foo; do
    base=`basename $f .foo`
    mv $f $base.bar
    done
    Some shells have their own variable substitution features, so
    instead of using "basename", you can use simpler loops like:
    C Shell:
    foreach f ( *.foo )
    mv $f $f:r.bar
    end
    Korn Shell:
    for f in *.foo; do
    mv $f ${f%foo}bar
    done
    If you don't have "basename" or want to do something like
    renaming foo.* to bar.*, you can use something like "sed" to
    strip apart the original file name in other ways, but the general
    looping idea is the same. You can also convert file names into
    "mv" commands with 'sed', and hand the commands off to "sh" for
    execution. Try
    ls -d *.foo | sed -e 's/.*/mv & &/' -e 's/foo$/bar/' | sh
    A program by Vladimir Lanin called "mmv" that does this job
    nicely was posted to comp.sources.unix (Volume 21, issues 87 and
    88) in April 1990. It lets you use
    mmv '*.foo' '=1.bar'
    Shell loops like the above can also be used to translate file
    names from upper to lower case or vice versa. You could use
    something like this to rename uppercase files to lowercase:
    C Shell:
    foreach f ( * )
    mv $f `echo $f | tr '[A-Z]' '[a-z]'`
    end
    Bourne Shell:
    for f in *; do
    mv $f `echo $f | tr '[A-Z]' '[a-z]'`
    done
    Korn Shell:
    typeset -l l
    for f in *; do
    l="$f"
    mv $f $l
    done
    If you wanted to be really thorough and handle files with `funny'
    names (embedded blanks or whatever) you'd need to use
    Bourne Shell:
    for f in *; do
    g=`expr "xxx$f" : 'xxx(.*)' | tr '[A-Z]' '[a-z]'`
    mv "$f" "$g"
    done
    The `expr' command will always print the filename, even if it
    equals `-n' or if it contains a System V escape sequence like `c'.
    Some versions of "tr" require the [ and ], some don't. It
    happens to be harmless to include them in this particular
    example; versions of tr that don't want the [] will conveniently
    think they are supposed to translate '[' to '[' and ']' to ']'.
    If you have the "perl" language installed, you may find this
    rename script by Larry Wall very useful. It can be used to
    accomplish a wide variety of filename changes.
    #!/usr/bin/perl
    # rename script examples from lwall:
    # rename 's/.orig$//' *.orig
    # rename 'y/A-Z/a-z/ unless /^Make/' *
    # rename '$_ .= ".bad"' *.f
    # rename 'print "$_: "; s/foo/bar/ if <stdin> =~ /^y/i' *
    $op = shift;
    for (@ARGV) {
    $was = $_;
    eval $op;
    die $@ if $@;
    rename($was,$_) unless $was eq $_;

  • File Adapter Reading Wild Card Problem

    I am using SynchRead so that the file can be read when a user clicks on a command button.
    Is it true that with SynchRead you cannot use wild cards to specify files for reading? (e.g *.txt)
    If so, is there a work around so that the file is only read on command?

    Hi,
    You have two options:
    - Use a file-based trigger
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CACICCDD
    - Use File Listing combined with a loop of SyncRead's
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABDHDDD
    Cheers,
    Vlad

  • How to use wild card character in input field

    Hi
    I'm creating model in which the Purchase Order information need to be entered in Input Field.
    My requirement is search using wild char char as '*'
    Let say in input field  i gave PO order as 20* then it'll search for all the PO's which starts from 20.
    Could you please share some documents/guidelines, for this issue
    Thanks and Regards
    Puneet

    Hi,
    You can use the wild card char in the input box.please try  below steps.
    1.Check whether the input string has ' * '  char using "CONTAINS(text,pattern)" operation.
    2.If yes, Replace the ' * ' with space by "REPLACE(text,pattern,repstr)" operation.->consider this result as input2
    3.Now , Have a Filter from ur webservice(which gives your Purchase Order information )
    and filter it by the condition " BEGINS(WSField,input2)"
    the Final expression in the filter will be "_=IF(CONTAINS(input,""),BEGINS(HelpWSField,REPLACE(input,"\","")),true)_"
    Hope it helps.
    Regards,
    Priya
    Edited by: priya on May 20, 2009 12:49 PM

  • FTP directory from part of PDF file name

    Hi,
    I have a requirement to FTP a pdf file to a server directory according to fist 10 char of the file name. I am able to get the file name using variable substitution method but how can i chop the 1st 10 char of file name as my directory? As the file is a .pdf i didn't do any data mapping.
    Thanks

    Hi,
       If you dont have any Mapping Objects,then writing adapter module to change file name is the right option
    or you can create dummy message mapping and add dynamic configuration UDF ,but in your case you trasfering PDF documents,this option is not feasible.
    or writing Java map is the other alternatine,but it is not recommanded to your requirement,because once again you need change the .add IR objects.
    Writen adapter module,
    add and chnage below code as per module and your requirement
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    SimpleDateFormat dateformat = new SimpleDateFormat("yyyyMMdd");
    String timestamp = dateformat.format(new Date());
    String filename_new=fileNametimestamp".txt";
    conf.put(key, filename_new);
    return "";
    Regards,
    Raj

  • Changing file names in the Information Pane

    Why doesn't changing the names of photographs in the Information Pane also change the name of the files in the iPhoto Library folder??
    If I import photos direct from my camera, the photos are stored with generic file names (like DSC_006) in the Original Folder and the Data folder in iPhoto Library folder. Once stored there, I understand that if you move, delete or "rename" any of those files "in the Finder" that iPhoto may not thereafter be able to see them.
    But I don't understand why if you change those file names in the Information Pane from within the iPhoto application, why the actual file names in the Original and Data folder aren't correspondingly changed.
    I would prefer to eliminate the generic file names and presently the only way that I can do that is to simply transfer the photos from the memory cards, change the file names and then import the files into iPhoto.
    This seems like an unnecessary step.
    Am I missing something here?

    If you want the capability of editing the original file names they you'll need to upgrade to a more professional application like iView MediaPro. Aperture doesn't let you change the original file names from within the application.
    If you need to the use file outside iPhoto with the same name as the Title in iPhoto then you can do just as PhillyPhan pointed out, export to the Desktop using the User Title option.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Wild cards in Replace text in File names

    Hi all,
    Is there a way to use wildcards in the Automator action to replace text in file names.
    Thanks
    Ro

    No - the *Rename Finder Items* action does not accept variables or wildcard characters. You can use a *Run Shell Script* action if you are familiar with that kind of thing, and I have an action that will replace a substring that is delimited by the specified text or numerical index, if that would work (it is available here).

  • File adapter wild card not working

    Hi Gurus,
    My file adapter seems to have issues with me
    This adapter do not obey me when I specify wild cards. I have tried * , ? and also "Adavnced selection of source file" but no use. Although, he is a perfect gentleman when I specify complete file names.
    Could you please suggest how to tame him?
    Regards,
    AV.

    Hi,
    this is what SAP Help says about it:
    file.sourceFileName=<filename>
    Specify the name of the file that you want to process.
    The name can contain a placeholder (*) at any point, so as to be able to select a list of files for processing.
    The following are valid examples for filename:
    myFile.txt
    my*.txt
    *.txt
    File.
    File.*
    myle.
    Names that comprise more than two parts are also permitted.
    Hope it helps.
    Regards
    Patrick

  • Open file using wild cards

    does anyone know how to open a file using wild cards in the name.
    For example, a certain folder will contain a number of files, with the name constructed as follows:
    CALDB_ then a 6 digit serial number, and then 14 characters which could be ANYTHING.  so it might look like this
    CALDB_123456_33KA1234567890.txt
    or
    CALDB_123457_33KA1234567890.txt
    The key part of the file name is the 6 digit serial number which is unique, and the CALDB_ which is always the same.
    I would like to use a file open command with the file name something like  CALDB_123456_*.txt, but it doesn't appear to work. 
    Can anyone help?
    Thanks
    Solved!
    Go to Solution.

    Hi Dylan,
    I have been searching along our forum, and found a similar question for using wildcards in selecting files. An active user (unclebump) replied on this request with a VI, with which you can select a folder on your computer which is scanned for certain files. I've adjusted this VI for selecting the CALDB_* files. Enclosed you will find this file (zipped) including my test folder.
    Maybe this will be helpfull for your application.
    Best regards,
    Peter Schutte
    Message Edited by Peter S on 10-14-2008 03:22 AM
    Attachments:
    File selecting.zip ‏12 KB

  • Need wild card command to export multiple csv files for software inventories list

    I have a powershell script that does software inventories and then export into a csv file. now the problem is if i were to do this on multiple machine and point the path to a network share it will replace the olde csv file since the csv file has a same name
    and i will end up having only one computer software inventories instead of multiple ones.
    here's the string 
    Get-WmiObject win32_Product | Select Name,Version,PackageName,Installdate,Vendor | Sort InstallDate -Descending| Export-Csv P:\test\inventorries.csv
    is there a way i can use a wild card to name these files in a sequential order? i have tried *.csv but no luck
     

    How about adjusting the filename to include the machine hostname.
    Get-WmiObject win32_product |Select Name,Version,PackageName,Installdate,Vendor | Sort InstallDate -Descending | Export-Csv -Path ('p:\test\inventory_' + (hostname) + '.csv')

  • Safari "Download Linked File As ..." dialog box seems to convert 3 or more consecutive period chars (\056) in the new file name into a Unicode ellipsis char \342\200\246 in the file name.  How prevent this ?

    Safari "Download Linked File As ..." dialog box seems to convert 3 or more consecutive period chars (\056) into a Unicode ellipsis char ( \342\200\246 ) in the file name that I type.  How does one prevent this ?

    I know nothing about “EndNote”, but allow me to give you some general advice. Your first, commented-out, line (“--section to wait for window to pop up”) indicates that you need to change the basic way you are tackling what you want to do. When writing any script, if you know the name and location of a file or a directory (folder) you should not cause (or allow, or need) your script to open an Open or a Save window -- just use the path that you already know.
    Andreas

  • Serving up files with Russian chars in the file name

    Anyone know how to get CF 8 to serve up CFM files with
    Russian characters in the file name? I can get IIS to server up
    .html files but .cfm files turn in to ?????????.cfm files.
    For example, this:
    новостииобновления.cfm
    becomes this ??????????????.cfm and throws a CF error (File Not
    Found) when clicking on the link. The strange thing is I can see
    the Russian characters in the status bar when I mouse over the link
    but CF can't handle it. And IIS will serve up the file and replace
    all the chars with their URL entity equivalent.
    Any suggestions on how to fix?

    Open the Script Editor or AppleScript Editor in one of the subfolders of Applications and run the following:
    tell application "Finder" to quit
    if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then
    do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
    else
    do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
    end if
    delay 2
    tell application "Finder" to run
    If you change your mind later, run the script again.
    (93787)

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

Maybe you are looking for

  • Difference between Invoice Date, GL Date and Accounting Date Oracle AP

    Hello, I have a question that might help a lot of people too later. I tried to run these queries select aia.INVOICE_ID from AP_INVOICES_ALL aia, AP_INVOICE_DISTRIBUTIONS_ALL aida where aia.INVOICE_ID = aida.INVOICE_ID and aia.INVOICE_DATE <> aida.ACC

  • Deletion of Confirmation (created on 2008) goes in to error

    Hi, When i am deleting the confirmation in SRM which created on 2008, the reversal document goes in to error saying that " Error whilst creating an entry sheet in the backend system 9300000475 053 Posting only possible in periods 2009/02 and 2009/01

  • Can Acrobat Reader DC be used on a Mac

    Can Acrobat Reader DC be used on a Mac?  From what I read it appears to be for Microsoft only.

  • Browsing a file

    Hello there, I want to use the file type field to browse a pdf or word document in my registration form.I dont know how to use it. Please help me. I have followed the following example.But dont know how to upload a pdf or word document. http://www.w3

  • Ora-20100 file o0056030.tmp creation for fnd_file failed

    Hi all, i have created a menu and save . when i checked on view-->request --Find i got following error. ora-20100 file o0056030.tmp creation for fnd_file failed plz help thanks