Hi all,
I am executing shell script in which I am using SQLLDR
In this SQLLDR I am passing text file having PL/SQL script. This script will produce some formated output, this output I have to spool in another text file. Currently I have given this in script file as following
Spool folder/filename.txt
<PL/SQL block>
But now I dont want this filename.txt to be hardcoded, this should be dynamic. I mean it should be something like this
Spool folder/&1.txt
<PL/SQL block>
At runtime &1 should be substituted with the given string. i.e. through the input in shell script
Does anyone have idea how to implement this.
Regards
JC