--L'indicatore riporta il numero totale di flussi (file) XML di Acknowledge --pervenuti giornalmente dagli OLO a DBC e scartati perche' non attesi. --Il record è prodotto anche nel caso il valore rilevato sia "zero". set serveroutput on declare valore varchar2(255); data_val date; file1 UTL_FILE.file_type; freq varchar2(255):='&1'; cursor cur_valore is select count(*), sysdate from mnp_xml_scarto where cod_scarto=4 and tipo_file=8 and data_eff>trunc(sysdate)-1/86400 and data_eff