How can I use variable name as a prameter value in HOST Command ???

Hi All,
How can it possible to use variable value in parameter in HOST command ??
Following in my code:
host('rwclient server=reptest report=c:\cust_print.rdf p_1= s_sam_cust_id userid=wh1/wh1@dwh desformat=pdf desty=file desname=c:/temp/'||v_sam_cust_id||'.pdf');
Regards

Hello,
The Syntax of the builtin HOST is :
SyntaxPROCEDURE HOST
(system_command_string VARCHAR2);
PROCEDURE HOST
(system_command_string VARCHAR2,
screen_action NUMBER);
So , you can build the system_command_string as any VARCHAR2
Example are provided in online help :
http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builth_m/host.html?tp=true
Regards

Similar Messages

  • How to insert delay without using loops, and how can I use variable to store data in labview

    Hi all,
    I am new to Labview and I realized that quite often I am in condition to require a delay beween two functions or elements.. how can we insert a delay in such cases?
    I know how to use delays in a loop. but don't know how to inser some time delay between two elements.
    I have one more question, I know its a bad practice to post 2 questions in 1 thread.
    How can I use a temporary variable to store data, So far I am storing it in an indicator by making it invisible in front panel and making local variable of that indicator, is it the right way to do it ?
    Thanks in advance.

    Generally, LV doesn't have variables in the same sense that most languages do. You can use indicators to perform the same function as variables, but as Adnan pointed out, you run the risk of having race condition and it creates data copies, which is a problem if you have a lot of data. In most cases, you should use wires to perform the function of variables, which is to store data and make it available to the different functions in your code. Instead of thinking about variables, you need to think about data (something like "I have the data coming out of this function. Where does it need to go?").
    Try to take over the world!

  • How can we use variables for instance name?

    I'm using 9 textbox in my stage. Names are similar, only difference is the last character. (s1_0, s1_1, s1_2, ...). I'm trying to use these textbox in a loop. But I couldn't find the right typing... s1_[i], s1_(i) or s1_{i} gives error.
      s1_0.text=0
      s1_1.text=0
      s1_2.text=0
      s1_3.text=0
      s1_4.text=0
      s1_5.text=0
      s1_6.text=0
      s1_7.text=0
    how can make the shortest typing for this issue?

    yes, its working, thank you very much...
    I tried array operator but the word "this"..
    what does it means ? when I delete this word, it gives error. how does flash know that it is a instance name?

  • How Can I Use Variables to Score Interactions?

    I've created a course. Each slide as a question/scenario and three buttons. Two wrong answers and one right. When you choose any of the buttons you get a feedback box that explains why you were right or wrong. These are not quiz slides, but I would like to use variables to score the slides if I could.
    My idea was to create a variable and call it congrats. The variable as a sum of zero. Is it possible for me to add a numerical value to that variable each time a person chooses one of the buttons?
    For example:
    I wanted to add 10 to the variable if you choose the right answer. I wanted to give the incorrect answers a  value of -5. In other words. You could either end up with 10 points on a slide if you choose the correct answer or 0 points if you choose the 2 incorrect answers and the correct answer, or 5 points if you choose a incorrect and correct answer.
    At the end, I would like you come to a slide. this slide will be based on the value of that variable at the end. Either you have a 100 or lower depending on how you did.
    I hope this isn't too confusing.
    Any and all help is appreciated.
    Thanks!

    You forgot one important detail: has the score to be transmitted to a LMS or is it only meant to be shown in the Captivate file?
    And which version are you using? The easiest way to achieve this is to use the partial scoring (and penalty) that is already available for MCQ slides with multiple correct answers.
    I have a lot of stuff on my blog about that type of scoring. Besides question slides, only interactive objects can have a score, everything you can find in the Advanced Interaction panel (F9). Here are some articles I wrote:
    Report Custom Questions - part 1 - Captivate blog
    Report Custom Questions - part 2 - Captivate blog

  • How can I use variable for a package filename and target file inODIFileMove

    I want to use a variable for paths so that when I migrate from Dev to QA to Prod I don't have to do a lot of editing.
    Specifically, I want a variable to be the first part of the path for the filename (\\sundev1\fnd1-hypd1) and join this with the rest (\update\log\*.log or specific filename) using several different objects like the ODIFileMove, ODI OS Command, OS Command, etc.
    Thank you!

    Hi,
    you could set up a database table holding processing parameters (i.e. Column1 - ParamName, Column2 - ParamValue).
    One row could then be ParamName = FilePath, ParamValue = \\<server>\folder\
    So, the refreshing query (attached to a logical schema) would be something like SELECT ParamValue FROM <your table> WHERE ParamName ='FilePath'
    Then, create a variable which can refresh from the database and in the package, drop the variable onto the flow and set it's type to 'Refresh Variable' in the properties.
    Hope this helps.
    geeo

  • How can I use variables in an openquery?

    below is my openquery. It works perfect but I need WOADAT range to be dynamic. How can I do that?
    SELECT * FROM OPENQUERY(EPAK,
    'SELECT WOADAT,WOROUT,BCDESC,WDWO#,BCSIZE,BCCHG
    FROM CUST INNER JOIN (BCDE
    INNER JOIN (WO2 INNER JOIN WO1
    ON (WDCMP = WOCMP) AND (WDCUS# = WOCUS#) AND (WDWO# = WOWO#)) ON (BCCMPY = WDCMP) 
    AND (BCSIZE = WDSIZE) AND (BCCHG = WDCHG)) ON (CCMPNY = BCCMPY) AND (CCUST# = WDCUS#)
    WHERE (((WOADAT) between 20140501 and 20140531) AND ((WDCMP)=''08''))order by WDWO#')
    Any help will be greatly appreciated.
     

    David,
    Your statement returned me below error
    OLE DB provider "IBMDA400" for linked server "EPAK" returned message "SQL0518: Prepared statement S000001 not found.
    Cause . . . . . :   An EXECUTE statement referred to the statement S000001.  S000001 is not a valid prepared statement.  The statement has one of the following conditions: -- The statement has never been prepared. -- The statement identifies
    a prepared SELECT or DECLARE PROCEDURE statement. -- The statement was in error at prepare or bind time. -- The statement was prepared in another program or another call of this program and the program was created with CLOSQLCSR(*ENDPGM). -- The statement
    was prepared in another module or another call of this module and the module was created with CLOSQLCSR(*ENDMOD). -- The statement was prepared in another call of this program and programs which have run SQL statements have ended and the program was created
    with CLOSQLCSR(*ENDSQL). -- The statement was prepared in another call of this module and the activation group ended between calls. The module was created with CLOSQLCSR(*ENDACTGRP). -- The prepared statement was destroyed by a COMMIT or ROLLBACK statement.
    This only occurs when connected to a database other than DB2 for IBM i. Recovery  . . . :   Do one of the following: -- If S000001 identifies a prepared SELECT or DECLARE PROCEDURE statement, a different prepared statement must be named in the EXECUTE
    statement. -- If the statement had errors, correct the errors and either prepare the statement again or precompile the program again. -- Make certain that S000001 has been prepared in the same program or module call prior to using the EXECUTE statement or
    specify either CLOSQLCSR(*ENDSQL), CLOSQLCSR(*ENDJOB), or CLOSQLCSR(*ENDACTGRP) when precompiling the application. -- If the statement was deleted by a COMMIT or ROLLBACK, either specify PREPARE WITH HOLD or bind the program with the correct option to preserve
    prepared statements.".
    Msg 7215, Level 17, State 1, Line 19
    Could not execute statement on remote server 'EPAK'.

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • How can I use a webcam to feed live values (or even better, an average of said values over time) into a subVI?

    The values will be read from a digital measurement device, so there shouldn't be much of a problem in recognizing the fonts, I hope.
    Ideally, it'd function like this: Webcam is trained on device, and without interaction from the user, labview processes the current data every 30 seconds, converts it to a string, and averages 30-second values over a period of 5 minutes. The average is then given to a VI that would normally poll the user for a value every 5 minutes. I'm trying to close the loop on a control system, and think this is the best way to do it.

    If I understand this correctly, you would like to take a picture of a screen every 30 seconds and read some text on that screen. You can do that using the NI Vision Development Module's Optical Character Recognition function palette. This will allow you to create a set of images of each character that you expect to read. You can then train the software to assositate an image of that character with the actual digital character. In this way, the software will be able to read the text. You can read more about this concept in the NI Vision Concepts Help 2013 manual.
    Is there any other way to transfer the information from the first computer to the second computer other than using a camera to read the text off a screen? That seems like a strange way to transfer data, but it's possible that you don't have access to the code on the first computer and you can only access it from the front panel. Is that the situation that you are in?
    Take care,
    Jeremy P.
    Applications Engineer
    National Instruments

  • How can I use external tables with directories not on Oracle host?

    Oracle 11.2.0.2
    We have developers using C# to populate global temporary tables (two one header and detail with 1 to many relationbship between these two tables). The process of using C# was blowing up memory on Windows.
    As an alternative I requested them to create two CSV files and I can use sqlldr to load the detail CSV file of over 1 million rows under 15 seconds. It came to my mind that I could use external tables for this purpose with getting read of header and trailer from the CSV files.
    The issue I have is that I am not a DBA so I do not have access to OS host that Oracle instance is running. sqlldr is a client side tool, whereas external tables are server side. I was wondering if there is an alternative in 11g to use external tables without creating directories on the OS host that Oracle runs on? Are there other alternatives?
    Thanks

    905989 wrote:
    Oracle 11.2.0.2
    We have developers using C# to populate global temporary tables (two one header and detail with 1 to many relationbship between these two tables). The process of using C# was blowing up memory on Windows.
    As an alternative I requested them to create two CSV files and I can use sqlldr to load the detail CSV file of over 1 million rows under 15 seconds. It came to my mind that I could use external tables for this purpose with getting read of header and trailer from the CSV files.
    The issue I have is that I am not a DBA so I do not have access to OS host that Oracle instance is running. sqlldr is a client side tool, whereas external tables are server side. I was wondering if there is an alternative in 11g to use external tables without creating directories on the OS host that Oracle runs on? Are there other alternatives?
    Thanks
    no other alternative

  • How can i use a string name as an onject name.please help!

    hi it seems like an easy one but i can not find it anywhere.how can i use the name of a string as a name of an object such as the code(my problem is the code)...
    public void oda(String name1){ 
    String name2=name1+"s";
    String name3=name1+"ss";
    TextArea name1=new TextArea();
    TextArea name2=new TextArea();
    TextArea name3=new TextArea();
    i think my problem is clear but to be sure..
    how can i give a name to an object in my textarea which is already using as a string.
    thank u .

    it get very compilcated to change the name of the object you created. identity is something you don't want to mess with..you can do it by usin reflection, but it will slow down your application and (again) is quite complicated...
    a simple solution (and more object-oriennted) is to create a Wrapper, Decorator, or Extends the class.
    example
    public class MyTextBox{
        private String name = null;
        private boolean value = false;
        private JTextArea txtArea = null;
        public MyTextBox(String name, boolean value){
            txtArea = new JTextArea();
            this.value = value;
            this.isOn = isOn;
        public String getComponentName(){  return name; }
        pubic boolean getComponentValue(){ return value; }
        public JTextArea getTextArea(){ return area; }
    }

  • How can I use comma in the return values of a static list of values

    Hi all,
    I want to create a select list (static LOV) like the following:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN','NY'
    I write the List of values definition is like this:
    STATIC:both are "Y"; 'YY',one is "Y";'YN', 'NY'
    However, it is explain by htmldb like this:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN'
    / 'NY'
    I tried using "\" before the ",", or using single or double quote, but all these do not work:(
    How can I use a comma in the return values?
    Thanks very much!

    "Better still, why not process the code of both Y with 2Y and one is Y with 1Y? "
    Could you please explain in detail? thanks! I am quite new to htmldb
    In fact I have a table which has too columns "a1" and "a2", both the values of these two columns are "Y" or "N". AndI want to choose the records that both a1 and a2 are "Y", or just one of a1, a2 is "Y".
    So I write the report sql like this:
    "select * from t1 where a1 || a2 in(:MYSELECTLIST) "
    Thus, I need to use "," in the LOV, since expression list in IN(,,,) using ",".
    Any other way to implement this?

  • How can I use sequences in BC4J

    Hello!
    I read in BC4J documentation about how can I use database sequences to generate next value with BC4J. My question is:
    If I don't want to use DB seq what can I do? We have DBSequence class. I look into it and see there not only a DB seq allowed.
    Can anybody help me? I don't want to use DB sequences.

    Don't quite understand the question. If you don't want to use DB sequences, then just override the create() method in your entity object and use call a setter method to set the attribute ID to what you want if you want to do this in an "eager" way that the user would immediately see in a newly-created row...
    ...or you can write code in an overridden prepareForDML method if you want to set a value for one or more attributes just before the changes are posted to the database.

  • How can I use environment variables in a controller?

    Hi all,
    How can I use environment variables in a controller?
    I want to pass a fully qualified directory and file name to FileInputStream and would like to do it by resolving an env variable, such as $APPLTMP.
    Is there a method somewhere that would resolve this??
    By the way,Did anyone used the class of "oracle.apps.fnd.cp.request.RemoteFile"?
    The following is the code.
    My EBS server is installed with 2 nodes(one for current,and other is for application and DB).I want to copy the current server's file to the application server's $APPLTMP directory. But the result of "mCtx.getEnvStore().getEnv("APPLTMP")" is current server's $APPLTMP directory.
    Can anyone help me on this?
    private String getURL()
    throws IOException
    File locC = null;
    File remC = new File(mPath);
    String lurl = null;
    CpUtil lUtil = new CpUtil();
    String exten;
    Connection lConn = mCtx.getJDBCConnection();
    ErrorStack lES = mCtx.getErrorStack();
    LogFile lLF = mCtx.getLogFile();
    String gwyuid = mCtx.getEnvStore().getEnv("GWYUID");
    String tmpDir = mCtx.getEnvStore().getEnv("APPLTMP");
    String twoTask = mCtx.getEnvStore().getEnv("TWO_TASK");
    // create temp file
    mLPath = lUtil.createTempFile("OF", exten, tmpDir);
    lUtil.logTempFile(mLPath, mLNode, mCtx);
    Thanks,
    binghao

    However within OAF on the application it doesn't.
    what doesnt work, do you get errors or nothing ?XX_TOP is defined in adovars.env only. Anywhere else this has to go?
    No, it is read from the adovars.env file only.Thanks
    Tapash

  • How can i use substitution variable

    Hai All
    This is my sql statement
    SELECT (TO_DATE(TO_CHAR(Intime,'DD-MON-YYYY')||' '||
    TO_CHAR(0815,'0000'),'DD-MON-YYYY HH24:MI')-intime) * 24*60
    from dail_att where to_char(intime,'hh24mi') between 0700 and 0815 ;
    Here my table name called Dailyattendance
    Intime field is declared as Date Type
    So now i have hardcoded 0815 and now my intime is subtracted from this time so i can calculate the employee
    coming late so how can i use substitution variable here to give the value at run time
    Ie i need to give 0815 instead or any other time at runtime
    Thanks In advance
    Srikkanth.M

    Where exactly are you planing to use it? Is sqlplus or at any other front end?
    One way is to use below given SQL
    SELECT   (  TO_DATE (   TO_CHAR (intime, 'DD-MON-YYYY')
                         || ' '
                         || TO_CHAR (:TIME_VAR, '0000'),
                         'DD-MON-YYYY HH24:MI'
              - intime
           * 24
           * 60
      FROM dail_att
    WHERE TO_CHAR (intime, 'hh24mi') BETWEEN 0700 AND 0815;*009*
    Edited by: 009 on Apr 6, 2010 2:15 AM

  • Can I use file names from some folder to specisfly a value of a variable

    so here is the thing I want to do:
    I've got like 3 variables in my swf file which value tells to
    the code how many picture there are to load.
    So I have like
    var totalPics:Number = 5
    in my folder images I have 5 pics, but I want to put 3 more
    so I want to make suck code that will check the total files in the
    folder and return a value of 8 or check the name of the last file
    found in the foulder like pic8.swf (I've made it into swf to load
    in a loader) and to take that letter 8 from it as a value to put in
    the variable totalPics so it is = 8.
    Can u tell me is this possible to make in flash.... where I
    should read helps or guides .. or just give me a simple example
    please.
    Thank u a lot. If u have any more questions, just ask me..

    Very helpful of you guys ;] Thanks a lot.. so lets continue
    on the matter..
    GWD the second option is good but can work in a simplier
    code.. mine is a bit complexed and by that I mean.. that the total
    number of pics or things to load should be known for the main swf
    file at his start. That is because before the turn for the pics to
    load comes, there is something else that must happen first, and it
    depends on that total number (actually 3 total numbers cuz there
    are 3 folders with different pics that must mix) So.. can't use the
    second option cuz it works good when the code is a bit more simple
    than that.
    If u didn't understand whant I tried to explain.. doesn't
    matter.. not so important atm.
    Now the thing with the LoadVars.. yes, I've been thinking the
    same thing but like this: At the 1st frame in the main timeline I
    have 3 variables that are used further in the code and that must be
    predefined by how many pics there actually are, so.. I've been
    thining to make 3 different var1.txt, var2.txt and var3.txt files
    for example and to put there as value just the number I need. So
    when I add more pics for example to my images folder, I edit the
    txt file containing their total number and just change it so the
    code can automatically add the new pics to the sequence.
    I've got some examples of this how LoadVars works with txt
    files and I think I can manage to do that, but anyway would be nice
    of you to give me some example ;] and of course correct me if my
    toughts above are not true.
    Now.. SumTsb.. what u mentioned, I am interested in, because
    I have a PHP guy, who can make me a code that automatically counts
    and gives back the totalPics number from a certain folder (I don't
    know for sure that it is possible but if it is he can do it). My
    point is.. When he makes this code.. that reterns value of
    totalPics, how can I redirect it so it changes the value of
    totalPics inside my main swf file. I see only this as option at the
    moment:
    1) when someone adds or deletes files from the folder the php
    code returns a different value, equal to the number of files in the
    folder, and automatically changes the content of the file var1.txt
    like this:
    First off var1.txt has: &content=10 // this is the total
    number of pics/swf files in the folder;
    when u add.. like 3 more files.. the php code changes the
    value inside of var1.txt to: &content=13 and when the main swf
    is started he takes the new value and my problem is solved. Is this
    what I say as example true ? If it is I guess the only thing left
    for me is the php programer to make his code and job is done.
    But answer me this question too: is it possible the php code
    to return the value of the totalPics directly into the main swf
    file. So if I have inside the main swf a variable at the first
    frame ot the main timeline called totalPics, can the php give it a
    value equal to the total numbers of files in a folder, and how ?
    I guess I've written too too much :D so I'll wait what u will
    answer me now.. I think you understood my idea.. and if more
    questions arise I will write u back. And if no.. I will just thank
    you a lot :D

Maybe you are looking for