How to spool dynamically
I want to spool on an sql script. I want the filename to be created on a different folder each time after I'm asked.
i.e.:
spool &get_folder||filename.txt
When I give the correct folder I receive the below error.
SP2-0556: Invalid file name.
I believe spool command doesn't like the ||.
Is there a way to do the above?