Hi
I've to extract the values of a wide table (about 120 attributes) to a file. On the file the values has to be separated by semicolon and leading and trailing blanks has to be eliminated.
I've tried to do it with following command file:
But it doesn't work. The file looks like following example:
Thanks a lot for every support!
Best Regards
I've to extract the values of a wide table (about 120 attributes) to a file. On the file the values has to be separated by semicolon and leading and trailing blanks has to be eliminated.
I've tried to do it with following command file:
Code:
SPOOL L:\FSD_7061\OE91100\FSD7061_DM_RPBS_OE91100_DYYYYMM.txt
PROMPT DATUM;CIF;CUST_NAME;CUST_TYPE;CUST_TYPE_TXT;NUMBER_CLIENT_FLAG;CUST_SEG;CUST_SEG_CSEG;CUST_SEG_TXT;
SELECT TO_CHAR (DATUM,'DD.MM.YYYY')
|| ';' || CIF
|| ';' || CUST_NAME
|| ';' || CUST_TYPE
|| ';' || CUST_TYPE_TXT
|| ';' || NUMBER_CLIENT_FLAG
|| ';' || CUST_SEG
|| ';' || CUST_SEG_CSEG
|| ';' || CUST_SEG_TXT
FROM TABLE TEST
WHERE REGION = '91100'
;
SPOOL OFF
/
Code:
DATUM;CIF;CUST_NAME;CUST_TYPE;CUST_TYPE_TXT;NUMBER_CLIENT_FLAG;CUST_SEG;CUST_SEG_CSEG;CUST_SEG_TXT;
30.11.2006;************;************;142;Employee wife;N;016;PER;Staff member;18
30.11.2006;************;************;161;Retired person male;N;016;PER;Staff mem
30.11.2006;************;************;141;Employee husband;N;016;PER;Staff member
30.11.2006;************;************;141;Employee husband;N;016;PER;Staff member
30.11.2006;************;************;162;Retired person female;N;016;PER;Staff m
30.11.2006;************;************;162;Retired person female;N;016;PER;Staff m
30.11.2006;************;************;133;Employee collective (Individual signatu
30.11.2006;************;************;131;Employee male;N;016;PER;Staff member;03
30.11.2006;************;************;142;Employee wife;N;016;PER;Staff member;30
30.11.2006;************;************;133;Employee collective (Individual signatu
30.11.2006;************;************;152;Child female;N;016;PER;Staff member;07.
30.11.2006;************;************;151;Child male;N;016;PER;Staff member;07.06
Best Regards