Create Host Concurrent Program with parameters

Hi All,
I have created a host concurrent program in Oracle APPS with one parameter. My shell script in unix is this :
cd $1
mv _oracle.txt Especificacion.txt
it is in $AC_TOP/bin directory.
When I execute the host concurrent program with oracle APPS with one parameters that is the path that I want to send it to shell script this error occurs.
/hogr-949-000/oracle/prodappl/ac/11.5.0/bin/xx_opm_cambio_nomarch_iweb: cd: bad argument count
mv: cannot rename _oracle.txt to Especificacion.txt:
No such file or directory
/hogr-949-000/oracle/prodappl/ac/11.5.0/bin/xx_opm_cambio_nomarch_iweb
Program exited with status 1
I have read many papers in metalink and I understand that at first parameter it includes many details programs such as, user id, concurrent program name, etc etc, and not only the value that I want to send.
So I know the problem, but my question is, how can I resolve it ?. I'm not a unix expert.
Please,
Thanks in advance
Mariano.-

It doesn't work. But I finally find the solution. The point is this...
p1=`echo $1|cut -f9 -d " "|cut -f2 -d '"'`
In f1, f2, f3, etc you receive the information of the concurrent, and in f9 receive the first value of your parameter that you create in de concurrent program.
Regards,
Mariano.-

Similar Messages

  • Help with Defining a new Concurrent Program using Parameters

    I wrote a very simple sql script and I want to register it as an Oracle Concurrent Program. I included a parameter field in the sql script to allow the entry of value to determine the number of days prior for the script. The script runs successfully in SQL*Plus, but when I try to register it as an Oracle Concurrent Program I get the following errors below:
    This works in SQL* PLUS
    SELECT emp_id, amount
    FROM tblSalaries
    WHERE hire_date > SYSDATE-&Days;
    Enter value for Days: 7
    old    3: hire_date > SYSDATE-&Days
    new  3: hire_date > SYSDATE-7
    And it provides my results....Although when I register this as a concurrent program and assign the parameter in the setup, and run the concurrent program and enter the number in the parameter field, the job completes in ERROR with the following:
    Enter value for Days: EXEC FND_CONC_STAT.COLLECT;
    hire_date > SYSDATE-EXEC FND_CONC_STAT.COLLECT; and
    ERROR at line 3:
    ORA-00933: SQL command not properly ended If I put single quotes around '&Days', in line 3, I get a different error:
    ERROR at line 3:
    ORA-01722: invalid number Do you know what could be the problem?
    Thanks for reviewing!

    Duplicate post - Setup for Defined Concurrent Program with Parameters - SQL Script
    Srini

  • Windows Host Concurrent Program

    Hi,
    I created a batch script to print a PDF file on the network. Now this batch file works when I execute from Forms HOST command. Now I want to register this as a host concurrent program. I followed the steps in the metalink to create Host Concurrent program for Windows OS. When i try to create a soft link, I am getting error listed below:
    Application Object Library cannot set environment variable PRSAVOUT
    Cause: The system is out of memory or a system error occurred.
    Action: Contact your system administrator to check for available system memory.
    Could someone help me to figure out what I am missing here. I am able to relink Oracle's standard ones thru adadmin with no problem.
    Thanks in advance.

    Hi,
    The printc.cmd file has the following script
    C:\Reader\AcroRd32.exe /t "\\Oratest\RECO\certs\BP1A.pdf" "\\prtsvr\Engineering1"What if you map the network drives, do you get the same error?
    I copied the fndcpesr file to the CUSTOM_TOP/bin directory, re-named copied file to CUSTOM.exeIs APPLBIN environment variable set properly?
    Is your CUSTOM_TOP also set?
    I am not sure how& where to set the environment variable PRSAVOUT. Is this standard env variable or we should set it up as CUSTOM env variable?I do not have this env variable set in any of my environments -- Please see if (Relink of adadmin & adpatch hanging on Windows platforms [ID 416977.1]) is relevant.
    Thanks,
    Hussein

  • Concurrent program with executable of type HOST

    Hi,
    I am having 11.5.10.2 on Red Hat Linux AS 4 . I have created a shell script and I wanted it to run as a concurrent program.For that I created executable of type HOST and created one concurrent program and added it to one request group.
    This works fine. Concurrent program runs successfully.
    Then I used command line parameter in script. This parameter was added in respective concurrent program. But the parameter is passed as $1 as part of the
    the other standard parameters. So I have to extract my parameter from $1.
    My question is how to use parameters in 11.5.10.2 release ?
    Is there any solution so that we don't have to process $1 and extract user parameter? Can we pass the user parameter as $2 , $3 etc. ?

    Hi Hsawwan,
    Yeah I have already seen this document. It is not applicable to 11.5.10.2 because till 11.5.9 the $1 to $8 parameter were passed as standard parameters and user parameter was to be passed on as $9 onwards. This is fine.
    But I have seen that in 11.5.10.2 all the standard parameters are passed in $1 itself concatenated along with the user parameters. So we have to extract user parameter. Is there any better solution. ?
    Thanks .
    Sagar.

  • Host Concurrent Program Error

    Hi,
    I ran the Host Concurrent Program. It is showing the following error
    usdsop: exec failed during spawn/u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/touchXXSAMPLEHOSTCP: No such file or directory
    /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/touchXXSAMPLEHOSTCP
    Program exited with status 1
    Thanks in advance.

    952602 wrote:
    pls provide output of below command from server
    ls -lrt /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/touchXXSAMPLEHOSTCP*
    Thanks,
    JDMy actual file is XXSAMPLEHOSTCP*.
    Output of "ls -lrt /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/XXSAMPLEHOSTCP*" is
    "-rw-r--r-- 1 oracle oinstall 1531 Oct 24 06:32 /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/XXSAMPLEHOSTCP1.prog
    -rwxrwxr-x 1 oracle oinstall 1531 Oct 25 07:10 /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/XXSAMPLEHOSTCP.prog
    lrwxrwxrwx 1 oracle oinstall 52 Oct 25 08:20 /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/XXSAMPLEHOSTCP -> /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/bin/fndcpesr"If your actual file name is XXSAMPLEHOSTCP* then you should not get the file "touchXXSAMPLEHOSTCP" reported in the error message.
    What if you rename the files from XXSAMPLEHOSTCP* to touchXXSAMPLEHOSTCP*, do you still get the same error?
    Are you using the touch command to create any file? -- http://linux.about.com/od/commands/l/blcmdl1_touch.htm
    Thanks,
    Hussein

  • Can we schedule a concurrent program with in a request set

    HI,
    I have a requirement that to schedule a concurrent program in a request set after completing the another request with in the set
    ie i have request set with two concurrent programs and each concurrent program having two parameters for each
    if i submit the request set once
    the first programs completes successfully after completing the first program i need to schedule the second concurrent program with the same parameter values of the first parameter
    is it possible if yes how it can be done
    Regards
    DRK

    Ripendra durgam wrote:
    HI,
    I have a requirement that to schedule a concurrent program in a request set after completing the another request with in the set
    ie i have request set with two concurrent programs and each concurrent program having two parameters for each
    if i submit the request set once
    the first programs completes successfully after completing the first program i need to schedule the second concurrent program with the same parameter values of the first parameter
    is it possible if yes how it can be done
    Regards
    DRKI believe it is not possible.
    Thanks,
    Hussein

  • Using LabView to run VB program with parameters

    Hi,
    It's my first message here so I hope I am doing things correctly. I tried to do some research before asking and I found a lot of good informations but right now, I seem to be stuck.
    I am quite new to LabView, I did few VIs here and there but nothing really "serious". I am currently working on a LabView interface that deals with VB, Excel macros and Data extraction from Text file.
    The VB program is in charge of a motor position, then, some Excel macros are used to do some measurement and the results are written in a text file that I use to plot some graphs.
    The VB program I made give the window I put in the picture in the attached files. Basically, you have to enter some values in those TextBox then click on Move and the motor will move. When you click on the button Home, the motor moves back to the position "0", no need of the two TextBox. In my labview interface, I created two ComboBox that contain all the possible values for both of the TextBox of my VB program. What I would like to do, when I click on my "Measure" button on LabView that initiates the VB program, is that it can fill the two TextBox from VB with the data entered in my LabView ComboBox and then run the program, simulating a "click" on the Move button.
    Right now, I found a VI (included in the attached files) that runs my VB program from LabView (I use it as a Sub-VI) but I still have to manually put the values in my VB program. My goal would be that when I click on my LabView button to start my measure, the motor moves but the VB program doesn't show up for the user to manually enter the values he wants.
    I hope I was clear but if you need any clarification.
    I did the the VB program myself.
    I can also link the LabView interface I already created if need be.
    Thanks for your help,
    Baptiste
    Attachments:
    Moteur.png ‏5 KB
    lancerEXE.vi ‏9 KB

    First, thank you for your answers.
    I know that I don't need to use VB or LabView. I just want for myself to be able to use LabView to manage a program in VB, one in VBA and use data from a text file. I know I could write everything in VBA and that would get the job done. The thing is I want to get away from VBA and Excel as much as I can. In the future, the plan would be to re-write my VBA program with LabView but as of now, I just want to use LabView to manage everything. I know I don't really need it but I want to learn how to do it and have something that works.
    So I would like to know if there is way to do what I wish to do, running my VB program with parameters coming from LabView.
    Thanks

  • Is it posible to return warning message from HOST concurrent Program

    Is it posible to return warning message from HOST concurrent Program?
    Exit 0 -> successful
    Exit >1 is an error
    is there anyway to send the warning status through Host cooncurrent program ?
    Thanks
    Sachin

    I do not have access to a test instance to try this, but I believe "exit 2" will make the host concurrent program complete with a warning status. Can you pl try this and post your results here ? :-)
    HTH
    Srini

  • How do I create/host interactive articles with embedded video for use in browsers?

    I'm seeking a little guidance -
    How do I create/host interactive articles with embedded video for use in browsers?
    The aim is to bring together video, design, images and writing in one place. A little like Born Presents, but very accessible and user friendly.
    I'm happy using InDesign but want to create interactive articles / magazines that have embeded video files as required. I've been looking at .SWF files but I've come unstuck.
    I want people to view the articles via a blog, ideally with them opening in a lightbox style viewer. It's not intended for tablet viewing and people should be able to view and interact with the files with little effort on their part.
    I think I know how to create these files within InDesign, but I'm not so hot on web design and I'm not sure how to host these online. Does this start coming into the realms of Flash?
    If anyone could point in the right direction I'd really appreciate it - Thank you in advance.

    PDF is one thing. Folios for DPS is another. There is a little bit of
    overlap but not much.
    The interactivity in the folio overlays panel is for DPS only.

  • Sqlloader concurrent program with multiple data files

    I have a concurrent program with datafile_path/datafile_name as an input parameter registered for an Sql loader (ctl) program. My requirement is to add one more datafile_name to the control file. In that case what should be the syntax in control file? And can I just add one more datafile name to the concurrent program input? Will it pick from the control file.
    My current syntax is as follows in my .ctl file:
    LOAD DATA
    INFILE *
    APPEND
    INTO TABLE <table_name>
         abc_id     SEQUENCE(MAX,1),
         abc_type          CONSTANT 'CONSTANT_VALUE',
    Thanks,

    I have a concurrent program with datafile_path/datafile_name as an input parameter registered for an Sql loader (ctl) program. My requirement is to add one more datafile_name to the control file. In that case what should be the syntax in control file? And can I just add one more datafile name to the concurrent program input? Will it pick from the control file.
    My current syntax is as follows in my .ctl file:
    LOAD DATA
    INFILE *
    APPEND
    INTO TABLE <table_name>
         abc_id     SEQUENCE(MAX,1),
         abc_type          CONSTANT 'CONSTANT_VALUE',
    Thanks,

  • Not able to do 'cd $DIRECTORY_NAME' from host concurrent program

    Hi Friends
    I am trying to run the below from a host concurrent program:
    cd /interface/j_dcgr07/DDCGRI/incoming
    and I am getting
    /ddcgri/applmgr/CUSTOM/xxdc/11.5.0/bin/XXDCIMAGECOPY.prog: line 43: cd: /interface/j_dcgr07/DDCGRI/temp: Not a directory
    but now when I log into the mid-tier as the concurrent program user I am able to do a "cd" for the same directory.
    Has anyone else encountered the same error? What could be the issue here? We are on Oracle 11.5.10.2 on AIX 5.3 (64 bits).
    Thanks in advance !
    Regards,
    Shashank

    user8094949 wrote:
    The directories exists. Below is the output:
    $ ls -l /interface/j_dcgr07/DDCGRI/temp
    total 0
    $ ls -l /interface/j_dcgr07/DDCGRI/
    total 10
    drwxrwx--- 2 tmoss j_dcgr07 2 Sep 28 2010 archive
    drwxrwx--- 3 j_dcgr07 j_dcgr07 4 Jun 7 10:40 incoming
    drwxrwx--- 2 j_dcgr07 j_dcgr07 2 Sep 28 2010 invalidfiles
    drwxrwx--- 3 j_dcgr07 j_dcgr07 3 Sep 28 2010 outgoing
    drwxrwx--- 2 j_dcgr07 j_dcgr07 2 Sep 28 2010 src
    drwxrwx--- 2 j_dcgr07 j_dcgr07 2 May 27 03:02 tempIs "j_dcgr07" the owner of the application tier node files?
    Thanks,
    Hussein

  • Hold "create accouning" concurrent program

    Hi frnds,
    Is there any script or any other way to put the Create Accounting concurrent program on hold while it is in Running status? Im using Oracle EBS R12.
    any web source, help or tips, work arounds are welcome.
    thanks in advance.
    Lisan

    Hi Lisan;
    Pelase check below thread which could be helpful to type query
    concurent manager..
    Regard
    Helios

  • How to call a concurrent program with some parameters in a stored procedure

    Hi All,
    I have made two procedures, xx_nidhi_proc1 and xx_nidhi_proc2.
    xx_nidhi_proc1 takes four parameters from front end and is registered as concurrent program in oracle apps and running fine alone.
    xx_nidhi_proc2 calls the concurrent program of xx_nidhi_proc1 which is XX_NIDS_PROC1_PROG1.
    But the problem in my code is , It runs the second concurrent program for xx_nidhi_proc2 but shows the Inactive- No Manager status for my first concurrent program XX_NIDS_PROC1_PROG1,
    Please find out the error in my code...
    CREATE OR REPLACE PACKAGE BODY NIDHI IS
    procedure xx_nidhi_proc1 (errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2,
    name_t varchar2,
    empno varchar2,
    doj date,
    desig varchar2) is
    begin
    fnd_file.PUT_LINE(Fnd_File.output,'/**************Start of the output **********/');
    fnd_file.PUT_LINE(Fnd_File.output, 'Name:'||name_t);
    fnd_file.PUT_LINE(Fnd_File.output, 'Number:'||empno);
    fnd_file.PUT_LINE(Fnd_File.output, 'DOJ:'|| to_char(doj, 'DD-MON-RRRR'));
    fnd_file.PUT_LINE(Fnd_File.output, 'Designation:'||desig);
    fnd_file.PUT_LINE(Fnd_File.output,'/**************End of the output **********/');
    errbuf:='SUCCESS';
    retcode:='SUCCESS';
    end xx_nidhi_proc1;
    --calls the xx_nidhi_proc1 as concurrent program.
    procedure xx_nidhi_proc21 (errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2)
    is
    v_request_id number;
    begin
    fnd_file.PUT_LINE(Fnd_File.output,'/**************Start of the output **********/');
    fnd_file.PUT_LINE(Fnd_File.output, 'Deptartment Number:'||'Computer');
    fnd_file.PUT_LINE(Fnd_File.output, 'Location:'||'TCS Towers');
    fnd_file.PUT_LINE(fnd_file.output,'Starting XX_NIDS_PROC1_PROG1');
    fnd_global.apps_initialize(user_id => 1318 ,resp_id => 50578, resp_appl_id => 201);
    v_request_id := FND_REQUEST.SUBMIT_REQUEST('PO',
    'XX_NIDS_PROC1_PROG1',
    null,
    null,
    TRUE,
    'Nidhi gupta',
    138609,
    '12-Dec-2003',
    'ASE');
    commit;
    fnd_file.PUT_LINE(fnd_file.OUTPUT,'Request ID is '||to_char(v_request_id));
    fnd_file.PUT_LINE(fnd_file.OUTPUT,'End XX_NIDS_PROC1_PROG1');
    fnd_file.PUT_LINE(Fnd_File.output,'/**************End of the output **********/');
    errbuf:='SUCCESS';
    retcode:='SUCCESS';
    end xx_nidhi_proc21;
    Thanks
    Nidhi
    END NIDHI;

    Nidhi this might help u
    v_num_request_load_id :=
    fnd_request.submit_request (c_chr_application_short_name,
    c_chr_apl_short_name,
    NULL,
    NULL,
    FALSE,
    p_chr_allocation_view,
    p_chr_flow_type,     
    p_chr_operating_unit,
    p_dte_planned_from,          
    p_dte_planned_to,
    p_num_application_id,
    p_num_loc_seg1_id,
    p_num_loc_seg2_id,
    p_num_organization_id,
    p_num_responsibility_id,
    p_num_session_id,
    p_num_user_id,
    p_chr_arrival_status,
    p_chr_statuses,
    p_chr_locations,
    p_chr_transport_unit
    COMMIT;
    IF v_num_request_load_id = 0
    THEN
              o_num_stat := 2;
         o_chr_err_msg := 'Report could not be submitted';
    END IF;
              o_chr_err_msg := 'Request Id :' || v_num_request_load_id;
              v_boo_wait :=
         fnd_concurrent.wait_for_request (v_num_request_load_id,
    c_num_interval,
    c_num_max_wait,
    v_chr_phase,
    v_chr_status,
    v_chr_dev_phase,
    v_chr_dev_status,
    v_chr_err_buf
    IF v_chr_dev_phase = 'COMPLETE' /* 1.1 */
    THEN
    IF v_chr_dev_status = 'NORMAL' /* 1.2 */
    THEN
    BEGIN
    -- some your own logic
    EXCEPTION
    WHEN OTHERS THEN
         o_chr_err_msg := o_chr_err_msg||' Unable to determine Report File Path.';
                   o_num_stat := 2;
    END;
    ELSIF v_chr_dev_status = 'WARNING'                                             /* 1.2 */
    THEN
    o_chr_err_msg := o_chr_err_msg||' Report program completed with Warning.';
    ELSE                                                                                               /* 1.2 */
    o_chr_err_msg := o_chr_err_msg||' Report program completed with Error.';
    END IF; /* 1.2 */
    ELSE /* 1.1 */
    o_chr_err_msg := 'Report program Timed Out.';
    END IF; /* 1.1 */

  • Is it possible to create java standalone programs with java ME 8

    Hi,
    Comparing java ME to java SE, I have the impression that midlets are similar to applets.
    When working with java SE, I usually make standalone programs.
    Now, I wonder if it is also possible to create also standalone programs for java ME, if the classes are only  using java ME API's.
    I already noticed that netbeans does not allow to build a project that does not contain a midlet, but maybe, it is possible to create a jar file
    using the javac and jar commands. Or is there a specific reason why netbeans does not allow to build a project without midlets?
    The reason for asking is, that I often make small tools in java that ae then called from a linux script. I imagine that this might be useful on the raspberry pi as well.
    Thanks in advance
    Jef

    Hi Jef -
    Comparing java ME to java SE, I have the impression that midlets are similar to applets.
    Sort of - similar life cycle methods - so conceptually, yes.
    Now, I wonder if it is also possible to create also standalone programs for java ME, if the classes are only  using java ME API's.
    In a way, yes. If you build an project, you will notice a JAD file and JAR file in the dist directory of the project.  JAD is the descriptor for a MIDlet - in mobile devices, the JAD
    file is loaded first to determine if the MIDlet has enough privileges to load and run, before the corresponding JAR file is downloaded.
    However, the JAD file can also be included in the Manifest of the JAR and the JAR copied to the embedded device manually and run there.
    I already noticed that netbeans does not allow to build a project that does not contain a midlet, but maybe, it is possible to create a jar file
    using the javac and jar commands. Or is there a specific reason why netbeans does not allow to build a project without midlets?
    You can build JAR files and include them into Java ME Embedded projects, but just like Applets, to use the Application Management System (AMS) on the Raspberry Pi, you must have a MIDlet to run.
    Perhaps you mean that you would like to launch the AMS and load a MIDlet from the command line on the Pi?
    If so, take a look at this section of the Getting Started Guide for the Raspberry Pi.
    Tom

  • Create child concurrent program for multi-processing

    Hi,
    I have a requirement where in I need my main concurrent program to generate child concurrent programs to process data in parallel.
    I want all the child programs to write the response in the output file of the main concurrent programs.
    Any pointers to this will be a real help.
    Thanks.
    Jujaar

    Hey Sandeep,
    Thanks for your response...
    OK, even I was thinking on those kind of solution or other possible way is to directly write in the output/log file of the parent req.
    Cause the output file is always formed at a loction with a std. naming convention o+request_id.out.
    I think it might be possible to write directly into the file. Have not tried it yet.
    And one more question, do you have an idea how to generate the child concurrent programs.
    I do see a parameter names sub_request in fnd_request.submit_request package. This is a boolean type.
    But I am kind of unsure, If I pass this parameter as TRUE, how it will find the parent request ID.
    If you some information on this as to how we can submit child concurrent request, please share. IT would be a great help.
    Thanks
    Jujaar

Maybe you are looking for

  • HP PSC 1200 and airport

    According to the HP website I shouldn't be able to print from my all in one (printer) PSC 1200 using Airport. Somehow I managed it once, but haven't been able to do so again. Any ideas how I might manage it again? The print utility browser knows that

  • Adobe not working for me...

    Hey guys, so whenever i go to youtube, it tells me this...."Hello, you either have JavaScript turned off or an old version of Adobe's Flash Player. Get the latest Flash player. " BUT, i have installed the flash player over 10 times, restarted my comp

  • Conversion from BO 5.1.9 Deski to BO XI 3.1 SP3 Webi

    Hi Everyone, As part of of our project, we are executing a BO upgrade project and have undertaken BO report migration and conversion from deskI in BO 5.1.9 to WebI in BO XI 3.1. The conversion of reports was assumed to be carried out through the repo

  • IPhoto not opening up when Iphone is connected

    So I had this problem, Iphoto and image capture and itunes (sometimes) was not recognizing my iPhone3G. Tried everything listed earlier. ANSWER: I attached a new cord and it worked perfectly. If your cord is in any way having to be " Played" with or

  • Future of soundca

    I dont know perhaps its the wrong place. I'm asking me what will the future bring for Creative in the area of soundcards. At the moment EAX will not supported directly under Vista. The new standard will be Open audio. Means all new games or other sof