Spool filename that contains spaces

Hi Folks,
Does anyone know a technique for creating spool files that
contain spaces in the path name?
I have a script that I want to pass in a directory path as a
parameter. The script then uses this directory as the path for
dynamically created scripts which are run later in the main
script, but SQL*Plus won't allow spaces in the path name.
e.g.
myScript.sql
DEFINE P_DIR = '&1'
SPOOL &P_DIR.script1.sql
-- Dynamic SQL statements
SPOOL OFF
@&P_DIR.script1.sql
Called by plus80 @myScript 'C:\Documents and Setting\andy\'
I've tried various combinations of single and double quotes
around the variable references and even tried a HOST cd &P_DIR
command, all to no avail. I'm sure I've seen this done
somewhere before.
BTW Using a batch file is not a possible solution :(
Any help would be much appreciated.
Regards
Andy

This is logged as a SQL*Plus bug, #898051. It used to work in SQL*Plus 3.
If you have access to MetaLink http://metalink.oracle.com/ you can view the complete text of the bug.
-- CJ

Similar Messages

  • Pass parameters that contain spaces between web pages

    Hi,
    I have a .jsp . Inside it, I only need to call a link with a parameter.
    The problem is that the parameter contains spaces:
    name="ALARM LEVELS"
    If I write:
    <a href=modif_list.jsp?name=<%=paramName%>>See list</a></p>The parameter received in modif_list is "ALARM" and not "ALARM LEVELS"!!!
    How can I pass parameters that contain spaces between web pages?
    Thanks

    The think is that the parameter is a label and obviously I don't know the value before hand.
    In fact, I am using
    <a href=modif_list.jsp?table=<%=paramName%>&label=<%=label%>
    <%=tableName%></a></p>.....So I can't help it if the label contains spaces.
    Now if there is no solution, I suppose I can always replace the space by "_" and when I collect the parameter, I replace the "_" by a space!

  • How to cd to a directory that contains spaces in the name

    A brain dead application has created a directory hierarchy that contains white spaces in the directory path. For example: /first_dir/second dir/third dir/filename.
    I want to look at the file from the command line via iTerm/Terminal but I can not get there because the whitespace is interpreted as the end of the text string. Example: cd /first_dir/second dir results in "/first_dir/second no such file or directory"
    If I try "escape" the whitespace with: cd /first_dir/second\ dir/third\ dir I get an error that says "/first_dir/second dir/third dir no such file or directory"
    How can I change to the desired target directory?
    Second question, why do people do such stupid things? Haven't they heard of the underscore "_" for a space??
    Thanks

    How can I change to the desired target directory?
    Drag the file or enclosing folder into the Terminal window instead of attempting to type the path out.
    Second question, why do people do such stupid things? Haven't they heard of the underscore "_" for a space?
    Because they write applications intended for the majority of Mac users, who only go into the Terminal or similar software when troubleshooting.
    (56433)

  • Enter an email address that contains spaces

    In LiveCycle Designer, how do I enter an email address that has spaces in the Submit to URL field on the Submit tab of the Object palette? If I enter it as is:
    mailto:NCA ABC Help [email protected]?subject=Coaching Request
    Then the email address in the To field of my Outlook message is formatted as: NCA ABC <Help [email protected]>. I have tried replacing the spaces with %20, but it doesn't work.
    Thanks in advance.

    Hi,
    check the article, paragraph "Local Part".
    http://en.wikipedia.org/wiki/Email_address

  • Problem launching Firefox from Windows with file path that contains space characters in the html file's file name

    We have a software application that programmatically launches the default web browser using the Windows shell execute function ("ShellExecuteA" in the "shell32.dll" library of the Windows API) along with a file path for a saved local html file that is to be displayed. In the case that FireFox is the default browser and the file path for the html file contains any space characters in the html file's file name, Firefox (in this case v7.01) will display an error message "File not Found..." and then will also proceed to open tabs for each of the individual words in the file name, launching as the URL path, each individual word appended to ".com".
    In the following example, the path "C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm" when launched programmatically, resulted in the error message "File not Found...Firefox can't find the file at /C:/KSSecOfState/Forms/Kansas." and opened up browser windows for "http://www.secretary.com/", "http://www.of.com/", "http://www.state.com/", "http://www.and.com/", and attempted to launch "http://forms.htm". If the same file (renamed) is launched using the path string "C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm" the file opens up correctly in Firefox. Clearly the presence of spaces in the file name is causing the problem.
    I should also note that either path (with or without space characters) works properly if pasted directly into the Firefox URL path menu bar for a live instance of Firefox. The test path strings I used were:
    C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm
    C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm
    Does anyone know anything about this problem or how to work around it (other than the obvious answer of taking the spaces out of the file name which is not possible for this application). It seems the problem is specific to Firefox. IE works properly if launched programmatically with spaces in the file name passed to it. I haven't tested other browsers yet.
    Thanks!

    If starting from ShellExecute works the same as starting from the command line then there are two options:<br>
    Put everything inside double quotes<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''"c:\test\svg test.htm"'''<br>
    Convert to a valid url with file:// protocol and percentage-escaping the space<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''file://c:\test\svg%20test.htm'''<br>

  • How do I use the location bar to search for phrases that do not contain spaces?

    When I type phrases that contain spaces into the search bar, it brings up a google search as specified by my about:config under keyword.URL
    However, when I type anything that *does not* contain a space (e.g. potatoes), firefox tries to connect to http://potatoes/, returning a "cannot establish connection to server at potatoes"
    my keyword.URL is set to: http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=
    browser.fixup.alternate.enabled is *false*
    browser.urlbar.autocomplete.enabled is *true* (though I don't think this has anything to do with it)

    hello jywang74, please update to firefox version 33.0.2 - there you'll see a different behaviour (keyword.url is no longer used btw, the address bar uses the same search provider as set in the searchbar).
    http://msujaws.wordpress.com/2014/08/01/faster-and-snappier-searches-now-in-firefox-aurora/

  • ACCESS column names containing spaces

    Hi
    I'm new to Java SQL programming and have come across a problem I can't seem to fix reharding ACCESS column names that contain spaces.
    Here's the actual code :
    sqlquery = "select * from cars,qualify where group2 = '" + addComponentsToDrivers.currentgroupcode + "' and cars.car id no = qualify.car id no";
    here's the error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'group2 = 'INTGT5' and cars.car id no = qualify.car id no'.
    The question is how can I code qualify.car id no?
    Thanks
    Ken

    and cars.car id no = qualify.car id noand cars.[car id no] = qualify.[car id no]

  • Error submitting environment variable containing spaces

    Hello,
    I need some help passing an environment variable that contains spaces to the JVM when launched via the command line
    I can successfully use the following and read its value in the java application:
    java -DMYVAR=value.cfg myClass
    However, when I try
    java -DMYVAR="value1.cfg, value2.cfg, value3.cfg" myClass
    I get the following exception
    Exception in thread "main" java.lang.NoClassDefFoundError: value2/cfg"
    It looks like the inverted commas are being discarded and the JVM is treating value2.cfg as a class to execute
    I have run this on
    1) a Solaris box with the following details:
    SunOS trafford 5.6 Generic_105181-26 sun4u sparc SUNW,Ultra-4
    and java version
    java version "1.2.1"
    Solaris VM (build Solaris_JDK_1.2.1_04, native threads, sunwjit)
    2) an HP box with the following details:
    HP-UX wpsc02 B.11.00 U 9000/800 105911507 unlimited-user license
    and java version
    java version "1.4.1.00"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1.00-030116-09:58)
    Java HotSpot(TM) Server VM (build 1.4.1 1.4.1.00-030116-11:27-PA_RISC2.0 PA2.0, mixed mode)
    We want to do this so that we can get the value of MYVAR, split up the string using a StringTokenizer on the "," and pick out as many tokens as are present. As a workaround, we can leave out the spaces and it works fine, but it would be useful to be able to allow the spaces
    Thanks in advance to anyone who has any ideas about what is happening or how to solve this

    Try this:
    java "-DMYVAR=value1.cfg, value2.cfg, value3.cfg" myClass
    Notice the quotes are in front of the -D, not the equal sign.
    Juan

  • Tab-completion after directories containing spaces broken

    Hello,
    Some days ago I noticed that tab-completion doesn't work any more on files and directories that contain spaces. I'm pretty sure that it has. I'm using bash (3.1.17-1). I don't know when this happened, but my suspicion is that it is related to the upgrade to readline 5.2. Has anyone else experienced this? (Maybe someone can be a bit more specific than I )
    Hm, here are some other perhaps interesting settings on my system:
    LOCALE="en_US.ISO-8859-1"
    KEYMAP="sv-latin1.map.gz"
    CONSOLEFONT="lat1-16.psfu.gz"
    CONSOLEMAP="8859-1"
    Regards

    Romashka wrote:Probably due to upgrade of readline while bash was not recompiled.
    In bug report somebody mentioned that he recompiled bash against current readline without success in resolving the issue (so did slubman a moment ago). I think that's rather bash itself  or bash/readline (not likely since new bash works properly) problem.
    Anyway I'm stopping before I'll turn this thread into bug system I'm going to watch bug reports since now without "bugging" you (a insectorium in one phrase )
    Thanks a lot for your replies and interest!

  • To check that string contains space

    Hi...
    I have one char string, If that string contains any space then I want to display a message.
    how to check that string contains 'space'.
    Regards,
    Rohit

    Hi, you can do a small work.
    you can split the char string into substrings at spaces.
    if there is space then it will be splitted and then you can check the sy-subrc.
    if sy-subrc = 0,
    then the char string had some space in it.
    regards
    jayati

  • Store Filename in Container Operation of BPM?

    Hi,
    Is it possible to store filename in Container Operation of BPM step? I know that using mapping and assigning that field to Container Operation can be done.
    But, is it possible to do without using payload field assignment?
    Regards,
    Ashish

    That seems to be the only possible way. Bcoz the filename in the dynamic header is lost when the message enters BPM.
    Regards,
    Prateek

  • RWRUN60: Problem with parameter value containing space between single quote

    Hi All
    I'm using RWRUN60 to generate my report by following way:
    C:\orant\BIN\RWRUN60.EXE userid=DBUser/dbpasswor@db BACKGROUND="NO" BATCH="YES" DESFORMAT="pdf" DESNAME="C:\report.pdf" DESTYPE="FILE" ORIENTATION="LANDSCAPE" PARAMFORM="NO" P_REPORTID="2431" P_REPORTNAME="Report Name" report="C:\report.rdf" P_WHERE="StartDate>=to_date('2011-07-14 10-37-00','YYYY-MM-DD HH24-MI-SS')"
    When I tried to run given command above nothing was executed executed and any log didnt created.
    I found out that problem occurs when text between two single quotes contains spaces. In my case it is a parameter P_WHERE. I need to keep such format because it is part of report query.
    When I removed last parameter from command RWRUN60 successfully genereate pdf document.
    Further I added new test parameter P_TEST(it is ignored by rdf) in the end of command line following:
    P_TEST="test '11'" - rwrun60 generates report
    P_TEST="test '1 1'" - rwrun60 doesn't; generate report
    Can somebody help how to resolve given problem. Is it parsing bug or what else?

    Spaces on command lines a very often a bad idea. Get rid of them by changing the command, e.g.:
    to_date('2011-07-14:10-37-00','YYYY-MM-DD:HH24-MI-SS')

  • Hyperlink that contains backslash is not working in Acrobat Reader 8 and 9

    Hi,
    Does anyone know why a hyperlink that contains backslash is not working in Acrobat reader 8 and 9?
    I created a document in Indesign CS and it contains hyperlinks that open up files from network drive so they contain backslash (for example: c:\foder\forder\filename.jpg). All the hyperlinks work in Acrobat Reader 6 but not in Acrobat Reader 8 or 9.
    Anybody could share the solution would be very much appreciated. Thanks!

    Did you ever figure this out? I am also having problems with the "No Hand" javascript which turns off the (not very helpful) page-forward hand icon (a hand symbol with a down arrow) which confuses our users when in fullscreen mode. We create interactive PDFs and everything worked fine up to Acrobat X/Reader X. Now in XI it doesn't allow the internal link icon (pointing finger) nor weblink icon (pointing finger with W) to appear. It just remains a plain o’ hand icon no matter what you mouse over even though there are links present.

  • Problem with call to BAPI when the data contains spaces

    Hi everyone,
    I've a table in R3 that has 2 fields which is consulted via BAPI from XI. The Bapi call run correctly while the data don't contain spaces preffixed but when for example the data is ' A31' the BAPI call doesn't return nothing.
    The table structure is:
    CODE             DESCRIPTION
    values:
    ' A31'               'Desc A'
    'A30'                'Desc B'
    When I call the bapi with A30 value the Bapi return me Desc B, but when I try it with the value ' A31' the Bapi doesn't return any value.
    Could anyone help me?
    Thanks in advance

    >>The problem isn't the trim, because the bapi call must contain the spaces.
    Are you able to get expected results while testing the BAPI with data containing spaces?
    I have seen some cases where you get correct results when you test the RFC in SE 37, but the same data when passed from XI does not get the desired results. It was coz. when testing the RFC in R/3 some user exits are called and the data fets populated in the correct way. Check this.
    Regards,
    Jaishankar

  • Hyperlinks in word containing spaces are cut off in pdf generation

    We are using a mix of MS Word 2003, 2007 and 2010. All are experiencing the same problem when using Adobe products (Abobe Acrobat Pro 9, Adobe X, Adobe Elements) for the generation of a pdf document with respect to hyperlinks.
    When we have hyperlinks containing "spaces" they will get cut off in the resulting pdf document.
    Examples have formatting like this in Word
    http://team.eu.enet/XXX/Master data forms/Master Data Project.xls
    When we convert this in Adobe it cuts off the link after encountering the first space, like this
    http://team.eu.enet/XXX/Master (on the face of it the whole line looks like the one above, but the hyperlink shown when hovering over it has been cut like shown)
    In some cases the spaces are replaced with %20 (IE for example replaces spaces with these characters automatically). For those cases the conversion works just fine, and the whole line is maintained as a hyperlink also in the pdf
    http://team.eu.enet/XXX/Master%20data%20forms/Master%20Data%20Project.xls (again, the line does not look like this in the pdf, but the link when hovering over it does)
    When we use the Save as function in Word 2007/2010 this replacement is done automatically. the links in the "word generated pdf" are not containing spaces,
    Is there any way to get this replacement done automatically when converting hyperlinks from Word to PDF? Repairing the links afterwards (which is possible, I know) is not a viable option when you have many such links in a word file.

    Sort answer: Use proper syntax and do not use the "space" character in any URL.
    "20" is hex for the space character (which is a "reserved" character in that it may have special meaning).
    If used out of context being "reserved" applications have to make something of a guess.
    Success is the %20. Sometimes success is not had.
    So, again, proper syntax - no "space" character in a URL (use the underscore).
    Some references for a starting point.
    http://www.w3.org/Addressing/
    http://www.ietf.org/rfc/rfc3986.txt
    http://en.wikipedia.org/wiki/Percent-encoding
    Be well...

Maybe you are looking for

  • View iCal's day and week view in reverse chronological order

    Greetings iCalers, When I think about day/week calendars, with the Y-axis being times of the day as in iCal's day/week views (e.g. "3:00 AM", and "5:00 PM" are in the leftmost column), I think about times building up to midnight from the bottom-i.e.

  • How do I make sure my Mac doesn't have Google cookies even after utilizing Firefox preference tools?

    Last week for a short time Firefox was requiring me to enable third party cookies when visiting sites that previously didn't require 3rd party cookies. I contacted the sites and they never required 3rd party cookies to be enabled. I did detect and de

  • How can I reorder pictures in slideshow that are brought in from Aperture?

    I am bringing in about 100 photos from Aperture. When I bring them in to iWeb they re-sort to be according to file name as opposed to the time the photo was taken (I am merging my photos with photos from a friend's camera taken of the same event, so

  • Need FM to Read CO document

    Hi, I am looking for FM, which can take input posting date or cost center and return CO documents for selection criteria. if any of u know please reply back. Thanks in Advance, Deven Message was edited by:         Deven Chheda     Hi, can someone ple

  • SAP Portal Integration with InfoView

    Hi Experts, I have successfully configured SAP Portal Integration with InfoView using the following steps provided by Ingo: - set the system that you want to be authenticated against as the DEFAULT system in the options of the SAP authentication. - g