OFSFCCM 8.1.2 - How To Pass An Optional Parameter To An Executable?
(Doc ID 2858500.1)
Last updated on MARCH 30, 2022
Applies to:
Oracle Financial Services Analytical Applications Infrastructure - Version 8.1.2 and laterInformation in this document applies to any platform.
Goal
OFSFCCM 8.1.2 - How to pass an Optional Parameter to an executable?
---------------------------------------------------
I have created a "Run Executable" type of batch. I am trying to call a shell script and pass the value on the "Optional Parameters" to the shell script. However, the "Optional Parameters" value isn't being passed in any of the parameters.
I looked up on the Oracle Financial Services Analytical Applications Infrastructure User Guide regarding that parameter but the description is very confusing. No examples are said and the description also seems to be incorrect.
"To pass parameters like $RUNID, $PHID, $EXEID, $RUNSK to the RUN EXECUTABLE component, specify RRFOPT=Y or rrfopt=y along with other executable details."
Could you please provide an example on how this should work? I am attaching a screenshot of my task definition.
Here's my shell script:
$ cat PTB_BDF_execute.sh
echo Application Parameters: > /tmp/param_list.txt
echo Unknown 0:..........$0 >> /tmp/param_list.txt
echo Unknown 1:..........$1 >> /tmp/param_list.txt
echo Batch Run Id:.......$2 >> /tmp/param_list.txt
echo Component Type:.....$3 >> /tmp/param_list.txt
echo Task:...............$4 >> /tmp/param_list.txt
echo Information Date:...$5 >> /tmp/param_list.txt
echo Datastore Name:.....$6 >> /tmp/param_list.txt
echo Datastore Type:.....$7 >> /tmp/param_list.txt
echo Unknown pound.......$# >> /tmp/param_list.txt
echo Unknown 8:..........$8 >> /tmp/param_list.txt
echo >> /tmp/param_list.txt
echo $1
echo $2
echo $#
echo $3
echo $4
echo $5
Paramvalue=$5
Value=${Paramvalue##*,}
echo $Value
FinalValue=$(echo ${Value}| sed "s/\"/ /g")
echo $FinalValue
$FIC_HOME/bdf/scripts/execute.sh $FinalValue
$
And here's the output:
Unknown 0:........../FIC_DB/bin/PTB_BDF_execute.sh
Unknown 1:..........FCCMINFO_PTB_BDF_DATA_LOAD_20151210_11
Batch Run Id:.......RUN EXECUTABLE
Component Type:.....Task6
Task:...............20151210
Information Date:...FCCMINFO
Datastore Name:.....EDW
Datastore Type:.....xxxxxxx.YYYYYY.ZZZZZZ.oracle.com
Unknown pound.......7
Unknown 8:..........
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |