set head off
set pages 0
set feedback off
SET linesize 68

SPOOL /mnpapp/gwmnp/FTPOUT/DBC_VAR_OLO_REC_20130408.txt

SELECT TIPO_RECORD || ';' || RPAD(NUM_TEL,15) || ';' || TO_CHAR(DATA, 'yyyy-mm-dd hh24:mi:ss') || ';' || RPAD(RECIPIENT_NEW,30) FROM MNP_DBC_VARIAZIONE_OLO;

SET linesize 38

SPOOL /mnpapp/gwmnp/FTPOUT/DBC_CES_DEF_20130408.txt

SELECT TIPO_RECORD || ';' || RPAD(NUM_TEL,15) || ';' || TO_CHAR(DATA, 'yyyy-mm-dd hh24:mi:ss') || ';' FROM MNP_DBC_CESSAZIONE_OLO;

SPOOL off;
