SQL Language (MOSC)

MOSC Banner

How to spool dynamically

edited Jul 25, 2017 9:16AM in SQL Language (MOSC) 3 commentsAnswered ✓

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center