473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

problem with Spool ..

17
HI..
iam using Spool ..for loading the data into file from select statement..
iam facing some problems...Please give me u r valuable suggestion..

This is the sample code used by me..

set echo off;
set trimspool on;
set verify off;
set feedback off;

set term off;
set colsep ',';

SET linesize 650;
spool D:\HKeeping.csv
select * from emp;
spool out;
spool off;

iam loading the file content sucessfully to the file..But iam faceing problems with headres..Headers are comeing after every 14 th record...
But i want headers(headers means 'empno',empname like this) at starting only..
Nov 30 '07 #1
1 2155
debasisdas
8,127 Expert 4TB
You need to set page size also to avoid all that repetation of headers.
Nov 30 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mario Horvat | last post by:
I want to spool results from sql+ query to txt file. txt file should have name like YYMMDD_anything.txt, where YYMMDD is actual date. Can somebody tell me how to write this? Thanks in advance.
1
by: david_0 | last post by:
What causes the query optimizer to choose a table spool\lazy spool action in the execution plan? The explanation of "optimize rewinds" makes little sense because my query never comes back to that...
0
by: prithvis.mohanty | last post by:
Hi all, I need to monitor printer spool. What I want to do is. When ever user try to print something from any application , the print job should be paused in the spool and it should popup a...
0
by: prithvis.mohanty | last post by:
Hi all, I need to monitor printer spool. What I want to do is. When ever user try to print something from any application , the print job should be paused in the spool and it should popup a...
0
by: Michele | last post by:
Hi, i need a software o a library to manage a spool file in ascii-txt file. It's a spool of invoice and i must divide it. For each invoice i must make a file. Where must i take information...
0
by: Robert | last post by:
Greetings, In Google I am finding what the deffinition of a table spool operator is but not what it is doing to performance. The execution plan shows the output of a clustered Index scan (54...
1
by: Watermark | last post by:
i want to access mails from /var/spool/mail directory through php using browser instade of shell prompt. so i m under apache user & group. i placed d php script file in /home by changing ...
1
by: orajit | last post by:
I Have created following PL/sql blok DECLARE vl_n_cnt NUMBER:=0; vl_max_date varchar2(100); CURSOR c1 IS SELECT CREATED_DTM,EVENT_DTM,ACCOUNT_NUM,EVENT_COST_MNY,EVENT_TYPE_ID ...
5
by: daves1 | last post by:
Hi, I am running an sql script in oracle to spool a csv file. I am using the following set up: Define name='JOE' spool names.txt set linesize 200 set pagesize 50000 set heading off set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.