RWCLIENT issue when passing parameters with spaces

AS 10.2.0.2 on Sun Solaris 10. We have reports that are scheduled and sum of the parameters have spaces in the value. For example parm1=I am with spaces. We would then generate a command line that shows the parameter like rwclient.sh server=rep_serv report=report1 parm1=I am with spaces. This errors with numerous messages. I tried surrounding the value in single quotes like this rwclient.sh server=rep_serv report=report1 parm1='I am with spaces'. When running the quoted command the report server shows the parameter as parm1='I' am with spaces. We have the parameter page of the report as the first page which allows us to see what was actually used as parameters. Of course the data in the database has no value that matches with the single quotes so no data. I need to be able to pass a value with spaces and it actually show as a parameter with spaces. We do not have this issue when we can run with forms built-ins as you actually build a parameter list to pass. Thanks in advance.
Edited by: gdaustin1 on Jan 26, 2012 8:03 AM

It's a bit of both I guess. On a command line a space is used to separate switches and variables. Like this demo.bat:
@echo off
echo %1Results in:
C:\Temp>demo.bat Hello World
Hello
C:\Temp>demo.bat "Hello World"
"Hello World"If you want to remove the double quotes, you have to change your source code to:
@echo off
echo %~1Now you get:
C:\Temp>demo.bat "Hello World"
Hello World

Similar Messages

  • Passing parameters with spaces to SCCM Run PowerShell Script task

    I am working on an OS deployment task sequence in SCCM 2012 R2 with several Run PowerShell Script tasks.  Most of them run fine, but I am having trouble with the one I need to pass parameters to.
    The parameters I need to pass are:
    -ComputerOU "ou=All Workstations,dc=contoso,dc=com" -GroupDN "cn=Group1,ou=All Groups,dc=contoso,dc=com"
    I have that line (with actual DNs) entered in Parameters of the task.
    But when the script runs on the target machine, the values of the parameters in the script are truncated at the spaces.  $ComputerOU is set to "ou=All" and $GroupDN is set to "cn=Group1,ou=all"
    What syntax should I be using the Parameters field of the Task in order to properly pass PowerShell parameter string values that include spaces?
    Tim Curwick
    MadWithPowerShell.com

    Thank you, TC, but I am not calling the parameters from within PowerShell.
    The parameters are in the settings of a task sequence task to be used by the task to launch a script.  The syntax I am using would be correct for use within PowerShell or from a command line or batch script, but SCCM appears to be doing some parsing
    before or while it is passing them to the script, possibly dropping the quotes which causes mishandling of the spaces in the string values.
    Historically, it is always challenging to give one application parameters to pass to another application, and the required syntax can get quite tricky when the two application handle quotes or spaces differently, or when the parent application wants to parse
    something intended to be passed on as is to the child application.
    I'm sure someone has already figured out what the syntax needs to be for doing this with an SCCM 'Run PowerShell Script" task, it's just one of those issues that is hard to Google effectively.
    Any other ideas?
    Tim Curwick
    MadWithPowerShell.com

  • Passing parameters with spaces in Oracle reports

    I hav a system that passes a query string to a servlet and generates an Oracle Report. All of the varibles worked Ok as long as they don't have spaces in them. Whenever a parameter with spaces is encountered,it generates an error. i tried to enclose it in single or double quotes but it didn't work. I also tried to insert the Url Encode for spaces which is %20 but it also generated an error. pls help me on this one...

    I suppose you're working with GET instead of POST. Try to use the POST method; this gives you the possibility to work with a URL without parameters behind the question mark. This might be the solution to your problem.

  • Using shell pass parameters with space to Java

    Hi friends,
    I have a shell script accepting parameters as below
    #!/bin/sh
    #test.sh
    ./setEnv.sh
    java -classpath $CP com.rky.Main *$@*
    CP=
    If I run the script like this ./test.sh -annotation "This is a problem".
    If shell pass the parameters to Java, the parameter "This is a problem" will recognized as 4 parameters by java. That's not what I want . I still need java use it as a whole parameter.
    Do you have any easy ideas to resolve this problem out of my java code?
    Thank you.

    yes, from the bash manpage:
           @      Expands to the positional parameters, starting from  one.   When
                  the  expansion  occurs  within  double  quotes,  each  parameter
                  expands to a separate word.  That is, "$@" is equivalent to "$1"
                  "$2"  ...   If the double-quoted expansion occurs within a word,
                  the expansion of the first parameter is joined with  the  begin-
                  ning  part  of  the original word, and the expansion of the last
                  parameter is joined with the last part  of  the  original  word.
                  When  there  are no positional parameters, "$@" and $@ expand to
                  nothing (i.e., they are removed).(your manpage could be a little different because of versions, and I got this from the manpage of bash on a mac. but the main things should apply)

  • Passing arguments with spaces through to asc.jar

    According to the docs, we can pass arguments through to llc using -fllvm-llc-opt.  Additionally, with llc we can pass arguments through to asc.jar using -ascopt.  Let's say I want to define an AS3 variable in my flascc swf/swc.  asc.jar says that I can do this using "-config <ns::name=value>".
    So it seems like I should be able to do this:
    gcc ... -fllvm-llc-opt=-ascopt=-config CONFIG::RELEASE=true
    But this doesn't work, as the "-config" parameter takes its next argument via a space and not an equals, which throws the whole thing off.  gcc thinks its another argument.  Trying it with spaces like this:
    gcc ... "-fllvm-llc-opt=-ascopt=-config CONFIG::RELEASE=true"
    also doesn't work.  The toolchain outputs:
    Error:
    LLVM ERROR: Failed to run /usr/bin/java with args:
    -Xmx1500M -jar /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/asc2.jar -merge -md -abcfuture -AS3
    -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/builtin.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/playerglobal.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/BinaryData.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/Exit.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/LongJmp.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/ISpecialFile.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/IBackingStore.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/InMemoryBackingStore.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/IVFS.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/CModule.abc
    -config CONFIG::RELEASE=false -d /var/folders/cn/hjz9nbt53bdfpn1rzn6wdb900000gr/T//ccQPoczK.lto.2.as /var/folders/cn/hjz9nbt53bdfpn1rzn6wdb900000gr/T//ccZDGxMF.lto.1.as -outdir . -out output
    As you can see, the "-config" command made it to asc.jar.  What I think is happening is that its being passed to asc.jar as one argument (not two).  For example, I can copy-paste this command into bash and it will work-- just not when done from gcc.
    So: how do I pass arguments with spaces through to asc.jar?

    I believe you should be able to do this by splitting it across two fllvm-llc-opt flags:
    gcc ... -fllvm-llc-opt=-ascopt=-config -fllvm-llc-opt=-ascopt=CONFIG::release=true
    The Makefile in the 12_Stage3D sample that ships with the FlasCC SDK demonstrates this.

  • Passing parameter with space?

    How does java pass parameter value with spaces? e.g. url?param1=value with space .
    Is there any built in method like PHP's addslashes?
    Thanks.

    URLEncoder.encode("value with
    space","UTF-8")Also the core JSTL tag c:url will encode parameters with spaces, and of course there's the crude way of just using the + sign.

  • Call Paje jsp passing parameters with method post

    How can I call a jsp page with outputlink, passing parameters with method post ?
    Ex: I need that the word "?pNumMensagem=#{currentRow["NumMensagem"]}" not was exposed when a call P0077_2.jsp.
    <h:outputLink binding="#{P0077.hyperlink1}" id="hyperlink1" target="t1" value = "#{facesContext.externalContext.requestContextPath}/faces/P0077_2.jsp?pNumMensagem=#{currentRow["NumMensagem"]}">
    <h:outputText binding="#{P0077.outputText14}" id="outputText14" value="#{currentRow['NumMensagem']}"/>
    </h:outputLink>
    Thanks.
    Heitor.

    Any body have an idea ?

  • Error when passing parameters in a link

    Hi:
    i have a report and a form. i've created a link that will point to the form from the report. So i've associated the link to a field of the report and edited it so that a key field in the form will be equal to a value passed from the report's key field. The fact is that passing static values works properly, but when passing parameters from a column it raises an error:
    Error: Unable to parse query (WWV-10200)
    ORA-06550: line 1, column 37:
    PLS-00201: identifier 'NO' must be declared
    ORA-06550: line 1, column 9:
    PL/SQL: Statement ignored (WWV-11230)
    Failed to parse as PORTAL - begin wwv_rptclip.g_row_object :=
    NO(wwv_rptclip.g_row_object) ; end; (WWV-08300)
    Does anybody know how to solve this problem? or why is the error raised?
    Thx.
    Regards. Urko.

    Also, is that a function NO you're trying to use? I'm not sure what that is, so it's possible when Portal tries to parse the sql string and execute it, it's not a recognizable function in the Oracle language or the appropriate grants on that function have not been made to the schema executing the report/form

  • Issue when passing table parameter to perform...

    Hello,
    I have a table parameter (S_KOSTL) defined as RSRANGE in a function module.
    Now when I am passing the table to an perform staeement as follows:
    PERFORM get_cost_center_info USING s_kostl
                                       CHANGING lt_output.
    Inside the form routine I am using following:
    FORM get_cost_center_info USING S_KOSTL TYPE RSRANGE
                                            CHANGING ct_output TYPE tt_output.
    LOOP AT it_ausp INTO ls_ausp WHERE atwrt IN s_kostl.
    ENDLOOP.
    But it says relational operator 'IN' not supported even if I defined S_KOSTL LIKE RSRANGE in function module tbale parameter.
    Please help.
    Regards,
    Rajesh.

    Since you are passing the Range which is a Table you have to pass it with the TABLES addition instead of the Using.
    Try like this:
    PERFORM get_cost_center_info TABLES s_kostl
    CHANGING lt_output.
    Inside the form routine I am using following:
    FORM get_cost_center_info TABLES S_KOSTL TYPE RSRANGE
    CHANGING ct_output TYPE tt_output.
    LOOP AT it_ausp INTO ls_ausp WHERE atwrt IN s_kostl.
    ENDLOOP.
    Regards,
    Naimesh Patel

  • Issue when Run Report with  Hier selection   in the Portal

    Hi  Portal  BI Experts,
    we are finding a strange issue  when Running the Report.
    the following  Variables are in the  Report  Selection screen :
    Company code [optiona]
    Prod.Variance Type [ mandatory]
    Hierarchy Node Variable [optional]
    TheQuery  which I am Running  thro Bex Analyzer  with  the Hier  selection as below , is working  fine. But
    When I  run   thro portal with Hier selection value   with    00/50/G310/702258(0CUST_SALES
    It automatically  display as +00/50/G310/702258(0CUST_SALES    with + symbol. and  thro the error:
    Input "\+00/50/G310/702258(0CUST_SALES);\+00/51/G410/703096(0CUST_SALES)" for Ship-To Party (Sales has invalid format
    If I remove the plus symbol  report runnig fine.
    Your  immediate help highly appreciated.
    Thanks
    Hema
    Edited by: hemav on Mar 21, 2011 2:29 PM

    Hi Jaya,
    This is the Error message  I am facing when I Execute ithe query  report n the Web[Portal]
    Input "\+00/50/G310/702258(0CUST_SALES);\+00/51/G410/703096(0CUST_SALES)" for Ship-To Party (Sales has invalid format
    ie. In the variable screen the selected hier value  automaticvally display with plus symbol
    Actual   Hier  value :   00/50/G310/702258(0CUST_SALES)
    Once close the Hier  selection list window , the Hier value  turned to  +00/50/G310/702258(0CUST_SALES)
    If I give ok with this Plus symbol  it throwing the above error.  By  removing the Plus symbol manually  it is working fine.
    I unable locate the  settings.
    that too when I run the same report  in Bex Analyzer  woking fine , no issues in the Hier  value.
    Thanks ,
    Hema

  • Search Term Issues when passed as Parameters in Opening a PDF file in Browser (Updated)

    Hi everyone,
    I am wondering if there is a solution to the following issue.
    We are working with PDF files that have been OCRed (invisible text layer). We use a search engine to search the PDFs for terms. We then pass the search terms as a parameter to the PDF when we are opening it in Acrobat or Reader in the browser. It brings up a list of instances and the context in which it is found -- much like the native search function -- but it is not possible to only search for the exact phrase when it is passed as a variable..
    In some cases, what we see are two lists -- so it has the filename with a list underneath that is expanded showing search results, and then a second instance of the file name after that list, but it is collapsed.
    Is there a way to just have one list or both lists expanded at the same time?
    Also, is there a way to ensure that it shows instances where more search keywords are found at the top of the list.
    For example, if we pass the search phrase "wanted to buy a car" it might show instances of "to" at the top of the list, but later on in the collapsed list it might show instances of "buy a car".  Again, is it possible to prioritize the results, or at the very least, expand everything? I am not sure what else we can try.
    thank you,
    Jeremy
    Follow up: I should note that some times the two lists appear to be the same or similar terms found twice. At the top it would say 2 documents with n instances (where n is the number of instances). I have noticed this when the search keyword count goes up.
    Follow up #2: It appears that this occurs more often when using more than 2 keywords, but I have seen it happen with only 2 words.

    There were documents available in the knowledgeable that I no longer have the urls for. I have had communication with Adobe Acrobat support personnel that have made the same statements. I do not have the habit  of asking official Adobe tech support people to prove their statements by providing documentation. I have also seen Adobe employees give presentations on computers that have had both installed. When they were asked about the incompatibility, they did say the equivalent of phooey. However, enough people on this forum have had their problems disappear when they have removed one of the two programs that I feel comfortable giving that advice. Yes some people have no problems running both until one of the programs or a system component gets updated and then things stop working. My advice is not to have both on the same computer. When two programs share system calls and can fight over who gets to handle the call it makes sense that it can cause a problem. It doesn't make a difference if it is Reader and Acrobat or any two other programs you run. If you are not having a problem with running both GREAT. However, if you are running both and have a problem, it is a simple step to eliminate one and see if the problem disappears.

  • Passing Parameters with a URL to an Oracle Report, on an Oracle Reports App. Server

    I have built an Oracle report which resides on a Windows 4.0 / IIS application server with Oracle Reports installed.
    (8i Database / 6i Developer 2000 suite). This works flawlessly when called from an Oracle Form.
    My question is, how do I call the same report from portals and pass it the required parameters. Thanks!

    Hi,
    You will have to encode your parameter value. The problem is because of the spaces in the value. Whenever there any special
    characters in the value it should be encoded.
    example
    select '<area shape="rect" coords="335,66,528,83" href="http://townland:7778/pls/portal30/PORTAL30.RPT_SUMKWH.show_parms?meter='||
    <portal_schema>.wwutl_htf.url_encode('PMS 11BBA01')||'">pams</a>' url
    from meters
    The above is just an example. Please change the names to suit your requirements.
    Thanks,
    Sharmila

  • Can I Pass String with Spaces in it To exec()

    Hello All,
    I am passing a Command in Runtime.exec() method, which is a String and contains a folder name(Folder---Name) which is having Spaces in it. For eg. c:/Folder/Folder(Spaces in between)Name/Data.java
    My Problem is when i pass it to exec() it automatically gets converted to a Folder name with only one space
    E.g c:/Folder/Folder(One Space in between)Name/Data.java,
    Because of which my command is not able to find the Folder specifed.
    I want the Original Path(c:/Folder/Folder(Spaces in between)Name/Data.java) to be passed and executed through
    exec() so that the command runs successfully..........
    Any help will be highly appreciable..
    Thanks
    Er.Atul

    When I make a simple array of String a, Try to run simple command like "change Directory"....
    *try {*+
    String[] a = {"cd atul", "cd poc"};+
    Runtime runtime = Runtime.getRuntime();+
    Process procedure = runtime.exec(a);+
    +*} catch (IOException ex) {*+
    Logger.getLogger(Testing.class.getName()).log(Level.SEVERE, null, ex);+
    It Gives me this type of Exception............
    Feb 20, 2009 5:13:36 PM Testing <init>
    SEVERE: null
    java.io.IOException: Cannot run program "cd atul": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:466)
    at Testing.<init>(Testing.java:26)
    at Testing.main(Testing.java:36)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
    *... 4 more*

  • When saving filename with space, the space char convert to %20. How can i solve this?

    Each time when i try to save a file. Firefox always convert the space char to %20. This is really irritating.
    Any solution?

    Thanks for trying to help. Maybe i did not specific my issue clear enough, each time when i try to download a file from my university elearning site. The filenames suggested by firefox automatically change space char to %20. I need to manually remove those %20 to space char again when i save the file, this is really not convenient. I tried on Chrome and IE, both of them do not have this problem with the same file.

  • Pass parameters with Step-Post Actions-'C​all Sequence' option

    I have a sub-sequence which accepts a single parameter.
    Ideally I would like to call this sub-sequence from several Steps, using their Post Actions property , using a Custom Condition Expression and the On Condition False: Call Sequence option.
    The Call Sequence option, when selected, offers a list of sub-sequences including the one which I wish to execute, if the conditions are correct, but I see no way of passing an argument to the sub-sequence's parameter.
    Is there a simple way of passing the parameter ?
    Is there a syntax I could apply to the sub-sequence selected string ? 

    From the TestStand Help:
    Call sequence—TestStand calls a sequence before continuing to the next step. You can select any sequence in the sequence file. TestStand does not pass any arguments to the sequence. If the sequence has parameters, TestStand uses their default values.
    So I don't think this particular method is going to work for you.  However, there are lots of ways to do this, here are a few I can think of off the top of my head (I'm sure there are more, and possibly better ones):
    1.  Just insert a sequence call after every applicable step with an apropriate pre-condition.  This is the easiest method, but kind of messy and requires repeating the call everywhere.
    2.  Change the parameter to a sequence file global... ylch, I hate globals... Terrible programming practice, but it's easy .
    3.  Override the SequenceFilePostStep Engine Callback and put a sequence call with an appropriate pre-condition in there.  This keeps you from having to repeat the code, but it will check the condition after every step executes, not just the ones you are interested in, so you may need some additional conditions.
    4.  Define a custom step type for these steps and use a substep to call the sequence.
    Hope that helps,
    Ryan K.

Maybe you are looking for

  • Product Revenue Bookings and Backlog Dashboard does not display any data

    Product Revenue Bookings and Backlog Dashboard does not display any data even though the load completed successfully. They are able to see just the parameters. Not sure if the upgrade of the database from 9.2.0.6 to 10.2.0.3 is a factor. What can I c

  • How to use single connection

    Hello Gurus, I am new in adf and using jdev 11.1.2.3. I am developing application in which i am using dynamic shell UI. The structure of application is i have one main application modules with the UI shell. The other modules are developed in separate

  • ITunes Crashing (AppleMobileDeviceHelper)

    iTunes crases on its own, whether or not my iPhone is connected (4S, current iOS). I get an error report about the AppleMobileDeviceHelper. I click reopen, iTunes asks for my Apple ID, I enter it, then I get this message (with a stop sign icon): "iTu

  • CASE WHEN statement in DECODE

    SELECT v_startdate, v_enddate, (CASE WHEN SYSDATE BETWEEN v_startdate AND v_enddate THEN 'active' ELSE 'inactive' END) status FROM correction_tab; Could you kindly guide us as to how can we use DECODE and get the desired output. Thanks, Rami Reddy.

  • SQL LOADER syntax

    Hi guru's .!!!!!!!!!! can anybody tell me abt advantage of sq loader in 11g over sql loader in 10g ..!!!!!! please help me in this regard..!!!!!!