Fsenorin, you've probably mixed up so called substituting variable with bind variable. They are quite different. I'm not sure which one is asked about but your advice is not correct: just try.
To spool to the file you may spool its name to some command file and then run this file. Something like
set heading off
set serverout off
VARIABLE var1 VARCHAR2(200)
VARIABLE file VARCHAR2(100)
exec :file := 'text.txt'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.