473,722 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling Concurrent Program from UNIX

amitpatel66
2,367 Recognized Expert Top Contributor
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations:

Concurrent programs can be executed programatically either from UNIX or Oracle PLSQL. In this Section, I will be explaining about calling a Concurrent program from UNIX using the CONCSUB Command.

Pre-requisite:

1. Concurrent Program should be registered in oracle Applications before you can call the same from UNIX using the CONCSUB Command

CONCSUB Utility:

Syntax of CONCSUB utility is shown below:

Expand|Select|Wrap|Line Numbers
  1.  
  2. CONCSUB <APPS username>/<APPS password> \
  3. <responsibility application short name> \
  4. <responsibility name> \
  5. <Oracle Applications username> \
  6. [WAIT=N|Y|<n seconds>] \
  7. CONCURRENT \
  8. <program application short name> \
  9. <program name> \[PROGRAM_NAME=”<description>”]\
  10. [REPEAT_TIME=<resubmission time>] \
  11. [REPEAT_INTERVAL= <number>] \
  12. [REPEAT_INTERVAL_UNIT=< resubmission unit>] \
  13. [REPEAT_INTERVAL_TYPE=< resubmission type>] \
  14. [REPEAT_END=<resubmission end date and time>] \
  15. [START=<date>] \
  16. [IMPLICIT=< type of concurrent request> \
  17. [<parameter 1> ... <parameter n>]
  18.  
  19.  
Note that the Slash "\" used at the end of each line is Unix Line Continuation Character and not all operating system support "\". If the Continuation Line Character is not supported in Unix, then provide all the parameter values in a single line seperated with Spaces to CONCSUB Command.

Most of the Input Parameters to the CONCSUB Command is SELF-Explanatory. Though let me provide brief description of the INPUT Parameters of CONCSUB Command:

<username/password> Required. The ORACLE username and password that provides access to the data that your program uses.

<responsibili ty application short name> Required. The application short name of the responsibility whose concurrent processing options you want to use.

<responsibili ty name> Required. The name of your responsibility. If the name of your responsibility includes spaces, enclose that name in double quotes.

<username> Required. The uppercase username of the application user whose concurrent processing options you want to use.

<WAIT> Optional. A flag that indicates whether to wait for the submitted request to complete. If you leave this parameter out, the default value of N makes CONCSUB return you to the operating system prompt without waiting for your request to complete.

Set WAIT=Y to have CONCSUB check the request status every 60 seconds and return you to the operating system prompt when your request is completed. You can also enter an integer value for a number of seconds, as in WAIT=30, for CONCSUB to check for request completion every <number> seconds.

<CONCURRENT> Required. A flag that separates the programspecifi c parameters from the operating system parameters.

<program application short name> Required. The application short name of your concurrent program.

<program name> Required. The uppercase name of your program. It must be the short name that you enter in the Concurrent Programs window when defining a concurrent program.

<PROGRAM_NAME > Optional. A descriptive name for your program. The program field on the View Requests form displays this as the userfriendly program name. The concurrent program short name passed to CONCSUB is often hard for end users to understand, so the PROGRAM_NAME parameter allows you to pass a more easily remembered name for your concurrent program. If you do not specify a PROGRAM_NAME, the View Requests form displays the userfriendly program name specified in the Concurrent Programs window.

You may also use the PROGRAM_NAME parameter to indicate the batch that your request processes for programs that process a set of data, where there could be several requests for a given program that are active at the same time.

<REPEAT TIME> Optional. The time of day to resubmit the request. The format for the time is HH24:MI or HH24:MI:SS. For example, REPEAT_TIME=14: 30 resubmits your request daily at 2:30 p.m.

<REPEAT_INTERVA L> Optional. The interval between resubmission (a positive integer or real number). Use this parameter along with REPEAT_INTERVAL _UNIT to specify the time between resubmissions.

<REPEAT_INTERVA L_UNIT> Optional. The unit of time used for the interval between resubmissions. The available units are MINUTES, HOURS, DAYS or MONTHS. Use this parameter along with REPEAT_INTERVAL to specify the time between resubmissions. For example, setting REPEAT_INTERVAL =12 and REPEAT_INTERVAL _UNIT=HOURS resubmits your request every twelve hours. The default value is DAYS.

<REPEAT_INTERVA L_TYPE> Optional. Whether to time the resubmission interval from the requested start time of the request or from its completion. Set this parameter either toSTART or END. The default value is START.

<REPEAT_END> Optional. The date and time to stop resubmitting the concurrent request. Use one of the following for the format of the end date:
DDMONRR HH24:MI:SS (as in 07APR02 18:32:05)
or DDMONRRRR HH24:MI:SS (as in 07APR2002 18:32:05)
Note that because this date format includes a space, you must enclose the date in double quotation marks and single quotation marks. You can also specify just the date: DDMONRR
or DDMONRRRR

<START> Optional. A start date and time for your program in this format: DDMONRR HH24:MI:SS (as in 07APR02 18:32:05)

Because this date format includes a space, you must enclose the date in double quotation marks and single quotation marks. If you do not specify a start time, your program submits immediately and is processed by the next available concurrent manager. The default value is the current time.

<IMPLICIT> Optional. Whether to show this concurrent request on the View Requests form. Specify NO, YES, ERROR or WARNING. The value IMPLICIT=NO allows the request to appear on the View Request form. The default value is NO. The value IMPLICIT=YES means that only the System Administrators privileged View Concurrent Requests form displays this request. Use this value if the request is not interesting to the user. Specify IMPLICIT=ERROR or IMPLICIT=WARNIN G, respectively, if you want the request to appear only if it fails or completes with warnings.

<REPEAT_DAYS> Optional. The number of days after which to repeat the concurrent request, calculated from the last requested start date. The number can be a positive integer or real number. For example,
REPEAT_DAYS=1.5 resubmits your request every 36 hours.

<parameter 1> ...<parameter n> Optional. Your programspecifi c parameters. If a parameter includes spaces, enclose that parameter in double quotes, then in single quotes. If a parameter contains a double quotation mark as part of the argument, precede that mark with a backslash [\].
Dec 22 '09 #1
0 13356

Sign in to post your reply or Sign up for a free account.

Similar topics

9
1969
by: Jon Slaughter | last post by:
is there a C++ method of calling an external executable program? I know you can do it using C, but what about C++?
6
9132
by: David | last post by:
Hi, I am writing a C# program and want to run a java application and pass it a filename as a parameter. I want to be able to write a method in C# that will run this Java app for me. Eg. I want to run the following command: java MyApplication filename.extension Can anyone help me?
1
1560
by: notregister | last post by:
How do i call out an external program(e.g. abc.exe) while hiding my current window form. when i exit this external program, how do i re-show my window form?
18
7522
by: utab | last post by:
Dear all, I am making a system call to the well known Gnuplot with system("gnuplot"); gnuplot opens if I only supply this command but I would like to pipe that command line in my C++ program. For example I want to run a very simple command like "plot sin(x)". So after running another program, what is the way to pipe that with some commands from inside the c++
3
3134
by: sirichennupati | last post by:
hi all, in our project we have to integrate perl and c++ program we could succesfully call the perl program from c++ but couldn pass the parameters ......... which are variables in c++........ how are the variables passed ... system("perl ../perlbanking/new acctno 0 0 tot");
0
1719
by: Sam | last post by:
Here is what I'm currently doing. 'Global variable set in the form load Private g_cnnISeries As New IBM.Data.DB2.iSeries.iDB2Connection Dim cmdAddData As New IBM.Data.DB2.iSeries.iDB2Command cmdAddData .Connection = g_cnnISeries cmdAddData .CommandText = "call mydatalibrary.QCMDEXC('call PGM(ADDDATA) PARM(3, 'ABC')"
11
5073
by: Emmanouil Angelakis | last post by:
Hi, I am tryiong to do something obviously trivial such as: I have a c program called "tsys2list" that when it is ran it asks the user to give the value of "tcal" which is a variable. I want to call the "tsys2list" from within a pyrthon script lets call it "gamma.py" >>>but<<< I want to pass the value of "tcal" to th eprogram automatically and not by interacting with the keyboard. How do I do that? thanks i advance! manolis
2
2765
by: John Wright | last post by:
I have a central program I am starting to develop that will track processing deviations. This program is VB 2008 and needs to be called from VB 2005 programs and VB2008 programs (we have some VB 6 programs as well but I these are getting phased out). I need to call this program, pass the logged in user name, and fill in essential data from the calling program into the called program. I don't really want to create a deviation form for all...
3
4822
by: vamsioracle | last post by:
HI All I ahve a scheduled concurrent program in Apps. It runs every day early morning. I want to stop it on weekends (sat and Sun). Is it possible to restrict a scheduled concurrent program, for 5 days of a week. Vamsi
0
8740
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9239
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5996
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3208
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2606
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.