DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Todays date in name of SQLPLus spool file

Hybrid View

  1. #1
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    how do I go about doing this?

    e.g.

    spool filename_TODAYS_DATE.lst

    SELECT xxxxxxx

    spool off


  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Which OS?
    Jeff Hunter

  3. #3
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    Sorry!
    Win NT4 with 8.1.5

  4. #4
    Join Date
    Feb 2001
    Posts
    180
    Maybe you can do something with this:
    clear;
    set echo off;
    set heading off;
    set feedback off;
    set pagesize 0;

    spool c:\temp\xx.sql
    select 'spool c:\temp\'||to_char(sysdate,'yyyymmddhh24miss')||'.lis'
    from dual;
    spool off
    @@c:\temp\xx.sql

    select sysdate from dual;

    spool off

    Regards
    Ben de Boer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width