Hi all,
I want to create a text file using the SPOOL command. Here's my sample:
SET NEWPAGE 0
SET SPACE 0
SET LINESIZE 80
SET PAGESIZE 0
SET TERMOUT OFF
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET MARKUP HTML OFF SPOOL OFF
SET COLSEP ','
SPOOL toto.txt
select CODECLIENT, BRANCHE, LIBELLEBRANCHE from bytl.BT_CLIENT;
SPOOL OFF
SET TERMOUT ON
SET ECHO ON
SET FEEDBACK ON
SET HEADING ON
And here's my results:
select CODECLIENT, BRANCHE, LIBELLEBRANCHE from bytl.BT_CLIENT;
0104000404,PRO ,RESEAU BOUTIQ. BYTL
0104000405,PRO ,RESEAU BOUTIQ. BYTL
0104000406,PRO ,RESEAU BOUTIQ. BYTL
0104000407,PRO ,RESEAU BOUTIQ. BYTL
SPOOL OFF
How can I take out the first and the last line (in red) 'cause I don't want it in my text file
I want to create a text file using the SPOOL command. Here's my sample:
SET NEWPAGE 0
SET SPACE 0
SET LINESIZE 80
SET PAGESIZE 0
SET TERMOUT OFF
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET MARKUP HTML OFF SPOOL OFF
SET COLSEP ','
SPOOL toto.txt
select CODECLIENT, BRANCHE, LIBELLEBRANCHE from bytl.BT_CLIENT;
SPOOL OFF
SET TERMOUT ON
SET ECHO ON
SET FEEDBACK ON
SET HEADING ON
And here's my results:
select CODECLIENT, BRANCHE, LIBELLEBRANCHE from bytl.BT_CLIENT;
0104000404,PRO ,RESEAU BOUTIQ. BYTL
0104000405,PRO ,RESEAU BOUTIQ. BYTL
0104000406,PRO ,RESEAU BOUTIQ. BYTL
0104000407,PRO ,RESEAU BOUTIQ. BYTL
SPOOL OFF
How can I take out the first and the last line (in red) 'cause I don't want it in my text file