Re: SQL*PLUS Variable assignment

From: Louise Miller <miller_at_louise.ucsd.edu>
Date: 1995/09/07
Message-ID: <1995Sep7.002958.15586_at_nosc.mil>#1/1


snowden_at_haven.ios.com (Roger Snowden) wrote:
>Is it even possible to dynamically assign variables in sql*plus? We have
>a developer that wants to create a spool file name dynamically,
>constructed from SYSDATE, like: 0905something.rpt.
>

Dear Roger,

We're using UNIX, and we're doing exactly that.

In the UNIX script:
  sqlplus _at_name_of_script `date '+%y%m%d'`

In the SQL script:
 SPOOL myfile.&1

Result is a file called myfile.950905

Louise Miller Received on Thu Sep 07 1995 - 00:00:00 CEST

Original text of this message