I did say 'set verify off' but the data file still come with sql lines.
Main Topics
Browse All TopicsI want to spool a data file using the command below:
clear breaks
clear computes
clear columns
set verify off
set heading on
set term off
set feedback off
set echo off
set pagesize 57
set linesize 210
set newpage 0
break on today
column today new_value _date
select to_char(sysdate,'fmMONTH DD, YYYY') today from dual;
ttitle left 'Test LOG' -
right 'CURRENT DATE: ',_date skip-
column current_DATE heading 'Test DATE'
spool c:\TEST_file.txt
select sysdate current_DATE from dual;
spool off
/
The data file shows:
SQL>
SQL> select sysdate current_DATE from dual;
TestLOG CURRENT DATE: SEPTEMBER 15, 2009
Test DATE
---------
15-SEP-09
SQL>
SQL> spool off
How can I get rid of SQL lines like 'SQL> select sysdate current_DATE from dual;' in the data file? Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
If you use sqlplus with a script file (running sqlplus ... @ scriptfile.sql) you should not see the prompt
If you use it with standard input (such as cat scriptfile.sql | sqlplus ...) then you will see the sqlplus prompt - unless you run 'sqlplus -s ...'
I recommand using a script file.
If you still have a problem, post how you call sqlplius.
Regards,
Franck.
Business Accounts
Answer for Membership
by: sdstuberPosted on 2009-09-15 at 08:21:09ID: 25335885
set verify off
is what turns off the printing of the sql lines
I ran your script "as is" and ran just fine, output attached
sample output