What Is Host Program? How To Create Host Program? and What Is .Prog File?
What Is Host Program? How To Create Host Program? and What Is .Prog File?
How to create
Host Program? and What is .Prog file?
To run a unix based shell script as a concurrent program, the executable of the
concurrent program should be registered as a Host program.
The execution file name of the host program should end with .prog extension and a
soft link should be created for the .prog file.
Here is an example of creation of host program with one parameter:
Step 1:
Create a prog file XX_TEST_HOST_PROG.prog as shown below
#=======================================================================
# Program : XX_TEST_HOST_PROG.prog
#=======================================================================
echo "0 Shell script name along with Path : " ${0}
echo "1 Oracle Apps User Name and Password : " ${1}
#End of script
Step 2:
Upload the .prog file to the bin folder of respective application top and give
necessary file permissions
Step 3:
Create Soft Link:
ln -s $FND_TOP/bin/fndcpesr XX_TEST_HOST_PROG
Soft link will be created against fndcpesr so that concurrent manager will
recoganize as host program.
Step 4:
Create Executable and Concurrent Program
Run the Host Program
Program Output
Why should we create host program executable file with .prog extension?
We can even a create the executable file with .sh extension but the concurrent
manager will not pass any default parameters. Concurrent manager will pass default
parameters only to the host program executable with .prog extension. Below are 5
default parameters of a host program, whose values are passed by concurrent
manager