INSERT INTO dbo.ZFILE3_01 VALUES
('APRORC','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORC','01',8,'ANNO ULTIMA STAMPA',3,'AAASTA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRORC','01',9,'MESE ULTIMA STAMPA',3,'MMMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORC','01',10,'MESE ULTIMA STAMPA',3,'GGGSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORC','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,170,170,0,0,'X(170)','',0,'',0,0,'' )
,('APRORL','RL',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORL','RL',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORL','RL',3,'TIPO RECORD = "RL"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRORL','RL',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRORL','RL',5,'NUMERO ULTIMO DEPOSITO',2,'NUMDEP',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRORL','RL',6,'DATA ULTIMO DEPOSITO',2,'DATDEP',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRORL','RL',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORL','RL',8,'ANNO ULTIMO DEPOSITO',3,'AAADEP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRORL','RL',9,'MESE ULTIMO DEPOSITO',3,'MMMDEP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORL','RL',10,'GIORNO ULTIMO DEPOSITO',3,'GGGDEP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORL','RL',11,'NUMERO ULTIMO PRELIEVO',2,'NUMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRORL','RL',12,'DATA ULTIMO PRELIEVO',2,'DATPRE',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRORL','RL',13,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORL','RL',14,'ANNO ULTIMO PRELIEVO',3,'AAAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRORL','RL',15,'MESE ULTIMO PRELIEVO',3,'MMMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORL','RL',16,'GIORNO ULTIMO PRELIEVO',3,'GGGPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORL','RL',17,'IMPORTO BOLLO DA STAMPARE',2,'IMPBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APRORL','RL',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,105,105,0,0,'X(105)','',0,'',0,0,'' )
,('APRORV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORV','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORV','01',3,'CODICE REGISTRO',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRORV','01',4,'ULTIMO NUMERO PROGRESSIVO ASSEGNATO',2,'PROASS',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRORV','01',5,'ULTIMA DATA STAMPA REGISTRO',2,'DATSTA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRORV','01',6,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORV','01',7,'ANNO STAMPA REGISTRO',3,'AAASTA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRORV','01',8,'MESE STAMPA REGISTRO',3,'MMMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORV','01',9,'GIORNO STAMPA REGISTRO',3,'GGGSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORV','01',10,'ULTIMO NUMERO PROGRESSIVO STAMPATO',2,'PROSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRORV','01',11,'ELEMENTO PROGRESSIVI',2,'ELEPRO',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',12,'',0,0,'' )
,('APRORV','01',12,'PROGRESSIVO CARICHI',3,'PROCAR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('APRORV','01',13,'PROGRESSIVO SCARICHI',3,'PROSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('APRORV','01',14,'DATA RIPARTENZA STAMPA',2,'DATRIP',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRORV','01',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORV','01',16,'ANNO RIPARTENZA STAMPA',3,'AAARIP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRORV','01',17,'MESE RIPARTENZA STAMPA',3,'MMMRIP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORV','01',18,'GIORNO RIPARTENZA STAMPA',3,'GGGRIP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORV','01',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,33,33,0,0,'X(33)','',0,'',0,0,'' )
,('APRORZ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORZ','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORZ','01',3,'CODICE REGISTRO',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRORZ','01',4,'ULTIMO NUMERO PROGRESSIVO ASSEGNATO',2,'PROASS',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRORZ','01',5,'ULTIMA DATA STAMPA REGISTRO',2,'DATSTA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRORZ','01',6,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORZ','01',7,'ANNO STAMPA REGISTRO',3,'AAASTA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRORZ','01',8,'MESE STAMPA REGISTRO',3,'MMMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORZ','01',9,'GIORNO STAMPA REGISTRO',3,'GGGSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORZ','01',10,'ULTIMO NUMERO PROGRESSIVO STAMPATO',2,'PROSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRORZ','01',11,'ELEMENTO PROGRESSIVI',2,'ELEPRO',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',12,'',0,0,'' )
,('APRORZ','01',12,'PROGRESSIVO CARICHI',3,'PROCAR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,0,0,'9(9)    COMP-3','',0,'',0,0,'' )
,('APRORZ','01',13,'PROGRESSIVO SCARICHI',3,'PROSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,0,0,'9(9)    COMP-3','',0,'',0,0,'' )
,('APRORZ','01',14,'DATA RIPARTENZA STAMPA',2,'DATRIP',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRORZ','01',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRORZ','01',16,'ANNO RIPARTENZA STAMPA',3,'AAARIP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRORZ','01',17,'MESE RIPARTENZA STAMPA',3,'MMMRIP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORZ','01',18,'GIORNO RIPARTENZA STAMPA',3,'GGGRIP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRORZ','01',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,33,33,0,0,'X(33)','',0,'',0,0,'' )
,('APROSP','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROSP','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROSP','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APROSP','01',4,'PROGRESSIVO ULTIMO SPESOMETRO',2,'ULTSPE',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APROT1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROT1','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROT1','01',3,'DATA AGGIORNAMENTO',3,'DATAGG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APROT1','01',4,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROT1','01',5,'ANNO AGGIORNAMENTO',4,'AAAAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APROT1','01',6,'MESE AGGIORNAMENTO',4,'MMMAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROT1','01',7,'GIORNO AGGIORNAMENTO',4,'GGGAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROT1','01',8,'ORE E MINUTI AGGIORNAMENTO',3,'OREMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APROT1','01',9,'CODICE AGENTE INIZIALE',2,'AGEINI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APROT1','01',10,'CODICE AGENTE FINALE',2,'AGEFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APROT1','01',11,'DATA DOCUMENTO INIZIALE',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APROT1','01',12,'DATA DOCUMENTO FINALE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APROT1','01',13,'DATA PAGAMENTO',2,'DATPAG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APROT1','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROTR','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROTR','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROTR','01',3,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APROTR','01',7,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APROTR','01',10,'DATA PAGAMENTO ALL''AGENTE',3,'DATPAG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APROTR','01',11,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROTR','01',12,'ANNO PAGAMENTO',4,'AAAPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APROTR','01',13,'MESE PAGAMENTO',4,'MMMPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROTR','01',14,'GIORNO PAGAMENTO',4,'GGGPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROTR','01',15,'PROVVIGIONI PAGATE SU INCASSATO',2,'PROINC',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APROTR','01',16,'PROVVIGIONI PAGATE SU MATURATO',2,'PROMAT',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APROTR','01',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,11,11,0,0,'X(11)','',0,'',0,0,'' )
,('APROVE','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','00',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROVE','00',4,'CODICE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('APROVE','00',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,145,145,0,0,'X(145)','',0,'',0,0,'' )
,('APROVE','CS',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','CS',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','CS',3,'TIPO RECORD = "CS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROVE','CS',4,'CODICE STABILIMENTO (SE GESTITO)',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APROVE','CS',5,'DATA CONFERIMENTO',3,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APROVE','CS',8,'filler',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','CS',9,'anno',4,'AA-CON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APROVE','CS',10,'mese',4,'MM-CON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROVE','CS',11,'giorno',4,'GG-CON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROVE','CS',12,'ZERO',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APROVE','CS',13,'BASE PARTENZA NUMERAZIONE CONFERIMENTI',2,'BASCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APROVE','CS',14,'ULTIMO NUMERO CONFERIMENTO USATO',2,'ULTCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APROVE','CS',15,'BASE NUMERAZIONE OLTRE TOLLERANZA',2,'BASOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APROVE','CS',16,'ULTIMO NUMERO OLTRE TOLLERANZA',2,'ULTOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APROVE','CS',17,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,113,113,0,0,'X(113)','',0,'',0,0,'' )
,('APROVE','DD',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','DD',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','DD',3,'TIPO RECORD = "DD"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROVE','DD',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APROVE','DD',5,'ULTIMO NUMERO DENUNCIA DOC INSERITO',2,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APROVE','DD',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,139,139,0,0,'X(139)','',0,'',0,0,'' )
,('APROVE','MC',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','MC',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','MC',3,'TIPO RECORD = "MC"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROVE','MC',4,'CODICE STABILIMENTO (SE GESTITO)',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APROVE','MC',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APROVE','MC',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROVE','MC',7,'BASE PARTENZA NUMERAZIONE MOVIMENTI',2,'BASNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APROVE','MC',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROVE','MC',9,'ULTIMO NUMERO MOVIMENTO USATO',2,'ULTNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APROVE','MC',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,129,129,0,0,'X(129)','',0,'',0,0,'' )
,('APROVE','RA',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','RA',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROVE','RA',3,'TIPO RECORD = "RA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APROVE','RA',4,'CODICE STABILIMENTO (SE GESTITO)',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APROVE','RA',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APROVE','RA',6,'PROGRESSIVO ACQUISTI',2,'PROACQ',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APROVE','RA',7,'PROGRESSIVO DICHIEARAZIONI PREVENTIVE',2,'PRODIC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APROVE','RA',8,'PROGRESSIVO DIC. PREVENTIVE DEFINITIVE',2,'PRODEF',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APROVE','RA',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,115,115,0,0,'X(115)','',0,'',0,0,'' )
,('APROWW','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROWW','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,2,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROWW','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APROWW','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APROWW','01',5,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APROWW','01',6,'ANNO IVA DOCUMENTO',4,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APROWW','01',7,'MESE IVA DOCUMENTO',4,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROWW','01',8,'GIORNO IVA DOCUMENTO',4,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APROWW','01',9,'TIPO DOCUMENTO',3,'TIPDOC',0,0,1,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APROWW','01',11,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APROWW','01',14,'FLAG AVVENUTO PAGAMENTO',2,'FLGPAG',0,1,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APROWW','01',17,'IMPORTO PROVVIGIONI DETRATTE',2,'IMPDET',0,0,0,0,0,0,0,0,0,0,'',1,0,8,16,2,0,'9(13)V99 COMP-3','',0,'',0,0,'' )
,('APROWW','01',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APRP58','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRP58','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRP58','01',3,'CODICE STABILIMENTO (ZERO = NO STAB.)',3,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRP58','01',4,'ULTIMO NUMERO PRENOTAZIONE INSERITO',2,'ULTPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRP58','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('APRP76','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRP76','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRP76','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRP76','01',4,'ULTIMO NUMERO PRENOTAZIONE INSERITO',2,'ULTPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRP76','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('APRPAV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRPAV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRPAV','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRPAV','01',4,'NUMERO ULTIMO BONIFICO',2,'ULTBON',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRPAV','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,150,150,0,0,'X(150)','',0,'',0,0,'' )
,('APRQ35','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRQ35','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRQ35','01',3,'PREZZO A QUINTALE',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,5,'9(7)V99','9(4)V9(5)',0,'',0,0,'' )
,('APRQ35','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APRQ60','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRQ60','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRQ60','01',3,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APRQ60','01',4,'FILELR',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APRRAC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRRAC','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRRAC','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRRAC','01',4,'ULTIMO NUMERO INTERNO',2,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRRAC','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,133,133,0,0,'X(133)','',0,'',0,0,'' )
,('APRREV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRREV','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRREV','01',3,'CODICE REGISTRO',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRREV','01',4,'CODICE STABILIMENTO',3,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRREV','01',5,'CODICE COLONNA 0 = PROGRESSIVI GENERALI',3,'CODCOL',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRREV','01',7,'ULTIMO NUMERO PROGRESSIVO ASSEGNATO',2,'PROASS',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRREV','01',8,'ULTIMA DATA STAMPA REGISTRO',2,'DATSTA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRREV','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRREV','01',10,'ANNO STAMPA REGISTRO',3,'AAASTA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRREV','01',11,'MESE STAMPA REGISTRO',3,'MMMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRREV','01',12,'GIORNO STAMPA REGISTRO',3,'GGGSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRREV','01',13,'ULTIMO NUMERO PROGRESSIVO STAMPATO',2,'PROSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRREV','01',14,'DATA RIPARTENZA',2,'DATRIP',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRREV','01',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRREV','01',16,'ANNO RIPARTENZA',3,'AAARIP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRREV','01',17,'MESE RIPARTENZA',3,'MMMRIP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRREV','01',18,'GIORNO RIPARTENZA',3,'GGGRIP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRREV','01',20,'PROGRESSIVO CARICHI',2,'PROCAR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,0,0,'9(9)    COMP-3','',0,'',0,0,'' )
,('APRREV','01',21,'PROGRESSIVO SCARICHI',2,'PROSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,0,0,'9(9)    COMP-3','',0,'',0,0,'' )
,('APRREV','01',23,'BASE DI PARTENZA',2,'BASPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRREV','01',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,90,90,0,0,'X(90)','',0,'',0,0,'' )
,('APRS01','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRS01','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APRS01','01',3,'PREZZO AL QUINTALE',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,3,'9(7)','9(4)V999',0,'',0,0,'' )
,('APRS01','01',4,'MAGGIORAZIONE MONTE S/N',2,'MAGMON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRS03','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRS03','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRS03','01',3,'CODICE SCELTA',2,'CODSCE',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRS03','01',4,'CODICE ZONA DI CONFERIMENTO',2,'CODZON',3,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRS03','01',5,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,3,0,'9(4)V999','',0,'',0,0,'' )
,('APRS39','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRS39','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRS39','01',3,'CODICE SOCIO',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRS39','01',4,'CODICE UVA',3,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRS39','01',5,'TIPO PAGAMENTO 1/2',3,'TIPPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRS39','01',7,'GRADO MEDIO',2,'GRAME1',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APRS39','01',8,'IMPORTO PER GRADO',2,'IMPGR1',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APRS39','01',9,'VARIAZIONE PER DECIMO DI GRADO',2,'VARDE1',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,4,0,'9V9(4)','',0,'',0,0,'' )
,('APRS39','01',10,'IMPORTO AL KG DEL SUPERO',2,'IMPSU1',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APRS39','01',12,'GRADO MEDIO',2,'GRAME2',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APRS39','01',13,'PREZZO SE GRADO > O =',2,'IMPMA2',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APRS39','01',14,'PREZZO SE GRADO <',2,'IMPMI2',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APRS39','01',15,'IMPORTO AL KG DEL SUPERO',2,'IMPSU2',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APRS39','01',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APRSC1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSC1','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,2,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSC1','01',3,'CODICE SUPER CAPO AREA',3,'CODSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRSC1','01',4,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APRSC1','01',5,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APRSC1','01',6,'DATA DOCUMENTO',3,'DATDOC',0,0,0,1,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRSC1','01',7,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSC1','01',8,'PERIODO STATISTICO DI RIFERIMENTO',4,'PERIOD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSC1','01',9,'ANNO IVA DOCUMENTO',5,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRSC1','01',10,'MESE IVA DOCUMENTO',5,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSC1','01',11,'GIORNO IVA DOCUMENTO',4,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSC1','01',12,'TIPO DOCUMENTO',3,'TIPDOC',0,0,1,2,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRSC1','01',17,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,2,3,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRSC1','01',20,'DATA STORNO',2,'DATSTO',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRSC1','01',21,'FLAG STORNO',2,'FLGSTO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRSC1','01',22,'DATA RIACCREDITO',2,'DATRIA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRSC1','01',23,'FLAG RIACCREDITO',2,'FLGRIA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRSC1','01',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APRSCR','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCR','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCR','01',3,'CODICE SUPER CAPO AREA',3,'CODSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRSCR','01',4,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APRSCR','01',5,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APRSCR','01',6,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRSCR','01',11,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRSCR','01',14,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRSCR','01',15,'DESCRIZIONE MOVIMENTO',2,'DESMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APRSCR','01',16,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCR','01',17,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APRSCR','01',18,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRSCR','01',19,'FILLER (SPORCO A ZERI EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APRSCR','01',20,'QUANTITA''',2,'QTARIG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('APRSCR','01',21,'IMPONIBILE RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APRSCR','01',22,'PERCENTUALE RIGA',2,'PERRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APRSCR','01',23,'PROVVIGIONE RIGA',2,'PRORIG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('APRSCR','01',24,'TIPO INVESTIMENTO (SOAVE)',2,'TIPINV',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRSCR','01',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APRSCT','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCT','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,2,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCT','01',3,'CODICE SUPER CAPO AREA',3,'CODSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRSCT','01',4,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APRSCT','01',5,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APRSCT','01',6,'DATA DOCUMENTO',3,'DATDOC',0,0,0,1,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRSCT','01',7,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCT','01',8,'PERIODO STATISTICO DI RIFERIMENTO',4,'PERIOD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCT','01',9,'ANNO IVA DOCUMENTO',5,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRSCT','01',10,'MESE IVA DOCUMENTO',5,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSCT','01',11,'GIORNO IVA DOCUMENTO',4,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSCT','01',12,'TIPO DOCUMENTO',3,'TIPDOC',0,0,1,2,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRSCT','01',17,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,2,3,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRSCT','01',20,'FLAG AVVENUTO PAGAMENTO',2,'FLGPAG',0,1,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRSCT','01',23,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRSCT','01',27,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRSCT','01',28,'CODICE VALUTA',2,'VALUTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRSCT','01',29,'CAMBIO DEL GIORNO (*cambio)',2,'CAMBIO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,3,0,'9(6)V999 COMP-3','',0,'',0,0,'' )
,('APRSCT','01',30,'DATA VALUTA CAMBIO',2,'DATVAL',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRSCT','01',31,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCT','01',32,'ANNO VALUTA CAMBIO',3,'AAAVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRSCT','01',33,'MESE VALUTA CAMBIO',3,'MMMVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSCT','01',34,'GIORNO VALUTA CAMBIO',3,'GGGVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSCT','01',35,'CODICE CONDIZIONE DI PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APRSCT','01',36,'cambio in euro (/cambio)',2,'CAMEUR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,4,0,'9(5)V9(4) COMP-3','',0,'',0,0,'' )
,('APRSCT','01',37,'DATA PAGAMENTO FATTURA AGENTE',2,'DATPAG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRSCT','01',38,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCT','01',39,'ANNO PAGAMENTO',3,'AAAPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRSCT','01',40,'MESE PAGAMENTO',3,'MMMPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSCT','01',41,'GIORNO PAGAMENTO',3,'GGGPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSCT','01',42,'PEDIODO PAGAMENTO',2,'PERPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRSCT','01',43,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRSCT','01',44,'ANNO PAGAMENTO',3,'ANNOPA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRSCT','01',45,'MESE PAGAMENTO',3,'MESEPA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRSCT','01',46,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,24,24,0,0,'X(24)','',0,'',0,0,'' )
,('APRTEL','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRTEL','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRTEL','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRTEL','01',4,'ULTIMO NUMERO INTERNO',2,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRTEL','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,133,133,0,0,'X(133)','',0,'',0,0,'' )
,('APRU05','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRU05','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APRU05','01',3,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,3,0,'9(4)V999','',0,'',0,0,'' )
,('APRU05','01',4,'FILELR',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APRU17','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRU17','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRU17','01',3,'GRADO MEDIO',2,'GRAMED',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APRU17','01',4,'GRADO MEDIO MANUALE',2,'GRAMAN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APRU17','01',5,'VALORE',2,'VALORE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APRU17','01',6,'PREZZO A QUINTALE A GRADO MEDIO',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APRU52','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRU52','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRU52','01',3,'PREZZO A QUINTALE',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,5,0,'9(4)V9(5)','',0,'',0,0,'' )
,('APRU52','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('APRU67','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRU67','01',2,'CODICE TABELLA PREZZI',2,'CODTAB',1,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APRU67','01',3,'CODICE SOCIO 0 = TUTTI',2,'CODSOC',2,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRU67','01',4,'CODICE UVA',2,'CODUVA',3,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRU67','01',5,'GRADO SOGLIA',2,'GRDSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APRU67','01',6,'PREZZO A GRADO',2,'PRZGRD',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('APRU67','01',7,'PAGARE SEMPRE A GR SOGLIA SE CONF SC 7',2,'FLGSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRU67','01',8,'PERCENTUALE PENALITA''',2,'PERPEN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRU67','01',9,'PERCENTUALE PREMIO',2,'PERPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRU76','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRU76','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRU76','01',3,'UVA PRENOTABILE',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRU76','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('APRV03','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV03','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV03','01',3,'CODICE MISURATORE GRADO',3,'CODMGR',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRV03','01',4,'NUMERO LINEA (PER S.BONIFACIO 1/2)',3,'NLINEA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV03','01',5,'NUMERO CAMPIONE',2,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRV03','01',6,'DATA CAMPIONE',2,'DTACAM',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRV03','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV03','01',8,'ANNO',3,'AAACAM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRV03','01',9,'MESE',3,'MMMCAM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV03','01',10,'GIORNO',3,'GGGCAM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV03','01',11,'ORA CAMPIONE',2,'ORACAM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRV03','01',12,'GRADO',2,'GRBABO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APRV03','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,68,68,0,0,'X(68)','',0,'',0,0,'' )
,('APRV58','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV58','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV58','01',3,'CODICE STABILIMENTO (0=NO STAB.)',3,'CODSTA',0,1,1,1,1,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRV58','01',4,'CONFERENTE',3,'CODSOC',0,3,0,2,2,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRV58','01',5,'DATA PRENOTAZIONE',3,'DATPRE',0,2,0,4,3,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRV58','01',6,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV58','01',7,'ANNO PRENOTAZIONE',4,'AAAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRV58','01',8,'MESE PRENOTAZIONE',4,'MMMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV58','01',9,'GIORNO PRENOTAZIONE',4,'GGGPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV58','01',10,'NUMERO PRENOTAZIONE',2,'NUMPRE',0,0,2,3,4,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRV58','01',11,'FASCIA ORARIA',2,'ELEFAS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',6,'',0,0,'' )
,('APRV58','01',12,'QTA PRENOTATA BIANCA MANUALE',3,'PREBMA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV58','01',13,'QTA PRENOTATA BIANCA MACCANICA',3,'PREBME',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV58','01',14,'QTA PRENOTATA ROSSA MANUALE',3,'PRERMA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV58','01',15,'QTA PRENOTATA ROSSA MECCANICA',3,'PRERME',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV58','01',16,'CONFERIM COLLEGATI FASCIA 1 (obsoleto)',2,'NUMCO1',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',20,'',0,0,'' )
,('APRV58','01',17,'CONFERIM COLLEGATI FASCIA 2 (obsoleto)',2,'NUMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',20,'',0,0,'' )
,('APRV58','01',18,'CONFERIM COLLEGATI FASCIA 3 (obsoleto)',2,'NUMCO3',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',20,'',0,0,'' )
,('APRV58','01',19,'DATA DI SISTEMA',2,'DATSYS',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRV58','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV58','01',21,'ANNO SISTEMA',3,'AAASYS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRV58','01',22,'MESE SISTEMA',3,'MMMSYS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV58','01',23,'GIORNO SISTEMA',3,'GGGSYS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV58','01',24,'CODICI UVA',2,'ELEUVA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',6,'',0,0,'' )
,('APRV58','01',25,'CODICE UVA PRENOTATA BIANCA',3,'UVABIA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRV58','01',26,'CODICE UVA PRENOTATA ROSSA',3,'UVAROS',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APRV58','01',27,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,52,52,0,0,'X(52)','',0,'',0,0,'' )
,('APRV66','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV66','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV66','01',3,'ZERO',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APRV66','01',4,'BASE PARTENZA NUMERAZIONE PESATE',2,'BASCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRV66','01',5,'ULTIMO NUMERO PESATA',2,'ULTCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRV76','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV76','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV76','01',3,'CONFERENTE',3,'CODSOC',0,2,0,1,1,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRV76','01',4,'DATA PRENOTAZIONE',3,'DATPRE',0,1,0,3,2,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRV76','01',5,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV76','01',6,'ANNO PRENOTAZIONE',4,'AAAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRV76','01',7,'MESE PRENOTAZIONE',4,'MMMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV76','01',8,'GIORNO PRENOTAZIONE',4,'GGGPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV76','01',9,'NUMERO PRENOTAZIONE',2,'NUMPRE',0,0,1,2,3,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRV76','01',10,'FASCIA ORARIA',2,'ELEFAS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',3,'',0,0,'' )
,('APRV76','01',11,'QTA PRENOTATA BIANCA MANUALE',3,'PREBMA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV76','01',12,'QTA PRENOTATA BIANCA MACCANICA',3,'PREBME',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV76','01',13,'QTA PRENOTATA ROSSA MANUALE',3,'PRERMA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV76','01',14,'QTA PRENOTATA ROSSA MECCANICA',3,'PRERME',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APRV76','01',15,'DATA DI SISTEMA',2,'DATSYS',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRV76','01',16,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRV76','01',17,'ANNO SISTEMA',3,'AAASYS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRV76','01',18,'MESE SISTEMA',3,'MMMSYS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV76','01',19,'GIORNO SISTEMA',3,'GGGSYS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRV76','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,200,200,0,0,'X(200)','',0,'',0,0,'' )
,('APRVCC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVCC','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVCC','01',3,'CHIAVE DI ZERI',3,'ZEROES',0,2,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRVCC','01',4,'MAX QLI. SFORABILI IN BUONI CONSEGNA',2,'QLILIM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('APRVCC','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,183,183,0,0,'X(183)','',0,'',0,0,'' )
,('APRVCS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVCS','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVCS','01',3,'TIPO RECORD = "CS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRVCS','01',4,'CODICE STABILIMENTO (SE GESTITO)',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRVCS','01',5,'DATA CONFERIMENTO',3,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APRVCS','01',8,'filler',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVCS','01',9,'anno',4,'AA-CON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APRVCS','01',10,'mese',4,'MM-CON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRVCS','01',11,'giorno',4,'GG-CON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRVCS','01',12,'ZERO',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APRVCS','01',13,'BASE PARTENZA NUMERAZIONE CONFERIMENTI',2,'BASCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRVCS','01',14,'ULTIMO NUMERO CONFERIMENTO USATO',2,'ULTCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRVCS','01',15,'BASE NUMERAZIONE OLTRE TOLLERANZA',2,'BASOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRVCS','01',16,'ULTIMO NUMERO OLTRE TOLLERANZA',2,'ULTOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRVCS','01',17,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,154,154,0,0,'X(154)','',0,'',0,0,'' )
,('APRVDD','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVDD','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVDD','01',3,'TIPO RECORD = "DD"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRVDD','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRVDD','01',5,'ULTIMO NUMERO DENUNCIA DOC INSERITO',2,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRVDD','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,180,180,0,0,'X(180)','',0,'',0,0,'' )
,('APRVMC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVMC','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVMC','01',3,'TIPO RECORD = "MC"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRVMC','01',4,'CODICE STABILIMENTO (SE GESTITO)',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRVMC','01',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APRVMC','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRVMC','01',7,'BASE PARTENZA NUMERAZIONE MOVIMENTI',2,'BASNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRVMC','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRVMC','01',9,'ULTIMO NUMERO MOVIMENTO USATO',2,'ULTNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APRVMC','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,170,170,0,0,'X(170)','',0,'',0,0,'' )
,('APRVPQ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVPQ','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVPQ','01',3,'ZERO',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APRVPQ','01',4,'BASE PARTENZA NUMERAZIONE PESATE',2,'BASCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRVPQ','01',5,'ULTIMO NUMERO PESATA',2,'ULTCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APRVPQ','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,183,183,0,0,'X(183)','',0,'',0,0,'' )
,('APRVRA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVRA','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRVRA','01',3,'TIPO RECORD = "RA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRVRA','01',4,'CODICE STABILIMENTO (SE GESTITO)',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRVRA','01',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APRVRA','01',6,'PROGRESSIVO ACQUISTI',2,'PROACQ',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRVRA','01',7,'PROGRESSIVO DICHIEARAZIONI PREVENTIVE',2,'PRODIC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRVRA','01',8,'PROGRESSIVO DIC. PREVENTIVE DEFINITIVE',2,'PRODEF',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APRVRA','01',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,156,156,0,0,'X(156)','',0,'',0,0,'' )
,('APRXML','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRXML','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRXML','01',3,'CHIAVE',3,'000000',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRXML','01',4,'PROGRESSIVO',2,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRXXX','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRXXX','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRXXX','01',3,'DESCRIZIONE POSIZIONE DI LAVORO',3,'LOCAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APRXXX','01',4,'MAGAZZINO RIFERIMENTO PICKING XXX',2,'MAGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRXXX','01',5,'POPO UP SE ESISTE LOTTO PIU'' VECCHIO',2,'POPLOV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRXXX','01',6,'SE PIU'' ORDINI PER LO STESSO ARTICOLO',2,'PIUORD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZFV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRZFV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRZFV','01',3,'TIPO RECORD = "FV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRZFV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRZFV','01',5,'VENDITA UVE INTERE',2,'VENINT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',6,'VENDITA UVE DIRASPATE',2,'VENDIR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',7,'CONFERIMENTO UVE',2,'CONFER',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',8,'DETERMINAZIONE ROD',2,'DETROD',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',9,'DETERMINAZIONE VINACCE (SC. IMMEDIATO)',2,'VINIMM',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',10,'DETERMINAZIONE VINACCE (DA SCARICARE)',2,'VINDIF',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',11,'DETERMINAZIONE MOSTI',2,'DETMOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',12,'TRASFORMAZIONE MOSTO IN VNF',2,'MOSVNF',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',13,'DET. ROD DA VENDITA UVE DIRASPATE',2,'RODDIR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',14,'SCARICO AUTOMATICO VINACCE DA REGISTRO',2,'SCAVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',15,'CARICO AUTOMATICO VINACCE SU SOTTOPROD',2,'CARVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',16,'SCARICO AUTOMATICO FECCIA DA REGISTRO',2,'SCAFEC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',17,'CARICO AUTOMATICO FECCIA SU SOTTOPROD',2,'CARFEC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZFV','01',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,447,447,0,0,'X(447)','',0,'',0,0,'' )
,('APRZRV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRZRV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRZRV','01',3,'TIPO RECORD = "RV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APRZRV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APRZRV','01',5,'TIPO PRELIEVO QUANTITA'' CONFERITA',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',8,'MODALITA'' CALCOLO MOSTI',2,'TIPCAL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',11,'TIPO GESTIONE MASSA VOLUMICA',2,'TIPMAS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',14,'COLONNA SUPLETTIVA S/N',2,'COLSUP',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',15,'STABILIMENTI NO REGISTRO VINIFICAZIONE',2,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',4,'',0,0,'' )
,('APRZRV','01',16,'SCA. AUT. VINACCE REG. SOTTOPRODOTTI S/N',2,'VINAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',17,'SCA. AUT. FECCIA REG. SOTTOPRODOTTI S/N',2,'FECAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',18,'CODICE REGISTRO SOTTOPRODOTTI',2,'REGSOT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZRV','01',19,'DATA LIMITE INIZIALE',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRZRV','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRZRV','01',21,'ANNO INIZIALE',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRZRV','01',22,'MESE INIZIALE',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRZRV','01',23,'GIORNO INIZIALE',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRZRV','01',24,'DATA LIMITE FINALE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APRZRV','01',25,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APRZRV','01',26,'ANNO FINALE',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APRZRV','01',27,'MESE FINALE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRZRV','01',28,'GIORNO FINALE',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APRZRV','01',29,'REGISTRI SOTTOPRODOTTI X STABILIMENTO',2,'AREAST',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',10,'',0,0,'' )
,('APRZRV','01',30,'CODICE STABILIMENTO',3,'STRSOT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZRV','01',31,'CODICE REGISTRO',3,'SOTSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APRZRV','01',32,'MODIFICARE PREELAB. GIA'' VINIF. S/N',2,'MODPGV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',33,'STAMPA N. MOVIMENTO S/N',2,'STNMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APRZRV','01',34,'STABILIMENTI NO REGISTRO VINIFICAZIONE',2,'CODST1',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('APRZRV','01',35,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,357,357,0,0,'X(357)','',0,'',0,0,'' )
,('APS802','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APS802','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APS802','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APS802','01',4,'ID SESSIONE',2,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APS802','01',5,'STRINGA ID SESSIONE',2,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APS802','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('APSA11','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA11','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSA11','01',3,'PREZZO A QUINTALE',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APSA13','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA13','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSA13','01',3,'PREZZO A QUINTALE',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APSA13','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APSA52','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA52','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA52','01',3,'CHIAVE DI ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSA52','01',4,'GRUPPO/CONTO/SOTTOCONTO ADDEBITO SOCI',2,'GCSCVS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA52','01',5,'CONTO CREDITI VS SOCI PER VERS. DOVUTI',3,'GRUCVS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',6,'CONTO CREDITI VS SOCI PER VERS. DOVUTI',3,'CONCVS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',7,'VALORE QUOTA CAPITALE SOCIALE',2,'VALQCP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',8,'GRUPPO/CONTO CAPITALE SOCIALE',2,'GCOCAP',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA52','01',9,'CODICE GRUPPO CAPITALE SOCIALE',3,'GRUCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',10,'CODICE CONTO CAPITALE SOCIALE',3,'CONCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',11,'VALORE QUOTA RISERVA',2,'VALQRI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',12,'GRUPPO/CONTO/SOTTOCONTO RISERVA',2,'GCSRIS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA52','01',13,'CODICE GRUPPO RISERVA',3,'GRURIS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',14,'CODICE CONTO RISERVA',3,'CONRIS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',15,'CODICE SOTTOCONTO RISERVA',3,'SOTRIS',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSA52','01',16,'QUINTALI PER QUOTA',2,'QLEQUO',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSA52','01',17,'QUINTALI PER QUOTA CON TOLLERANZA',2,'QLETOL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSA52','01',18,'CAUSALE CONTABILE SOTTOSCRIZIONE',2,'CAUSOT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',19,'CAUSALE CONTABILE VERSAMENTO',2,'CAUVER',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',20,'CAUSALE SOTTOSCRIZIONE LIBRO SOCI',2,'CAULSO',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSA52','01',21,'CAUSALE VERSAMENTO LIBRO SOCI',2,'CAUVLS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSA52','01',22,'GRUPPO/CONTO CREDITI RISERVA',2,'GCSCVR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA52','01',23,'GRUPPO CREDITI RISERVA',3,'GRUCVR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',24,'CONTO CREDITI RISERVA',3,'CONCVR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSA52','01',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,189,189,0,0,'X(189)','',0,'',0,0,'' )
,('APSA61','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA61','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA61','01',3,'CODICE SOCIO',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSA61','01',4,'CODICE GRUPPO UVE',3,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSA61','01',5,'PREMIO/PENALE',2,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('APSA61','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APSA89','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSA89','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSA89','01',3,'PREZZO A QUINTALE',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APSA89','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('APSB56','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSB56','01',2,'N. ACCONTO (1-9) O LIQUIDAZIONE (L)',2,'ACCLIQ',1,3,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APSB56','01',3,'CODICE SOCIO',2,'CODSOC',2,1,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSB56','01',4,'NUMERO BOLLETTA',2,'NUMCON',3,2,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APSB56','01',5,'PREZZO A QUINTALE',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APSB56','01',6,'FILELR',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APSC16','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSC16','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSC16','01',3,'PREZZO A QUINTALE',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,3,'9(7)','9(4)V999',0,'',0,0,'' )
,('APSC16','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APSC39','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSC39','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSC39','01',3,'IMPORTO PER CHILO',2,'IMPKGT',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APSC39','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APSCAR','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSCAR','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSCAR','01',3,'ZEROES',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APSCAR','01',4,'MAGAZZINO DI SCARICO',2,'MAGSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSCAR','01',5,'MAGAZZINO DI CARICO',2,'MAGCAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSCAR','01',6,'PROPONI DATA SISTEMA (S/N)',2,'FLGDAT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APSCAR','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,37,37,0,0,'X(37)','',0,'',0,0,'' )
,('APSCDS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSCDS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSCDS','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSCDS','01',4,'SCELTA DA FORZARE SE CAMBIO FONDO',2,'SCEFOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSCDS','01',5,'CLASSE DA FORZARE SUGLI SPOSTAMENTI',2,'CLASSE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSCDS','01',6,'DATA DA ASSEGNARE AI CONFERIMENTI CREATI',2,'FLGDTA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APSCDS','01',9,'NOTA AUTOMATICA PER BOLLETTE RISTAMPATE',2,'DESNOT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APSCDS','01',10,'STAMPA BOLLETTE TOCCATE IMMEDIATA S/N',2,'STAMPA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APSCDS','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,147,147,0,0,'X(147)','',0,'',0,0,'' )
,('APSG29','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSG29','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSG29','01',3,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSG29','01',4,'GRADO FINALE',3,'GRAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSG29','01',5,'GRADO INIZIALE',2,'GRAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSG29','01',6,'PREMIO A GRADO',2,'PREMIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,4,'9(6)','99V9(4)',0,'',0,0,'' )
,('APSG29','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('APSL08','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL08','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL08','01',3,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSL08','01',4,'PERCENTUALE PENALE',2,'PERCEN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APSL08','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APSL13','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL13','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSL13','01',3,'PREZZO A QUINTALE',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APSL13','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APSL16','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL16','01',2,'CODICE SCELTA',2,'CODSCE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSL16','01',3,'PREZZO A QUINTALE',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,3,'9(7)','9(4)V999',0,'',0,0,'' )
,('APSL16','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APSL56','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL56','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL56','01',3,'N. ACCONTO (1-9) O LIQUIDAZIONE (L)',3,'ACCLIQ',0,1,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APSL56','01',4,'CODICE SOCIO',3,'CODSOC',0,3,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APSL56','01',5,'CODICE PREMIO',3,'CODPRE',0,2,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSL56','01',6,'IMPORTO VARIAZIONE',2,'IMPPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,8,10,2,0,'S9(6)V99','',0,'',0,0,'' )
,('APSL58','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL58','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL58','01',3,'CODICE SOCIO',3,'CODSOC',0,2,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSL58','01',4,'CODICE PREMIO',3,'CODPRE',0,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSL58','01',5,'IMPORTO VARIAZIONE',2,'IMPPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,8,10,2,0,'S9(6)V99','',0,'',0,0,'' )
,('APSL58','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APSL61','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL61','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSL61','01',3,'CODICE SOCIO',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSL61','01',4,'CODICE GRUPPO UVE',3,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSL61','01',5,'PREMIO/PENALE',2,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('APSL61','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APSO32','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSO32','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSO32','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSO32','01',4,'PERCENTUALE FUORI FIDO',2,'PERFFI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSO32','01',5,'NUMERO ATTRIBUTO CLIENTI',2,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSO32','01',6,'CODICE ATTRIBUTO CLIENTI',2,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSO32','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,295,295,0,0,'X(295)','',0,'',0,0,'' )
,('APSO34','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSO34','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSO34','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSO34','01',4,'PERCENTUALE FUORI FIDO',2,'PERFFI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSO34','01',5,'INSOLUTI APERTI',2,'INSAPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSO34','01',6,'SCADUTO OLTRE',2,'SCAOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSO34','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,480,480,0,0,'X(480)','',0,'',0,0,'' )
,('APSO79','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSO79','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSO79','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSO79','01',4,'PERCENTUALE FUORI FIDO',2,'PERFFI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSO79','01',5,'INSOLUTI APERTI',2,'INSAPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSO79','01',6,'SCADUTO OLTRE',2,'SCAOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSO79','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,150,150,0,0,'X(150)','',0,'',0,0,'' )
,('APSOPA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPA','01',3,'TIPO RECORD = "PA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APSOPA','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSOPA','01',5,'GIORNI BANCA EFFETI',2,'GGGBAN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSOPA','01',6,'GIORNI ANALISI RIMESSE DIRETTE SCADUTE',2,'GGGINT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',3,'',0,0,'' )
,('APSOPA','01',7,'NUMERO ANNI DI CUI VEDERE GLI INSOLUTI',2,'ANNINS',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APSOPA','01',8,'NUMERO ANNI DI CUI VEDERE RITARDO PAGAM',2,'ANNRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APSOPA','01',9,'NUMERO ANNI DI CUI VEDERE ORDINI',2,'ANNORD',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APSOPA','01',10,'NUMERO ANNI DI CUI VEDERE BOLLE',2,'ANNBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APSOPA','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,471,471,0,0,'X(471)','',0,'',0,0,'' )
,('APSOPG','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPG','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPG','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSOPG','01',4,'PERCENTUALE FUORI FIDO',2,'PERFFI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSOPG','01',5,'INSOLUTI APERTI',2,'INSAPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSOPG','01',6,'SCADUTO OLTRE',2,'SCAOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSOPG','01',7,'PERCENTUALE FUORI MEDIA ORDINE',2,'PERFME',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSOPG','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,477,477,0,0,'X(477)','',0,'',0,0,'' )
,('APSOPO','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPO','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPO','01',3,'TIPO RECORD = "PO"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APSOPO','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSOPO','01',5,'PERCENTUALE FUORI FIDO',2,'PERFFI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APSOPO','01',6,'INSOLUTI APERTI',2,'INSAPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSOPO','01',7,'SCADUTO OLTRE',2,'SCAOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSOPO','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,478,478,0,0,'X(478)','',0,'',0,0,'' )
,('APSOPS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPS','01',3,'TIPO RECORD = "PS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APSOPS','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSOPS','01',5,'NUMERO GIORNI DETERMINAZIONE PERIODI',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSOPS','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,483,483,0,0,'X(483)','',0,'',0,0,'' )
,('APSOPV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOPV','01',3,'TIPO RECORD = "PV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APSOPV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSOPV','01',5,'NUMERO SCADENZE SCADUTE',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSOPV','01',6,'SCADENZE SCADUTE DA GIORNI',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSOPV','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,482,482,0,0,'X(482)','',0,'',0,0,'' )
,('APSOSC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOSC','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSOSC','01',3,'TIPO RECORD = "SC"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APSOSC','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSOSC','01',5,'NUMERO ATTRIBUTO CLIENTI DA EVIDENZIARE',2,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSOSC','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,484,484,0,0,'X(484)','',0,'',0,0,'' )
,('APSP32','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSP32','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSP32','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APSP32','01',4,'CONTO UVE',2,'GCCUVE',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APSP32','01',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSP32','01',6,'GRUPPO UVE',3,'GRUUVE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',7,'CONTO UVE',3,'CONUVE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',8,'CONTO LIBRETTI',2,'GCLIBR',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APSP32','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSP32','01',10,'GRUPPO LIBRETTI DEPOSITO',3,'GRULIB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',11,'CONTO LIBRETTI DEPOSITO',3,'CONLIB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',12,'CONTO CASSA',2,'GCSCAS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSP32','01',13,'GRUPPO CASSA',3,'GRUCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',14,'CONTO CASSA',3,'CONCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',15,'SOTTOCONTO CASSA',3,'SOTCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSP32','01',16,'INTERESSI',2,'INTERE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',17,'RITENUTA ACCONTO',2,'RITACC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',18,'CAUSALE GIRO FRA TIPI DEPOSITO',2,'GIRDEP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',19,'CAUSALE PRELIEVO DA LIBRETTI',2,'PRELIB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APSP32','01',20,'CAUSALE DEPOSITO SU LIBRETTI',2,'DEPLIB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',21,'CAUSALE GIRO DA CONTO UVE A LIBRETTI',2,'UVELIB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',22,'GIRO INTERESSI',2,'GIRINT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',23,'CAUSALE SALDO VENDEMMIA CON ASSEGNO',2,'VENASS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',24,'CAUSALE GIRO SALDO A VENDEMMIA SUCCESSIV',2,'VENGIR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',25,'DEPOSITO MASSIMO CONSENTITO SU LIBRETTI',2,'MAXDEP',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,2,'9(9)','9(7)V99',0,'',0,0,'' )
,('APSP32','01',26,'CAUSALE STORNO MOVIMENTO DARE',2,'STODAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',27,'CAUSALE STORNO MOVIMENTO AVERE',2,'STOAVE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',28,'CAUSALE PAGAMENTO ACCONTO CON ASSEGNO',2,'ACCASS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',29,'CAUSALE PAGAMENTO ACCONTO CON GIRO',2,'ACCGIR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',30,'GCS INTERESSI',2,'GCSINT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSP32','01',31,'GRUPPO INTERESSI',3,'GRUINT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',32,'CONTO INTERESSI',3,'CONINT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',33,'SOTTOCONTO INTERESSI',3,'SOTINT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSP32','01',34,'GCS RITENUTA ACCONTO',2,'GCSRIT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSP32','01',35,'GRUPPO RITENUTA',3,'GRURIT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',36,'CONTO RITENUTA',3,'CONRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',37,'SOTTOCONTO RITENUTA',3,'SOTRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSP32','01',38,'NUMERO STAMPANTE RICEVUTE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APSP32','01',39,'IMPORTO BOLLO DA STAMPARE',2,'IMPBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APSP32','01',40,'GIORNI MASSIMO ANTICIPO GIRO VINCOLI',2,'MAXANT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSP32','01',41,'PERCENTUALE RITENUTA DI ACCONTO',2,'PERRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APSP32','01',42,'CAUSALE PAGAMENTO ECCEDENZA',2,'PREECC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSP32','01',43,'BANCA INTERNA PAGAMENTO ECCEDENZA',2,'BANECC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSP32','01',44,'RAMO AZIENDA AGGIORNAMENTO PAG. VARI',2,'RAMAZI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSP32','01',45,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,204,204,0,0,'X(204)','',0,'',0,0,'' )
,('APSRRV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSRRV','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSRRV','01',3,'CODICE STABILIMENTO',3,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSRRV','01',4,'CODICE REGISTRO',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSRRV','01',5,'DATA LIMITE VALIDITA''',3,'DATLIM',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APSRRV','01',6,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSRRV','01',7,'ANNO LIMITE VALIDITA''',4,'AAALIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APSRRV','01',8,'MESE LIMITE VALIDITA''',4,'MMMLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSRRV','01',9,'GIORNO LIMITE VALIDITA''',4,'GGGLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APSRRV','01',10,'PERCENTUALE ROD',2,'PERROD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APSRRV','01',11,'PERCENTUALE VINACCE',2,'PERVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APSRRV','01',12,'PERCENTUALE ROD MECCANICA',2,'PERROM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APSRRV','01',13,'PERCENTUALE VINACCIA MECCANICA',2,'PERVIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APSRRV','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,42,42,0,0,'X(42)','',0,'',0,0,'' )
,('APSS39','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSS39','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APSS39','01',3,'CODICE SOCIO',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APSS39','01',4,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APSS39','01',5,'IMPORTO PER CHILO',2,'IMPKGT',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('APSS39','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APT108','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APT108','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APT108','01',3,'DATA AGGIORNAMENTO',3,'DATAGG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APT108','01',4,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APT108','01',5,'ANNO AGGIORNAMENTO',4,'AAAAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APT108','01',6,'MESE AGGIORNAMENTO',4,'MMMAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APT108','01',7,'GIORNO AGGIORNAMENTO',4,'GGGAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APT108','01',8,'ORE E MINUTI AGGIORNAMENTO',3,'OREMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APT108','01',9,'CODICE AGENTE INIZIALE',2,'AGEINI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APT108','01',10,'CODICE AGENTE FINALE',2,'AGEFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APT108','01',11,'DATA DOCUMENTO INIZIALE',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APT108','01',12,'DATA DOCUMENTO FINALE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APT108','01',13,'FILLER (EX DATA INIZIO DETRAZIONI)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APT108','01',14,'DATA FINE DETRAZIONI',2,'DETFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APT108','01',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,13,13,0,0,'X(13)','',0,'',0,0,'' )
,('APT112','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APT112','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APT112','01',3,'DATA AGGIORNAMENTO',3,'DATAGG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APT112','01',4,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APT112','01',5,'ANNO AGGIORNAMENTO',4,'AAAAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APT112','01',6,'MESE AGGIORNAMENTO',4,'MMMAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APT112','01',7,'GIORNO AGGIORNAMENTO',4,'GGGAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APT112','01',8,'ORE E MINUTI AGGIORNAMENTO',3,'OREMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APT112','01',9,'CODICE AGENTE INIZIALE',2,'AGEINI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APT112','01',10,'CODICE AGENTE FINALE',2,'AGEFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APT112','01',11,'MESE PAGAMENTO',2,'MESPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APT112','01',12,'ANNO PAGAMENTO',2,'ANNPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APT112','01',13,'MESE PAGAMENTO RESIDUO',2,'MESRES',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',3,'',0,0,'' )
,('APT112','01',14,'ANNO PAGAMENTO RESIDUO',2,'ANNRES',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',3,'',0,0,'' )
,('APT112','01',15,'PERCENTUALE PAGAMENTO FATTURE PERIODO',2,'PERPAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APT112','01',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APTL01','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APTL01','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APTL01','01',3,'CODICE TIPO PREZZO',3,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APTL01','01',4,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APTL01','01',5,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APTL01','01',6,'CODICE ZONA MONTE',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APTL01','01',7,'GRADO MINIMO BOLLETTE MONTE',2,'GRAMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APTL01','01',8,'IMPORTO GRADO MEDIO MONTE',2,'IMPGRM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,5,'9(5)V99','99V9(5)',0,'',0,0,'' )
,('APTL01','01',9,'GRADO MEDIO MONTE',2,'GRAMEM',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APTL01','01',10,'CODICE TABELLA COEFFICENTE MONTE',2,'CODTAM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APTL01','01',11,'LIRE DA AGGIUNGERE MONTE',2,'LIT00M',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,3,'9(5)','99V999',0,'',0,0,'' )
,('APTL01','01',12,'IMPORTO GRADO MEDIO ALTRE ZONE',2,'IMPGRA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,5,'9(5)V99','99V9(5)',0,'',0,0,'' )
,('APTL01','01',13,'GRSDO MEDIO ALTRE ZONE',2,'GRAMED',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APTL01','01',14,'CODICE TABELLA COEFFICENTE ALTRE ZONE',2,'CODTAB',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APTL01','01',15,'LIRE DA AGGIUNGERE ALTRE ZONE',2,'LIT001',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,3,'9(5)','99V999',0,'',0,0,'' )
,('APTL01','01',16,'GRADO INIZIALE',2,'GRAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APTL01','01',17,'GRADO FINALE',2,'GRAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APTL01','01',18,'INTERVALLO',2,'INTGRA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APTL01','01',19,'CODICE SECONDA ZONA MONTE',2,'CODZO1',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APTL01','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('APTR08','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APTR08','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APTR08','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APTR08','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APTR08','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APTR08','01',9,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APTR08','01',12,'PROVVIGIONI PAGATE PERIODO',2,'PROPER',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APTR08','01',13,'DETRAZIONI PERIODO PRECEDENTE',2,'DETPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APTR08','01',14,'PROVVIGIONI PERIODI PRECEDENTI',2,'PROPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APTR08','01',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APTR12','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APTR12','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APTR12','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APTR12','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APTR12','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APTR12','01',9,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APTR12','01',12,'PROVVIGIONI PAGATE PERIODO',2,'PROPER',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APTR12','01',13,'PROVVIGIONI PERIODO PRECEDENTE',2,'PROPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APTR12','01',14,'TIPO AGENTE',2,'TIPAGE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APTR12','01',17,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('APUA60','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUA60','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUA60','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUA60','01',4,'GRADO MEDIO',2,'GRAMED',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APUA60','01',5,'PREZZO A GRADO',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,5,0,'99V9(5)','',0,'',0,0,'' )
,('APUA60','01',6,'RIGA INCREMENTO',2,'ELEINC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('APUA60','01',7,'INCREMENTO FINO A + GRADO',3,'INCLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,3,1,0,'9V9','',0,'',0,0,'' )
,('APUA60','01',8,'INCREMENTO IN PERCENTUALE',3,'INCPER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUA60','01',9,'INCREMENTO A VALORE',3,'INCVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUA60','01',10,'RIGA DECREMENTO',2,'ELEDEC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('APUA60','01',11,'DECREMENTO FINO A - GRADO',3,'DECLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,3,1,0,'9V9','',0,'',0,0,'' )
,('APUA60','01',12,'DECREMENTO IN PERCENTUALE',3,'DECPER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUA60','01',13,'DECREMENTO A VALORE',3,'DECVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUA60','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,38,38,0,0,'X(38)','',0,'',0,0,'' )
,('APUA63','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUA63','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUA63','01',3,'PERZZO AL KG',2,'PREUVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('APUA63','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APUD38','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUD38','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('APUD38','01',3,'VALORE A QUINTALE',2,'LIRQLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,4,0,'9(7)V9(4)','',0,'',0,0,'' )
,('APUD38','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('APUL16','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUL16','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUL16','01',3,'PREZZO A QUINTALE',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,3,'9(7)','9(4)V999',0,'',0,0,'' )
,('APUL60','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUL60','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUL60','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUL60','01',4,'GRADO MEDIO',2,'GRAMED',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APUL60','01',5,'PREZZO A GRADO',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,5,0,'99V9(5)','',0,'',0,0,'' )
,('APUL60','01',6,'RIGA INCREMENTO',2,'ELEINC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('APUL60','01',7,'INCREMENTO FINO A + GRADO',3,'INCLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,3,1,0,'9V9','',0,'',0,0,'' )
,('APUL60','01',8,'DA 08/2012 VAR. IN PERCENTUALE',3,'INCPER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUL60','01',9,'DA 08/2012 VARIAZIONE A VALORE',3,'INCVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUL60','01',10,'RIGA DECREMENTO',2,'ELEDEC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('APUL60','01',11,'DECREMENTO FINO A - GRADO',3,'DECLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,3,1,0,'9V9','',0,'',0,0,'' )
,('APUL60','01',12,'DA 08/12 VARIAZIONE IN PERCENTUALE',3,'DECPER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUL60','01',13,'DA 08/12 VARIAZIONE A VALORE',3,'DECVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APUL60','01',14,'TIPO VARIAZIONE PER INC. GRADO +/-',2,'VARINC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APUL60','01',15,'TIPO VARIAZIONE PER DEC. GRADO +/-',2,'VARDEC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APUL60','01',16,'GRADO INIZIALE ESPLOSIONE TABELLA',2,'TABINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APUL60','01',17,'GRADO FINALE ESPLOSIONE TABELLA',2,'TABFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APUL60','01',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,32,32,0,0,'X(32)','',0,'',0,0,'' )
,('APUN23','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUN23','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUN23','01',3,'GRADO MEDIO',2,'GRAMED',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APUN23','01',4,'PUNTI GRADO MEDIO',2,'PUNMED',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APUN23','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('APUNTI','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUNTI','01',2,'CHIAVE CLIFOR+DATA+NUMERO',2,'KEY002',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUNTI','01',3,'CODICE FIDELITY CARD',3,'COD-FC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APUNTI','01',4,'DATA MOVIMENTO',3,'DTAMOV',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APUNTI','01',5,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUNTI','01',6,'ANNO',4,'AA-MOV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APUNTI','01',7,'MESE',4,'MM-MOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APUNTI','01',8,'GIORNO',4,'GG-MOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APUNTI','01',9,'CHIAVE PRINCIPALE',3,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUNTI','01',10,'NUMERO INTERNO MOVIMENTO',4,'NUMERO',0,0,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APUNTI','01',11,'NUMERO BOLLETTA PUNTO VENDITA DI ORIGINE',2,'NUMBOL',0,0,1,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APUNTI','01',12,'PUNTI GUADAGNATI',2,'PUNTIG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('APUNTI','01',13,'PUNTI SCONTATI',2,'PUNTIS',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('APUNTI','01',14,'IMPORTO TOTALE MERCE VENDITA',2,'TOTMER',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('APUNTI','01',15,'PROVENIENZA (Automatico/Manuale)',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APUNTI','01',16,'NOTE MOVIMENTO (ATTUALMENTE NON GESTITO)',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APUNTI','01',17,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,23,23,0,0,'X(23)','',0,'',0,0,'' )
,('APUO56','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUO56','01',2,'N. ACCONTO (1-9) O LIQUIDAZIONE (L)',2,'ACCLIQ',1,3,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APUO56','01',3,'CODICE UVA',2,'CODUVA',2,1,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUO56','01',4,'CODICE OSSERVAZIONE',2,'CODOSS',3,2,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APUO56','01',5,'PREMIO AL QUINTALE',2,'PREMIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('APUO56','01',6,'FILELR',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APUS08','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUS08','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUS08','01',3,'CODICE ZONA',3,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUS08','01',4,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUS08','01',5,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APUS08','01',6,'RESA',3,'RESAVL',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APUS08','01',7,'PERCENTUALE PENALE',2,'PERCEN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APUS08','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APUS13','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUS13','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUS13','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUS13','01',4,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APUS13','01',5,'PREZZO A QUINTALE',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APUS41','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUS41','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUS41','01',3,'CODICE SCELTA',2,'CODSCE',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APUS41','01',4,'PREZZO A GRADO',2,'PREGRA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APUS41','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APUTPR','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUTPR','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUTPR','01',3,'TIPO RECORD = "PR"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APUTPR','01',4,'CODICE UTENTE',3,'CODUTE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APUTPR','01',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APUTPR','01',6,'RICHIESTA CODICE RACCOLTA',2,'SKIPRA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APUTPR','01',7,'RACCOLTA DI DEFAULT',2,'RACDEF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APUTPR','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,129,129,0,0,'X(129)','',0,'',0,0,'' )
,('APUTPV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUTPV','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUTPV','01',3,'TIPO RECORD = "PV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APUTPV','01',4,'CODICE UTENTE',3,'CODUTE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APUTPV','01',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APUTPV','01',6,'RICHIESTA CODICE VENDEMMIA',2,'SKIPVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APUTPV','01',7,'VENDEMMIA DI DEFAULT',2,'VENDEF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APUTPV','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,129,129,0,0,'X(129)','',0,'',0,0,'' )
,('APUV08','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUV08','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUV08','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUV08','01',4,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APUV08','01',5,'RITOCCO IN LIRE',2,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,4,8,0,3,'S9(7) COMP-3','S9(4)V999 COMP-3',0,'',0,0,'' )
,('APUV08','01',6,'RITOCCO IN PERCENTUALE',2,'PERCEN',0,0,0,0,0,0,0,0,0,0,'',1,1,4,6,2,0,'S99V99','',0,'',0,0,'' )
,('APUV08','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,11,11,0,0,'X(11)','',0,'',0,0,'' )
,('APUV16','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUV16','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUV16','01',3,'PREZZO A QUINTALE',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,3,'9(7)','9(4)V999',0,'',0,0,'' )
,('APUVS3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUVS3','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUVS3','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUVS3','01',4,'VITIGNO',3,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APUVS3','01',5,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APUVS3','01',6,'CODICE ZONA DI CONFERIMENTO',3,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUVS3','01',7,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,3,0,'9(4)V999','',0,'',0,0,'' )
,('APUVS3','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('APUVS4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUVS4','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUVS4','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUVS4','01',4,'VITIGNO',3,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APUVS4','01',5,'CODICE SCELTA',3,'CODSCE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APUVS4','01',6,'CODICE SOCIO',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APUVS4','01',7,'CODICE ZONA DI CONFERIMENTO',3,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUVS4','01',8,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,3,0,'9(4)V999','',0,'',0,0,'' )
,('APUVS4','01',9,'TIPO PREZZO GRADO/QUANTITA (G/Q)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APUZ13','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APUZ13','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUZ13','01',3,'CODICE ZONA',2,'CODZON',2,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APUZ13','01',4,'FINO A RESA',2,'RESLIM',3,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APUZ13','01',5,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,3,'9(6)','999V999',0,'',0,0,'' )
,('APV066','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APV066','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APV066','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APV066','01',4,'PERCENTUALE VENDEMMIA MECCANICA',2,'PERMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APV066','01',5,'SCELTA UVE DOC APPASSIMENTO *OBSOLETO*',2,'SCEAPP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APV066','01',6,'SCELTA UVE IGT APPASSIMENTO *OBSOLETO*',2,'IGTAPP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APV066','01',7,'PREFISSO BOLLE',2,'PREFIX',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APV066','01',8,'SUFFISSO BOLLE',2,'POSFIX',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APV066','01',9,'TRASPORTATORE NO BOLLA',2,'TRANOB',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APV066','01',10,'PESO BANCALI',2,'PESBAN',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APV066','01',11,'PESO CASSETTE',2,'PESCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APV066','01',12,'CAPACITA'' CASSETTE',2,'CAPCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APV066','01',13,'NUMERO CASSETTE PER BANCALE',2,'CAXBAN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APV066','01',14,'SCELTE APPASSIMENTO UVE DOC',2,'APPDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('APV066','01',15,'SCELTE APPASSIMENTO UVE IGT',2,'APPIGT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('APV2SD','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APV2SD','01',2,'NOME ARCHIVIO',2,'NOMFIL',1,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APV2SD','01',3,'PROGRESSIVO',2,'PROGRE',2,0,0,0,0,0,0,0,0,0,'',1,0,4,12,0,0,'X(4) COMP-X','',0,'',0,0,'' )
,('APV2SD','01',4,'I=INSERISCI, A=AGGIORNA, C=CANCELLA',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APV2SD','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APV2SD','01',6,'BUFFER RECORD',2,'BUFFER',0,0,0,0,0,0,0,0,0,0,'',4,0,0,0,0,0,'X(1000)','',0,'',0,0,'' )
,('APVD79','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVD79','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVD79','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,14,14,0,0,'9(14)','',0,'',0,0,'' )
,('APVD79','01',4,'FLAG ATT.CONF.GESTITI AL GRADO (S/N/O)',2,'ATTGRD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',9,'',0,0,'' )
,('APVD79','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,477,477,0,0,'X(477)','',0,'',0,0,'' )
,('APVDAA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAA','01',3,'AZIENDA PRINCIPALE (GESTISCE LE TABELLE)',3,'AZIPRI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDAA','01',4,'AZIENDA SECONDARIA (USA LE TABELLE)',3,'AZISEC',0,1,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDAC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAC','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAC','01',3,'TIPO RECORD = "AC"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDAC','01',4,'NUMERO ATTRIBUTO',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDAC','01',5,'CODICE ATTRIBUTO',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDAC','01',7,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APVDAC','01',8,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVDAC','01',9,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVDAC','01',10,'ATTRIBUTO OBBLIGATORIO S/N',2,'ATTOBB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAC','01',12,'INTESTAZIONE ALLINEAMENTO DX',2,'DESINT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDAC','01',14,'INCREMENTO GRADO',2,'INCGRA',0,0,0,0,0,0,0,0,0,0,'',1,1,4,6,2,0,'S99V99','',0,'',0,0,'' )
,('APVDAC','01',15,'CARATURA S/N',2,'FLGCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAC','01',16,'DECLASSAMENTO A TAVOLA',2,'FLGDCA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAC','01',19,'OBBLIGATORIO AL LORDO (S/N)',2,'OBBLOR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAC','01',20,'STABILIMENTO AMMESSO',2,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAC','01',21,'STAMPA IN BOLLETTA ( /N)',2,'STABOL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVDAC','01',22,'VALORE DEFAULT (RECORD DEF.NUMATT)',2,'VALDEF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDAC','01',23,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,223,223,0,0,'X(223)','',0,'',0,0,'' )
,('APVDAR','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAR','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAR','01',3,'TIPO RECORD = "AR"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDAR','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDAR','01',5,'NUMERO ATTRIBUTO USATO PER REINNESTI',2,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDAR','01',6,'CODICE ATTRIBUTO USATO PER REINNESTO',2,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAR','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,481,481,0,0,'X(481)','',0,'',0,0,'' )
,('APVDAS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAS','01',3,'TIPO RECORD = "AS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDAS','01',4,'NUMERO ATTRIBUTO',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDAS','01',5,'CODICE ATTRIBUTO',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAS','01',7,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APVDAS','01',8,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVDAS','01',9,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVDAS','01',10,'ATTRIBUTO OBBLIGATORIO S/N',2,'ATTOBB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAS','01',12,'INTESTAZIONE ALLINEAMENTO DX',2,'DESINT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDAS','01',14,'LAMPEGGIA INTESTAZIONE IN ANA SOCI (S/ )',2,'FLGLAM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAS','01',16,'INCREMENTO GRADO',2,'INCGRA',0,0,0,0,0,0,0,0,0,0,'',1,1,4,6,2,0,'S99V99','',0,'',0,0,'' )
,('APVDAS','01',17,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,232,232,0,0,'X(232)','',0,'',0,0,'' )
,('APVDAU','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAU','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAU','01',3,'TIPO RECORD = "AU"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDAU','01',4,'NUMERO ATTRIBUTO',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDAU','01',5,'CODICE ATTRIBUTO',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAU','01',7,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APVDAU','01',8,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVDAU','01',9,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVDAU','01',10,'ATTRIBUTO OBBLIGATORIO S/N',2,'ATTOBB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAU','01',12,'INTESTAZIONE ALLINEAMENTO DX',2,'DESINT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDAU','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,237,237,0,0,'X(237)','',0,'',0,0,'' )
,('APVDAV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDAV','01',3,'TIPO RECORD = "AV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDAV','01',4,'NUMERO ATTRIBUTO',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDAV','01',5,'CODICE ATTRIBUTO',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAV','01',7,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APVDAV','01',8,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVDAV','01',9,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVDAV','01',10,'ATTRIBUTO OBBLIGATORIO S/N',2,'ATTOBB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAV','01',12,'INTESTAZIONE ALLINEAMENTO DX',2,'DESINT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDAV','01',14,'CERTIFICATA GRANDINE',2,'CERTGR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDAV','01',15,'PERCENTUALE TOLLERANZA GRANDINE',2,'PTOLGR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDAV','01',16,'GRANDINATA DA APPLICARE (S/N)',2,'FLGGRA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDAV','01',17,'CODICE AIMA',2,'CODAIM',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAV','01',18,'NUMERO CARATTERI DESCRIZIONE DA VIS/STA',2,'NUMCAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDAV','01',19,'VALORE PREDEFINITO',2,'VALPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAV','01',20,'SESTO IMPIANTO SU FILA',2,'SISUFI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAV','01',21,'SESTO IMPIANTO TRA FILA',2,'SITRFI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDAV','01',22,'CODICE GRANDINE AVEPA (ZONA SPECIALE)',2,'CAVEPA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVDAV','01',23,'PERCENTUALE RIDUZIONE GRANDINE',2,'PERRGR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDAV','01',24,'CERTIFICATA GRANDITE RECIOTO/AMARONE',2,'CEAMGR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDAV','01',25,'PERC. RID. GRANDITE RECIOTO/AMARONE OLD',2,'OLDPRA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDAV','01',26,'PERC. RID. GRANDITE RECIOTO/AMARONE NEW',2,'PEAMGR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDAV','01',27,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,188,188,0,0,'X(188)','',0,'',0,0,'' )
,('APVDBI','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDBI','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDBI','01',3,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDBI','01',4,'RIGA DI TESTO',2,'TXTRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('APVDCB','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCB','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCB','01',3,'TIPO RECORD = "CB"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCB','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCB','01',5,'COMMENTO FISSO DA STAMPARE IN BOLLETTA',2,'COMFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',4,'',0,0,'' )
,('APVDCB','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,206,206,0,0,'X(206)','',0,'',0,0,'' )
,('APVDCC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCC','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCC','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APVDCC','01',4,'ELEMENTO STABILIMENTO',2,'ELESTB',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',20,'',0,0,'' )
,('APVDCC','01',5,'CODICE STABILIMENTO',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDCC','01',6,'CODICE SOCIO COLLIS COLLEGATO (CANTINA)',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVDCC','01',7,'PERCORSI CARTELLE DI IMPORT',2,'DIRIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',3,'',0,0,'' )
,('APVDCC','01',9,'TABELLA CONVERSIONE STABILIMENTO',2,'TABCCS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCC','01',10,'CODICE STABILIMENTO DA ASSEGNARE',3,'LOCSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',20,'',0,0,'' )
,('APVDCC','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,132,132,0,0,'X(132)','',0,'',0,0,'' )
,('APVDCI','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCI','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCI','01',3,'TIPO RECORD = "CI"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCI','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCI','01',5,'ELEMENTO TABELLA',2,'ELECAU',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('APVDCI','01',6,'CODICE CAUSALE',3,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVDCI','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,430,430,0,0,'X(430)','',0,'',0,0,'' )
,('APVDCL','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCL','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCL','01',3,'TIPO RECORD = "CL"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCL','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCL','01',5,'ELEMENTO TABELLA',2,'ELECAU',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('APVDCL','01',6,'CODICE CAUSALE',3,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVDCL','01',7,'EFFETTO CAUSALE +/-',3,'SEGCAU',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDCL','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,416,416,0,0,'X(416)','',0,'',0,0,'' )
,('APVDCO','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCO','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCO','01',3,'TIPO RECORD = "CO"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCO','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCO','01',5,'PERCNETUALE CONCENTRAZIONE',2,'PERCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDCO','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,482,482,0,0,'X(482)','',0,'',0,0,'' )
,('APVDCP','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCP','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVDCP','01',3,'TIPO RECORD = "CP"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCP','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCP','01',5,'DATI CONTENITORE',2,'ELECON',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',8,'',0,0,'' )
,('APVDCP','01',6,'NUMERO CONTENITORI PER PALETTA',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVDCP','01',7,'PALETTA S/N',2,'FLGPAL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',8,'',0,0,'' )
,('APVDCP','01',8,'PESO LIMITE IN KG PER CONTROLLO RECIOTO',2,'PESLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',8,'',0,0,'' )
,('APVDCP','01',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVDCP','01',10,'ATTRIBUTO PER PESO CASSETTA ECCESSIVO',2,'CODATT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',8,'',0,0,'' )
,('APVDCP','01',11,'BINS (S/ )',2,'FLGBIN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',8,'',0,0,'' )
,('APVDCP','01',12,'PESO MINIMO IN KG PER CONTROLLO PESO',2,'PESMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',8,'',0,0,'' )
,('APVDCP','01',13,'ATTRIBUTO PER PESO CASSETTA SCARSO',2,'ATTMIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',8,'',0,0,'' )
,('APVDCP','01',14,'PESO MINIMO DA CONTROLLARE',2,'CTRMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',8,'',0,0,'' )
,('APVDCP','01',15,'PESO MASSIMO DA CONTROLLARE',2,'CTRMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',8,'',0,0,'' )
,('APVDCP','01',16,'NUMERO CASSETTE PER CONTENITORE',2,'NUMCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',8,'',0,0,'' )
,('APVDCP','01',17,'MAX KG DA PROPORRE X RIEMPIRE UVE PREGIO',2,'PROMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',8,'',0,0,'' )
,('APVDCP','01',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,38,38,0,0,'X(38)','',0,'',0,0,'' )
,('APVDCP','01',19,'NOTE CASSETTA',2,'NOTCAS',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',8,'',0,0,'' )
,('APVDCP','01',20,'NOTE BANCALE',2,'NOTBAN',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',8,'',0,0,'' )
,('APVDCP','01',21,'NOTE GENERICHE',2,'NOTGEN',0,0,0,0,0,0,0,0,0,0,'',4,0,60,60,0,0,'X(60)','',8,'',0,0,'' )
,('APVDCQ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCQ','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCQ','01',3,'TIPO RECORD = "CQ"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCQ','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCQ','01',5,'PERCENTUALI CONCENTRAZIONE',2,'PERCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',30,'',0,0,'' )
,('APVDCQ','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,366,366,0,0,'X(366)','',0,'',0,0,'' )
,('APVDCS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCS','01',3,'TIPO RECORD = "CS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCS','01',4,'CODICE UVA (SPAZI = TUTTE)',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('APVDCS','01',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APVDCS','01',6,'GRADO MINIMO SOTTO IL QUALE CONCENTRARE',2,'GRAMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDCS','01',7,'GRADO LIMITE SOTTO IL QUALE NIENTE CONC.',2,'GRALIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDCS','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,478,478,0,0,'X(478)','',0,'',0,0,'' )
,('APVDCV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCV','01',3,'TIPO RECORD = "CV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCV','01',5,'DATI CONTENITORE',2,'ELECON',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',8,'',0,0,'' )
,('APVDCV','01',6,'DESCRIZIONE',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('APVDCV','01',7,'TARA QUINTALI',3,'TARAQL',0,0,0,0,0,0,0,0,0,0,'',1,0,3,6,3,0,'99V999 COMP-3','',0,'',0,0,'' )
,('APVDCV','01',8,'TARA KG',3,'TARAKG',0,0,0,0,0,0,0,0,0,0,'S',1,0,3,6,1,0,'9999V9 COMP-3','',0,'',0,0,'' )
,('APVDCV','01',9,'FLAG REGOLAMENTO VENDEMMIA (S/ )',3,'FLGRGV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDCV','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,342,342,0,0,'X(342)','',0,'',0,0,'' )
,('APVDCW','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCW','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDCW','01',3,'TIPO RECORD = "Cw"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDCW','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDCW','01',5,'PESO LIMITE IN KG PER CONTROLLO RECIOTO',2,'PESLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',8,'',0,0,'' )
,('APVDCW','01',6,'ATTRIBUTO PER PESO CASSETTA ECCESSIVO',2,'CODATT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',8,'',0,0,'' )
,('APVDCW','01',7,'DOTAZIONE CANTINA',2,'DOTAZC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,0,0,'9(7) COMP-3','',8,'',0,0,'' )
,('APVDCW','01',8,'PORTATA NOMINALE IN KG',2,'PORNOM',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',8,'',0,0,'' )
,('APVDCW','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,350,350,0,0,'X(350)','',0,'',0,0,'' )
,('APVDDA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDA','01',3,'TIPO RECORD = "DA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDDA','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDDA','01',5,'ARRICCHIMENTO MOSTO (VINIF.)',2,'ARRMOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDA','01',6,'ARRICCHIMENTO MPF (VINIFICAZIONE)',2,'ARRMPF',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDA','01',7,'ARRICCHIMENTO VNF (VINIF.)',2,'ARRVNF',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDA','01',8,'ARRICCHIMENTO COLONNA LIBERA (VINIF)',2,'ARRLIB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDA','01',9,'UTILIZZO MC  (VINIF)',2,'UTIMCN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDA','01',10,'UTILIZZO MCR  (VINIF)',2,'UTIMCR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDA','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,468,468,0,0,'X(468)','',0,'',0,0,'' )
,('APVDDP','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDP','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDP','01',3,'TIPO RECORD = "DP"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDDP','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDDP','01',5,'ATTRIBUTO SOCI INS. MANUALE NUMERO DDT',2,'NATTSM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDDP','01',6,'CODICE ATT. SOCI INS. MANUALE NUMERO DDT',2,'CATTSM',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDP','01',7,'PREFISSO NUMERO DDT',2,'PREDDT',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APVDDP','01',8,'POST FISSO DDT',2,'POSDDT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APVDDP','01',9,'NUMERO BLOCCO AUTODDT',2,'NUMBLO',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDDP','01',10,'NUMERO COPIE DI STAMPA',2,'NUMCOP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDDP','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,466,466,0,0,'X(466)','',0,'',0,0,'' )
,('APVDDS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDS','01',3,'TIPO RECORD = "DS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDDS','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDDS','01',5,'TABELLA FLAGS SOCIO',2,'TABFLG',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDS','01',6,'ELEMENTO FLAG',3,'ELEFLG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',145,'',0,0,'' )
,('APVDDS','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDS','01',8,'BLOCCO ACCONTI S/N',3,'BLOACC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',9,'BLOCCO LIQUIDAZIONE S/N',3,'BLOLIQ',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',10,'BLOCCO CONTRIBUTO CEE S/N',3,'BLOCEE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',11,'BLOCCO FINANZIAMENTO IMPIANTI S/N',3,'BLOFIN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',12,'STAMPA LIBRO SOCI S/N',3,'STALIS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',13,'DA SCARTARE IN REGOLAMENTO VENDEMMIA S/N',3,'BLOREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',14,'STAMPA DICHIARAZIONI DI RACCOLTA S/N',3,'STADIC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',15,'STAMPA CATASTINO SOCI S/N',3,'STACAT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',16,'BLOCCO CONCENTRAZIONE SOCIO S/N',3,'BLOCON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',17,'BLOCCO VENDEMMIA',3,'BLOVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',18,'GESTIONE NUOVI IMPIANTI',3,'GESNIM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',19,'ADDEBITO AUTOMATICO PUNTO VENDITA',3,'ADDAPV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',20,'INVIO FATTURE/AUTOFATTURE VIA MAIL',3,'FATMAI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',21,'BLOCCO COMPLETO ACCONTO S/N',3,'BLOAC1',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',22,'BLOCCO COMPLETO LIQUIDAZIONE S/N',3,'BLOLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDS','01',23,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,130,130,0,0,'X(130)','',0,'',0,0,'' )
,('APVDDV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDDV','01',3,'TIPO RECORD = "DV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVDDV','01',4,'NUMERO VALORE',3,'NUMVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDDV','01',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVDDV','01',6,'DESCRIZIONE VALORE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVDDV','01',7,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVDDV','01',8,'INTESTAZIONE ALLINEAMENTO DX',2,'DESINT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APVDDV','01',9,'VALORE OBBLIGATORIO S/N',2,'VALOBB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDDV','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,235,235,0,0,'X(235)','',0,'',0,0,'' )
,('APVDFV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDFV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDFV','01',3,'TIPO RECORD = "FV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDFV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDFV','01',5,'VENDITA UVE INTERE',2,'VENINT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',6,'VENDITA UVE DIRASPATE',2,'VENDIR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',7,'CONFERIMENTO UVE',2,'CONFER',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',8,'DETERMINAZIONE ROD',2,'DETROD',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',9,'DETERMINAZIONE VINACCE (SC. IMMEDIATO)',2,'VINIMM',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',10,'DETERMINAZIONE VINACCE (DA SCARICARE)',2,'VINDIF',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',11,'DETERMINAZIONE MOSTI',2,'DETMOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',12,'TRASFORMAZIONE MOSTO IN VNF',2,'MOSVNF',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',13,'DET. ROD DA VENDITA UVE DIRASPATE',2,'RODDIR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',14,'SCARICO AUTOMATICO VINACCE DA REGISTRO',2,'SCAVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',15,'CARICO AUTOMATICO VINACCE SU SOTTOPROD',2,'CARVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',16,'SCARICO AUTOMATICO FECCIA DA REGISTRO',2,'SCAFEC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',17,'CARICO AUTOMATICO FECCIA SU SOTTOPROD',2,'CARFEC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDFV','01',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,447,447,0,0,'X(447)','',0,'',0,0,'' )
,('APVDGS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDGS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDGS','01',3,'NUMERO RECORD (0-29)',3,'INDICE',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APVDGS','01',4,'SN',2,'ATTIVO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDGS','01',5,'SOGLIA INIZIALE GRADO IN ENTRATA',2,'GRAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDGS','01',6,'SOGLIA FINALE GRADO IN ENTRATA',2,'GRAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDGS','01',7,'INCREMENTO UNITARIO DA APPLICARE',2,'INCGRA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDGS','01',8,'TABELLA UVE',2,'TABUVE',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDGS','01',9,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',10,'',0,0,'' )
,('APVDGS','01',10,'STAMPARE BOLLETTA ENTRATA (S/N)',2,'FLGSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDGS','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,438,438,0,0,'X(438)','',0,'',0,0,'' )
,('APVDPA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPA','01',3,'TIPO RECORD = "PA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPA','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDPA','01',5,'REGISTRO PER STABILIMENTO S/N',2,'FLGSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPA','01',6,'DATA LIMITE INIZIALE',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVDPA','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPA','01',8,'ANNO INIZIALE',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVDPA','01',9,'MESE INIZIALE',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPA','01',10,'GIORNO INIZIALE',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPA','01',11,'DATA FINALE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVDPA','01',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPA','01',13,'ANNO INIZIALE',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVDPA','01',14,'MESE INIZIALE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPA','01',15,'GIORNO INIZIALE',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPA','01',16,'STAMPA COLORE MC IN DICHI. ARRICCHIMENTO',2,'FLAGSC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPA','01',17,'ALCOLE POT E GRADO RIF. AUT. DA TABELLA',2,'GRAAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPA','01',18,'AUMENTO MASSIMO GRADO CONSENTITO',2,'AUMMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDPA','01',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,463,463,0,0,'X(463)','',0,'',0,0,'' )
,('APVDPC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPC','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPC','01',3,'TIPO RECORD = "PC"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPC','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDPC','01',5,'MODO GESTIONE ZONE CONFERIMENTO',2,'FLGZON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',6,'MODO GESTIONE LOCALITA''',2,'FLGLOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',7,'MODO GESTIONE NOME VIGNETO',2,'FLGVIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',12,'CONTROLLO SUP.AUTORIZZ/CATASTO S/N/P',2,'FLGCAC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',17,'NUMERO CARATTERI NOME VIGNETO',2,'NUMVIG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',18,'NUMERO ATTRIBUTO UVO DECLASSATO',2,'NATDEC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',19,'CODICE ATTRIBUTO UVO DECLASSATO',2,'CATDEC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPC','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPC','01',21,'POSIZIONE CODICE UVA',2,'VISUVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',22,'POSIZIONE CODICE ZONA',2,'VISZON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',23,'POSIZIONE CODICE LOCALITA''',2,'VISLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',24,'POSIZIONE NOME VIGNETO',2,'VISVIG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',25,'POSIZIONE CODICE COMUNE',2,'VISCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',26,'POSIZIONE FOGLIO',2,'VISFOG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',27,'POSIZIONE CODICE POSSESSO',2,'VISPOS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',28,'POSIZIONE CODICE VITIGNO',2,'VISVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',29,'POSIZIONE SUPERFICE VITATA',2,'VISSPV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',30,'POSIZIONE SUPERFICE CERTIFICATA',2,'VISSCR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',31,'POSIZIONE QUINTALI CERTIFICATI',2,'VISQCR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',32,'POSIZIONE FLAG PRODUZIONE',2,'VISPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',33,'NUMERO DEFINIBILE ANNO IMPIANTO',2,'NDANNO',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',34,'ATTRIBUTO TIPO IMPIANTO',2,'NATIPI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',35,'POSIZIONE NOME PROPRIETARIO',2,'VISNMP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',36,'POSIZIONE NUMERI DEFINIBILI E ATTRIBUTI',2,'VISNDA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',37,'CODICE VITIGNO SU CONFERIMENTI (S/N/I)',2,'FLGVIT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',39,'POSIZIONE SUB-PARTICELLA',2,'VISSUB',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',40,'POSIZIONE SUPERFICIE CATASTALE',2,'VISCAT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',41,'NUMERO DEFINIBILE SESTO IMP. SU FILA',2,'NDSISF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',42,'NUMERO DEFINIBILE SESTO IMP. TRA FILE',2,'NDSITF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',43,'NUMERO DEFINIBILE NUMERO VITI',2,'NDSINV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',44,'CONTROLLO VITATA <= CATASTALE (S/N)',2,'CSUVIT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',45,'COEFFICENTE CALCOLO VITI',2,'CFFVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('APVDPC','01',46,'POSIZIONE SEZIONE CENSUARIA',2,'VISSEZ',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',47,'POSIZIONE SUPERFICIE SCHEDARIO',2,'VISSCH',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',48,'POSIZIONE NOTE PARTICELLA',2,'VISNOT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',49,'TABELLA POSIZIONI NUMERI DEFINIBILI',2,'TABVND',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPC','01',50,'POSIZIONE NUMERI DEFINIBILI',3,'VISNDE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',10,'',0,0,'' )
,('APVDPC','01',51,'TABELLA POSIZIONI ATTRIBUTI',2,'TABVAT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPC','01',52,'POSIZIONE ATTRIBUTI PARTICELLE',3,'VISATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',10,'',0,0,'' )
,('APVDPC','01',53,'FLAG RAPP. ZERI IN SUPERFICI IN V4MCOC',2,'FLGZER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVDPC','01',54,'POSIZIONE PARTICELLA',2,'VISPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',55,'RELEASE CATASTO',2,'RELCAT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',56,'POSIZIONE NUMERO B1',2,'VISVB1',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',57,'POSIZIONE NUMERO UNITA'' VITATA AGEA',2,'VISNUV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',58,'POSIZIONE PARTITA IVA INTESTATARIO',2,'VISIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',59,'POSIZIONE FLAG STATO VALIDAZIONE AGEA',2,'VISVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',60,'POSIZIONE UVA BASE',2,'VISBAS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',61,'NUMERO DEFINIBILE RESA MASSIMA',2,'NDRMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',62,'NUMERO ATTRIBUTO CATASTO VENDEMMIA MECC.',2,'CATMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',63,'VALORE ATTRIBUTO CATASTO VENDEMMIA MECC.',2,'VATMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPC','01',64,'NUMERO DEFINIBILE USATO PER ANNO DICH.B1',2,'NDANB1',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',65,'NUMERO ATT.USATO PER IRRIGAZIONE',2,'NAIRRI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',66,'NUMERO ATT.USATO PER COLTURA',2,'NACOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',67,'NUMERO ATT.USATO PER DEST. PRODUTTIVA',2,'NADEPR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',68,'NUMERO ATT.USATO PER COD.VARIAZIONE DSV',2,'NACVAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',69,'NUMERO ATT.USATO PER CASI PARTICOLARI',2,'NACAPA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',70,'PREVIDETA IMMISSIONE DATI CATSTO PER DSV',2,'IMMDSV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPC','01',71,'NUM.DEF.USATO PER ANNO CAMPAGNA VITICOLA',2,'NDANNV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',74,'NUMERO DEF.USATO PER RIDUZIONE RESA',2,'NDRIDR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',75,'N. DEF.USATO PER RESA IN KG (GELATA)',2,'NDRESG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',76,'PERCENTUALE AUMENTO RESA KG (GELATA)',2,'PERGEL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDPC','01',77,'NUMERO DEFINIBILE RIDUZIONE TOLLERATA',2,'NDRIDT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPC','01',78,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,330,330,0,0,'X(330)','',0,'',0,0,'' )
,('APVDPI','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPI','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPI','01',3,'TIPO RECORD = "PI"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPI','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDPI','01',5,'ATTRIBUTO CONFERIMENTI FORZA TAVOLA',2,'ATTTAV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPI','01',9,'ATTRIBUTO CONFERIMENTI ZONA ORIGINALE',2,'ATTZON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPI','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,482,482,0,0,'X(482)','',0,'',0,0,'' )
,('APVDPL','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPL','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPL','01',3,'TIPO RECORD = "PL"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPL','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDPL','01',5,'LUNGHEZZA CODICE ZONA',2,'LUNZON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',6,'LUNGHEZZA CODICE LOCALITA''',2,'LUNLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',7,'LUNGHEZZA NOME VIGNETO',2,'LUNVIG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',8,'LUNGHEZZA SIGLA VITIGNO',2,'LUNVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',9,'LUNGHEZZA NOME PROPRIETARIO',2,'LUNNMP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',10,'LUNGHEZZA FOGLIO',2,'LUNFOG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',11,'LUNGHEZZA PARTICELLA',2,'LUNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',12,'LUNGHEZZA SUB-PARTICELLA',2,'LUNSUB',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',13,'LUNGHEZZA NOTE PARTICELLA',2,'LUNNOT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',14,'LUNGHEZZA DICHIARAZIONE VINOB1',2,'LUNVB1',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',15,'LUNGHEZZA NUMERO UNITA'' VITATA AGEA',2,'LUNNUV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',16,'LUNGHEZZA PARTITA IVA INTESTATARIO',2,'LUNIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',17,'LUNGHEZZA CODICE COMUNE',2,'LUNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPL','01',18,'TABELLA LUNGHEZZA DESCRIZIONI ATTRIBUTI',2,'TABLAT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPL','01',19,'LUNGHEZZA DESCRIZIONE ATTRIBUTI PARTIC.',3,'LUNATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',10,'',0,0,'' )
,('APVDPL','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,440,440,0,0,'X(440)','',0,'',0,0,'' )
,('APVDPP','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPP','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPP','01',3,'STABILIMENTO NESSUNO = TUTTI',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPP','01',4,'UTENTE DI AV2000 NESSUNO = TUTTI',3,'UTENTE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APVDPP','01',5,'ABILITATO INSERIMENTO MANUALE LORDO S/N',2,'LORMAN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPP','01',6,'ABILITATO INSERIMENTO MANUALE TARA S/N',2,'TARMAN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPP','01',7,'ABILITATO INSERIMENTO MANUALE GRADO S/N',2,'GRAMAN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPP','01',8,'SCAMBIO AUTOMATICO PESA TARA/LORDO/TARA',2,'FLGSCP',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPP','01',9,'SCAMBIO AUTOMATICO PESA DESTRA/SIN.',2,'FLGSDS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPP','01',10,'INCREMENTO INDISCRIMINATO GRADO (S/N)',2,'INCGRA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPS','01',3,'TIPO RECORD = "PS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPS','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDPS','01',5,'NUMERO ATTRIBUTO ZONA CONSIGLIERI',2,'ATTZCO',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPS','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,484,484,0,0,'X(484)','',0,'',0,0,'' )
,('APVDPV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDPV','01',3,'TIPO RECORD = "PV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDPV','01',5,'VISUA SITUAZIONE CONFERENTE PESE S/N',2,'SITCON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',6,'STABILIMENTO SOCI OBBLIGATORIO S/N',2,'FLGOSS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',7,'STABILIMENTO CONFERIMENTI OBBLIG. S/N',2,'FLGOSC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',8,'TIPO NUMERAZIONE BOLLETTE',2,'FLGNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',11,'FLAG STAMPA GRADO IN BOLLETTA (S/N)',2,'STAGRA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',12,'MASSIMO ERRORE % TARA -> TARA MEDIA',2,'MAXERT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',13,'FLAG SPOSTAMENTO DECLASSATO TAVOLA/I.G.',2,'SPOTAV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',14,'GRADO MINIMO PER SCELTA OBBLIGATORIA',2,'GRSCOB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('APVDPV','01',15,'CODICE BLOCCO BOLLE DOCO CONFERIMENTO',2,'BLOCCO',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',16,'PROGRAMMA STAMPA BOLLA CONFERIMENTO',2,'MODULO',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVDPV','01',17,'RISTAMPA SEMPRE ALLA TARA (S/N)',2,'RISTAR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',18,'ABILITATE MODIFICHE ALLA TARA (S/N)',2,'MODTAR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',19,'GESTIONE OLTRE TOLLERANZA AD NN (S/N)',2,'FLGOLT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',20,'FLAG STAMPA LOCALITA'' IN BOLLETTA S/N/C',2,'STALOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',21,'TOLLERANZA FILE FONDI (GRANDINE) (S/N)',2,'TOLLFO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',22,'NUMERO ATTRIBUTO PARTICELLE GRANDINATE',2,'NATTGR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',23,'NUMERO ATTRIBUTO SOCI 2078',2,'NA2078',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',24,'CODICE ATTRIBUTO SOCI 2078',2,'CA2078',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',25,'FLAG GESTITA PERCENTUALE RITOCCO NETTO',2,'FPRNET',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',26,'CODICE SCELTA DA ASSEGNARE SE CAMBIATO',2,'SCEVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',28,'ATTRIBUTO CONFERIMENTI CONCENTRAZIONE',2,'ATTCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',29,'ATTRIBUTO CONFERIMENTI OLTRE TOLLERANZA',2,'ATTOLT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',30,'CODICE ATT.CONFERIMENTI OLTRE TOLLERANZA',2,'CODOLT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDPV','01',31,'ATTIVO DECLASSAMENTO PER GRADO (S/N)',2,'DCLGRA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',32,'BLOCCO MODIFICA CONFERIMENTI S/N',2,'LOCKCC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',33,'ATTRIBUTO CATASTO PER STAB. CONFERIMENTO',2,'ATTSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',34,'TIPO STAMPA BOLLETTE OLTRE TOLLERANZA',2,'STPOLT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',38,'SOGLIA RESIDUO MINIMO (SAN MARTINO RIO)',2,'SOGLIA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'9(3)V99','',0,'',0,0,'' )
,('APVDPV','01',39,'GESTITO DOPPIO GRADO CONFERIMENTI S/N',2,'DUEGRD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',45,'ATTRIBUTO CONFERIMENTI RITOCCO GRADO',2,'ATTGRA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVDPV','01',46,'TIPO SUDDIVISIONE UVO (SOAVE)',2,'SDDUVO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',52,'NR. ATTRIBUTO CONFERIMENTO PER CLASSE',2,'ATTICQ',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APVDPV','01',54,'NUMERO ATTRIBUTO CONFERIMENTO CASSETTE',2,'ATTCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APVDPV','01',55,'VALORE ATTRIBUTO CONFERIMENTO CASSETTE',2,'VALCAS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDPV','01',56,'NUMERO ATTRIBUTO FORZA STAMPA F1',2,'NRATF1',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',57,'CODICE ATTRIBUTO FORZA STAMPA F1',2,'COATF1',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',58,'REINNESTI/NUOVI IMPIANTI IN RESA X ANNO',2,'FLGRNI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',59,'BLOCCO MODIFICHE CATASTO S/N',2,'LOCKCA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',60,'NUMERO ATTRIBUTO PLATEAUX SOVRAPPESO',2,'ATTSVP',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APVDPV','01',61,'CODICE PER PLATEAUX CON PESO REGOLARE',2,'CODSVP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDPV','01',62,'PERCENTUALE CARRI DA CONTROLLARE',2,'PCHECK',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,1,0,'999V9','',0,'',0,0,'' )
,('APVDPV','01',63,'CODICE VENDEMMIA DI NUMERAZIONE',2,'VENNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDPV','01',64,'CODICE VENDEMMIA AGGIORNARE IN PARALLELO',2,'VENPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDPV','01',65,'ATTRIBUTO SOCI NON TOCCARE ORSAGO',2,'ATTORS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',68,'NR.ATT.CONFERIMENTI USATO PER TRAMOGGIA',2,'ATTTRA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',69,'NR.ATT.CONF. USATO PER STATO SANITARIO',2,'ATTSAN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',70,'NUMERO ATTRIBUTO ISATO PER CONFERENTI',2,'NATCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',72,'CODICE ATTRIBUTO USATO PER CONFERENTI',2,'CATCON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',74,'MODULO STAMPA BOLLA CONFERIMENTO DDT',2,'MODDDT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVDPV','01',75,'NR.ATT.ANOMALIA INFRAZIONE STABILIMENTO',2,'ATTAIS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',76,'COD.ATT.ANOMALIA INFRAZIONE STABILIMENTO',2,'CODAIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVDPV','01',77,'SCELTA DA ASSEGNARE SE < MINIMO',2,'GRSCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',78,'MODALITA'' GESTIONE TOLLERANZA DOC (0/1)',2,'MODTOL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',80,'NR.ATT.UVE USATO PER UVE DOC DA NON',2,'NATDND',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',82,'COD.ATT.UVE USATO PER UVE DOC DA NON',2,'CATDND',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',84,'SCELTA DA FORZARE QUANDO IMPUTATO',2,'SCECAM',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',86,'CODICE SCELTA DA ASSEGNARE SE CAMBIATA',2,'SCEZON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',88,'CALCOLO SUPERO DOC DA CERTIFICATA (S/N)',2,'CALSUP',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',89,'NR. ATTRIBUTO SOCI INCREMENTO GRADO',2,'ATTSGR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',90,'ATTRIBUTO PER INFRAZIONE DICHIARAZIONE',2,'ATTAID',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',91,'CODICE SCELTA UVE DA DENATURARE',2,'SCEDEN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',92,'CONCENTRAZIONE ATTIVA (S/N)',2,'FLGCON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',93,'NUMERO ATTRIBUTO PRODUTTORI RECIOTO SPEC',2,'NAPREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',94,'CODICE ATTRIBUTO PRODUTTORI RECIOTO SPEC',2,'CAPREC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',95,'CODICE UVA PRODUTTORI SPECIALI RECIOTO',2,'UVAREC',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('APVDPV','01',96,'COEFFICENTE PARAMETRAZIONE 089',2,'COE089',0,0,0,0,0,0,0,0,0,0,'',1,0,2,3,1,0,'9V9','',0,'',0,0,'' )
,('APVDPV','01',97,'PARAMETRAZIONE ATTIVA 089',2,'PAR089',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',98,'TIPO CALCOLO STOCCAGGIO (S/A)',2,'CALSTO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',99,'STAMPA ETICHETTE FOSS GRADO MONTEFORTE',2,'STEFGR',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDPV','01',100,'INCREMENTO GRADO INDISCRIMINATO',2,'INCGRA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDPV','01',101,'STOCCAGGIO PROPORZIONALE (S/N)',2,'STOPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',102,'NO NUMERAZIONE PER GG(ANCHE SE S DA PAR)',2,'FLGNOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',103,'OBBLIGO PRELEIVO PH OVE GESTITO (VALDO)',2,'OBB-PH',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',104,'ATTRIBUTI CONFERIMENTO GESTITI PALMARE',2,'ATTPAL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',5,'',0,0,'' )
,('APVDPV','01',105,'RIEMPIMENTO ANCHE SE NON PRIMO CARRO S/N',2,'FLGRIE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',106,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,319,319,0,0,'X(319)','',0,'',0,0,'' )
,('APVDPV','01',107,'PERCENTUALE MECCANICA',2,'PERMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDPV','01',108,'QUINTALI LIMITE GIORNALIERO SOCIO',2,'LIMQLI',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',0,'',0,0,'' )
,('APVDPV','01',109,'CODICE REGISTRO SE NO STABILIMENTO CONF.',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVDPV','01',110,'SCELTA ASSEGNARE UVE BASSO RESIDUO',2,'SCEBAS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',111,'CODICE ATTRIBUTO PRODUTTORI RECIOTO (2)',2,'CAPRE2',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',112,'CODICE ATTRIBUTO PRODUTTORI RECIOTO (3)',2,'CAPRE3',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',113,'SELEZIONE PER ATTRIBUTO O TUTTI (S/N)',2,'FAPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',114,'QUANTITA'' RIEMPIMENTO MINIMO UVO 1^ CONF',2,'RIEMPI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDPV','01',115,'SCELTA ECCESSO UVE A RIPOSO SOAVE',2,'SCERIP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',116,'UVA ECCESSO UVE ARIPOSO SOAVE',2,'UVARIP',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',10,'',0,0,'' )
,('APVDPV','01',117,'DECLASSARE NUOVI IMPIANTI A TAVOLA S/N',2,'DNITAV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDPV','01',118,'CODICE SCELTA BOLLETTE FASCE RISPETTO',2,'SCERIS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDPV','01',119,'NUEMRO DEFINIBLE MQ FASCE RISPETTO',2,'NUMRIS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDPV','01',120,'LIMITE QLI RESIDUO FORZABILI',2,'LIMFOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,6,2,0,'999V99 COMP-3','',0,'',0,0,'' )
,('APVDRA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDRA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDRA','01',3,'TIPO RECORD = "RA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDRA','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDRA','01',5,'ACQUISTO CONCENTRATO (VINIFICAZIONE)',2,'ACQCON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',6,'PRO. INTERNA CONCENTRATO (VINIFICAZIONE)',2,'PROCON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',7,'C/LAV. CONCENTRATO (VINIFICAZIONE)',2,'CLACON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',8,'ACQUISTO CONCENTRATO RETT (VINIF)',2,'ACQCOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',9,'PRO. INTERNA CONCENTRATO RETT. (VINIF)',2,'PROCOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',10,'C/LAV. CONCENTRATO RETT. (VINIF)',2,'CLACOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',11,'DA COMMERCIALIZZAZIONE CONC. (VINIF)',2,'COMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',12,'DA COMMERCIALIZZAZIONE CONC. RETT. (VIN)',2,'COMCOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRA','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,462,462,0,0,'X(462)','',0,'',0,0,'' )
,('APVDRV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDRV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDRV','01',3,'TIPO RECORD = "RV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDRV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDRV','01',5,'TIPO PRELIEVO QUANTITA'' CONFERITA',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDRV','01',8,'MODALITA'' CALCOLO MOSTI',2,'TIPCAL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDRV','01',11,'TIPO GESTIONE MASSA VOLUMICA',2,'TIPMAS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDRV','01',14,'COLONNA SUPLETTIVA S/N',2,'COLSUP',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDRV','01',15,'STABILIMENTI NO REGISTRO VINIFICAZIONE',2,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',4,'',0,0,'' )
,('APVDRV','01',16,'SCA. AUT. VINACCE REG. SOTTOPRODOTTI S/N',2,'VINAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDRV','01',17,'SCA. AUT. FECCIA REG. SOTTOPRODOTTI S/N',2,'FECAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDRV','01',18,'CODICE REGISTRO SOTTOPRODOTTI',2,'REGSOT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDRV','01',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,465,465,0,0,'X(465)','',0,'',0,0,'' )
,('APVDSA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDSA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDSA','01',3,'TIPO RECORD = "SA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDSA','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDSA','01',5,'TRASFERIMENTI CONCENTRATO (VINIF.)',2,'TRACON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDSA','01',6,'PERDITE CONCENTRATO (VINIFICAZIONE)',2,'PERCON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDSA','01',7,'ALTRI MOVIMENTI CONCENTRATO (VINIF.)',2,'ALTCON',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDSA','01',8,'TRASFERIMENTI CONCENTRATO RETT (VINIF)',2,'TRACOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDSA','01',9,'PERDITE CONCENTRATO RETT. (VINIF)',2,'PERCOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDSA','01',10,'ALTRI MOVIM. CONCENTRATO RETT. (VINIF)',2,'ALTCOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDSA','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,468,468,0,0,'X(468)','',0,'',0,0,'' )
,('APVDSC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDSC','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDSC','01',3,'TIPO RECORD = "SC"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVDSC','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDSC','01',5,'PERCENTUALE MASSIMA RIDUZIONE FONDO',2,'PMAXRD',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDSC','01',6,'PERCENTUALE CALCOLO GRADO RIDUZIONE',2,'PRDGRD',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDSC','01',7,'PERCENTUALE CALCOLO QLI SU GRADO MINIMO',2,'PRDQLI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDSC','01',8,'PERCENTUALE PENALIZZAZIONE CASARSA',2,'PERCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVDSC','01',9,'CONCENTRAZIONE AUTOMATICA PESA (S/N)',2,'FLAUTO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDSC','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,465,465,0,0,'X(465)','',0,'',0,0,'' )
,('APVDST','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDST','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDST','01',3,'STABILIMENTO',3,'CODSTB',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDST','01',4,'CODICE BLOCCO BOLLE DOCO CONFERIMENTO',2,'BLOCCO',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDST','01',5,'MODALITA'' IMPUTAZIONE GRADO PESA',2,'GRADOP',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVDST','01',9,'DESCRIZIONE CAUSALE TRASPORTO',2,'DESCAU',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVDST','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,312,312,0,0,'X(312)','',0,'',0,0,'' )
,('APVDUU','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDUU','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDUU','01',3,'TIPO RECORD = "UU"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDUU','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDUU','01',5,'NUMERO ATTRIBUTO UVAGGIO ORIGINALE',2,'ATTUVG',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APVDUU','01',6,'NUMERO ATTRIBUTO ZONA ORIGINALE',2,'ATTZON',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APVDUU','01',7,'CONFERIMENTO MINIMO CREABILE',2,'QLIMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVDUU','01',8,'NUMERO ATTRIBUTO SOCI NON SPOSTAMENTO',2,'NUMNSP',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDUU','01',9,'CODICE ATTRIBUTO SOCI NO SPOSTAMENTO',2,'CODNSP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',5,'',0,0,'' )
,('APVDUU','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,463,463,0,0,'X(463)','',0,'',0,0,'' )
,('APVDVD','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDVD','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVDVD','01',3,'TIPO RECORD = "VD"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVDVD','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVDVD','01',5,'ELEMENTO TABELLA',2,'ELEATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',30,'',0,0,'' )
,('APVDVD','01',6,'CODICE PRIMO ATTRIBUTO DI CATASTO',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDVD','01',9,'NR.ATTRIBUTO UVE USATO PER DOCG',2,'NRAUDG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVDVD','01',10,'COD.ATTRIBUTO UVE USATO PER DOCG',2,'CDAUDG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDVD','01',11,'SCELTA DA FORZARE SE MECCANICA',2,'SCEMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVDVD','01',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,388,388,0,0,'X(388)','',0,'',0,0,'' )
,('APVECA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVECA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVECA','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVECA','01',4,'ELEMENTO TABELLA',2,'ELECAU',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('APVECA','01',5,'CODICE CAUSALE',3,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVECA','01',6,'EFFETTO CAUSALE +/-',3,'SEGCAU',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVECA','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,118,118,0,0,'X(118)','',0,'',0,0,'' )
,('APVEN1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',2,'CHIAVE CLIFOR+DATA+NUMERO',2,'KEY002',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',3,'DATA IMMISSIONE BOLLETTA',3,'DTABOL',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVEN1','01',4,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',5,'ANNO',4,'AA-BOL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN1','01',6,'MESE',4,'MM-BOL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',7,'GIORNO',4,'GG-BOL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',8,'CHIAVE PRINCIPALE',3,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',9,'NUMERO INTERNO BOLLETTA',4,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN1','01',10,'TIPO NOMINATIVO',2,'TIPNOM',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVEN1','01',11,'SOCIO/NOMINATIVO/CLIENTE/TABELLA',2,'FLAGSN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',12,'CODICE SOCIO/NOMINATIVO/CLIENTE/CONVENZ.',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVEN1','01',13,'CAUSALE BOLLETTA',2,'CAUBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVEN1','01',14,'TIPO DOCUMENTO EMESSO',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',17,'CODICE MAGAZZINO',2,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'ATBAMA',1,1,'' )
,('APVEN1','01',18,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',19,'MODALITA'' DI TRASPORTO',2,'CODMOT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',20,'PROVVIGIONE AGENTE',2,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVEN1','01',21,'TIPO LISTINO (S=SOCI/N=NOMINATIVI/C=CLI)',2,'FLGLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',22,'SCONTI COMMERCIALI',2,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',23,'SCONTI COMMERCIALI',3,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('APVEN1','01',24,'TOTALE MERCE',2,'TOTMER',0,0,0,0,0,0,0,0,0,0,'',1,1,5,10,0,2,'S9(9) COMP-3','S9(7)V99 COMP-3',0,'',0,0,'' )
,('APVEN1','01',25,'IMPORTO CAUZIONI',2,'IMPCAU',0,0,0,0,0,0,0,0,0,0,'',1,1,4,8,0,2,'S9(7) COMP-3','S9(5)V99 COMP-3',0,'',0,0,'' )
,('APVEN1','01',26,'IMPORTO BOLLO CAUZIONI',2,'IMPBCZ',0,0,0,0,0,0,0,0,0,0,'',1,1,4,8,0,2,'S9(7) COMP-3','S9(5)V99 COMP-3',0,'',0,0,'' )
,('APVEN1','01',27,'TOTALE BOLLETTA',2,'TOTBOL',0,0,0,0,0,0,0,0,0,0,'',1,1,5,10,0,2,'S9(9) COMP-3','S9(7)V99 COMP-3',0,'',0,0,'' )
,('APVEN1','01',28,'TIPO PAGAMENTO',2,'MODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',29,'DATA PARTENZA BOLLETTA',2,'DTAPAR',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVEN1','01',30,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',31,'ANNO',3,'AA-PAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN1','01',32,'MESE',3,'MM-PAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',33,'GIORNO',3,'GG-PAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',34,'ORA PARTENZA',2,'ORAPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVEN1','01',35,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',36,'ORE',3,'OREPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',37,'MINUTI',3,'MINPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',38,'DATA STAMPA BOLLETTA',2,'DTASTA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVEN1','01',39,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',40,'ANNO',3,'AA-STA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN1','01',41,'MESE',3,'MM-STA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',42,'GIORNO',3,'GG-STA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN1','01',43,'BLOCCO BOLLE',2,'BLOCCO',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVEN1','01',44,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APVEN1','01',45,'NUMERO COLLI TOTALE',2,'NUMCOL',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',46,'NUMERO MOVIMENTO MAGAZZINO GENERATO',2,'NUMMMG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',47,'NUMERO MOVIMENTO COMMERC. VINI PARTENZA',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',48,'NUMERO MOVIMENTO TAPPI',2,'NUMTAP',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',49,'NUMERO MOVIMENTO VUOTI',2,'NUMVUO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',50,'NUMERO REGISTRAZIONE CONTABILE ADDEBITO',2,'NUMRPN',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',51,'AVVENUTA ESTRAZIONE STATISTICHE (S)',2,'EXTSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',52,'AVVENUTA ESTRAZIONE PROVVIGIONI (S)',2,'EXTPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',53,'NUMERO INTERNO FATTURA CREATA',2,'NUMFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',54,'FORZA STAMPA BOLLA S/N/b',2,'FLGBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',55,'NUMERO MOVIMENTO IMBOTTIGLIAMENTO',2,'NUMIMB',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN1','01',56,'CODICE PAGAMENTO (PER CLIENTI)',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APVEN1','01',57,'CODICE BANCA',2,'CODBAN',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN1','01',58,'CODICE ABI PER EFFETTI',3,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('APVEN1','01',59,'CODICE CAB PER EFFETTI',3,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('APVEN1','01',60,'TIPO LISTINO (FARA)',2,'TIPLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN1','01',63,'ID SUPERTESTATA MOV.REG.VITIVINICOLO',2,'IDSRVI',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,0,'9(13)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVEN1','01',64,'TOTALE DOCUMENTO DA STORE 360 VALDOCA',2,'TOT360',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APVEN2','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','00',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','00',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','00',4,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN2','00',5,'NUMERO RECORD',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN2','00',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,61,61,0,0,'X(61)','',0,'',0,0,'' )
,('APVEN2','AE',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','AE',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','AE',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','AE',4,'TIPO RECORD = "AE"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN2','AE',5,'NUMERO RECORD = ZERO',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN2','AE',6,'ASPETTO ESTERIORE DEI BENI',2,'ASPETT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVEN2','AE',7,'CODICE TRASPORTATORE',2,'CODTRA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVEN2','AE',8,'CODICE PORTO',2,'CODPOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVEN2','AE',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('APVEN2','FA',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','FA',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','FA',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','FA',4,'TIPO RECORD = "FA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN2','FA',5,'NUMERO RECORD = ZERO',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN2','FA',6,'NUMERO FATTURA ACCOMPAGNATORIA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APVEN2','FA',7,'FATTURA O BOLLA ACCOMPAGNATORIA (F/B)',2,'FATBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN2','FA',8,'FATTURA CLIENTE (S/N)',2,'FATCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN2','FA',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,51,51,0,0,'X(51)','',0,'',0,0,'' )
,('APVEN2','FL',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','FL',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','FL',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','FL',4,'TIPO RECORD = "FL"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN2','FL',5,'NUMERO RECORD = ZERO',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN2','FL',6,'PROVVIGIONI CAPI AREA ESTRATTE (S)',2,'EXTPRC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN2','FL',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,60,60,0,0,'X(60)','',0,'',0,0,'' )
,('APVEN2','NA',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','NA',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','NA',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','NA',4,'TIPO RECORD = "NA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN2','NA',5,'NUMERO RECORD = ZERO',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN2','NA',6,'CODICE NAZIONE SOGGETTO',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVEN2','NA',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,58,58,0,0,'X(58)','',0,'',0,0,'' )
,('APVEN2','NP',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','NP',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','NP',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','NP',4,'TIPO RECORD = "NP"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN2','NP',5,'NUMERO RECORD = ZERO',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN2','NP',6,'BOLLETTA PAGATA S/N',2,'BOLPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN2','NP',7,'NUMERO REGISTRAZIONE CONTAB. NO PAGAM.',2,'REGNPG',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','NP',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('APVEN2','RE',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','RE',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN2','RE',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN2','RE',4,'TIPO RECORD = "RE"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN2','RE',5,'NUMERO RECORD = ZERO',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN2','RE',6,'PAGATO IN EURO',2,'PAGEUR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,11,2,0,'9(8)V99 COMP-3','',0,'',0,0,'' )
,('APVEN2','RE',7,'PAGATO IN LIRE',2,'PAGLIR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVEN2','RE',8,'RESTO IN EURO',2,'RESEUR',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVEN2','RE',9,'RESTO IN LIRE',2,'RESLIR',0,0,0,0,0,0,0,0,0,0,'',1,1,5,10,0,0,'S9(9) COMP-3','',0,'',0,0,'' )
,('APVEN2','RE',10,'IMPORTO PAGATO DAL CLIENTE',2,'PAGCLI',0,0,0,0,0,0,0,0,0,0,'',1,1,9,11,2,0,'S9(7)V99','',0,'',0,0,'' )
,('APVEN2','RE',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVEN3','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN3','00',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN3','00',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN3','00',4,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN3','00',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,147,147,0,0,'X(147)','',0,'',0,0,'' )
,('APVEN3','DS',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN3','DS',7,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN3','DS',8,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN3','DS',9,'TIPO RECORD = "DS"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN3','DS',10,'RAGIONE SOCIALE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVEN3','DS',11,'INDIRIZZO',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVEN3','DS',12,'CAP',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APVEN3','DS',13,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVEN3','DS',14,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN3','DS',15,'CODICE DESTINATARIO',2,'CODDES',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVEN3','DS',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,13,13,0,0,'X(13)','',0,'',0,0,'' )
,('APVEN3','NO',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN3','NO',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN3','NO',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN3','NO',4,'TIPO RECORD = "NO"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN3','NO',5,'RAGIONE SOCIALE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVEN3','NO',6,'INDIRIZZO',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVEN3','NO',7,'CAP',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APVEN3','NO',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVEN3','NO',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN3','NO',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,19,19,0,0,'X(19)','',0,'',0,0,'' )
,('APVEN4','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','00',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','00',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN4','00',4,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVEN4','00',5,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN4','00',6,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','00',10,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','00',11,'COD.BREVE-DEVE ESSERE SEMPRERICODIFICATO',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','00',12,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','00',13,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVEN4','00',14,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APVEN4','00',15,'FILLER',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,103,103,0,0,'X(103)','',0,'',0,0,'' )
,('APVEN4','II',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','II',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','II',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN4','II',4,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVEN4','II',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN4','II',6,'TIPO RIGA = "I"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','II',7,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','II',8,'COD.BREVE-DEVE ESSERE SEMPRERICODIFICATO',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','II',9,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','II',10,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN4','II',11,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APVEN4','II',12,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','II',13,'FLAG PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','II',14,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVEN4','II',15,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVEN4','II',16,'IMPORTO',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','II',17,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVEN4','II',18,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,58,58,0,0,'X(58)','',0,'',0,0,'' )
,('APVEN4','MM',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','MM',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','MM',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN4','MM',4,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVEN4','MM',5,'NUMERO COMPONENTE RIGA (CONF. MISTE)',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN4','MM',6,'TIPO RIGA = "M"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','MM',7,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','MM',8,'COD.BREVE-DEVE ESSERE SEMPRERICODIFICATO',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','MM',9,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','MM',10,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN4','MM',11,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APVEN4','MM',12,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','MM',13,'FLAG CONFEZIONE MISTA ( /1/2)',3,'FLGCFM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','MM',18,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVEN4','MM',19,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN4','MM',20,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN4','MM',21,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN4','MM',22,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APVEN4','MM',23,'QUANTITA RIGA (VENDITA + OMAGGI)',3,'QTABOL',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','MM',24,'QUANTITA VENDITA',3,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','MM',25,'QUANTITA OMAGGI',3,'QTAOMA',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','MM',26,'QUANTITA PERDITA DI TRASPORTO',3,'QTAPRT',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','MM',27,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('APVEN4','MM',41,'PREZZO UNITARIO CONFEZIONE MISTA',3,'PRZCFM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('APVEN4','MM',49,'PREZZO COMPONENTE CONFEZIONE MISTA',3,'PRZCMP',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('APVEN4','MM',53,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','MM',54,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('APVEN4','MM',55,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVEN4','MM',56,'ULTIMO COMPONENTE CONFEZIONE (X/ )',3,'FLGULT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','MM',57,'ULTIMO COMPONENTE TIPO "2" (X/ )',3,'FLGUL2',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','MM',58,'IMPORTO TOTALE RIGA (USATO POCO)',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,2,'S9(11) COMP-3','S9(9)V99 COMP-3',0,'',0,0,'' )
,('APVEN4','MM',59,'TIPO CONFEZIONE MISTA (C/X)',3,'TIPCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','MM',60,'TABELLA RECIPIENTI MULTIPLI',3,'TABREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','MM',61,'ELEMENTO RECIPIENTE',4,'ELEREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',4,'',0,0,'' )
,('APVEN4','MM',62,'CODICE RECIPIENTE',5,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,6,0,0,'XX COMP-X','',0,'',0,0,'' )
,('APVEN4','MM',63,'NUMERO RECIPIENTI',5,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,1,3,0,0,'X COMP-X','',0,'',0,0,'' )
,('APVEN4','MM',64,'QTA TAGLIO SFUSI',3,'QTATAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,4,1,0,'99V9 COMP-3','',0,'',0,0,'' )
,('APVEN4','VV',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','VV',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','VV',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN4','VV',4,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVEN4','VV',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN4','VV',6,'TIPO RIGA = "V"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','VV',7,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','VV',8,'COD.BREVE-DEVE ESSERE SEMPRERICODIFICATO',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','VV',9,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN4','VV',10,'ANNATA ARTICOLO (ZERI)',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVEN4','VV',11,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APVEN4','VV',12,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN4','VV',13,'PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN4','VV',16,'QUANTITA'' CONSEGNATA',3,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','VV',17,'QUANTITA'' RESA',3,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','VV',18,'CAUZIONE UNITARIA',3,'CAUUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('APVEN4','VV',19,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,85,85,0,0,'X(85)','',0,'',0,0,'' )
,('APVEN5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN5','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN5','01',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN5','01',4,'RIGA BOLLA DI RIFERIMENTO',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN5','01',6,'TIPO COMMENTO',3,'TIPCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVEN5','01',11,'RIGA COMMENTO',3,'NUMRGA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN5','01',12,'RIGA DI TESTO',2,'RTESTO',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVEN5','01',13,'FILLER',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('APVEN6','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN6','01',2,'CHIAVE CLIFOR+DATA+NUMERO',2,'KEY002',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN6','01',3,'NOMINATIVO/SOCIO/CLIENTE/TABELLATO',3,'FLAGSN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVEN6','01',4,'CLIENTE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVEN6','01',5,'CHIAVE PRINCIPALE',3,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN6','01',6,'NUMERO INTERNO BOLLETTA',4,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN9','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN9','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,3,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN9','01',3,'NUMERO INTERNO BOLLA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVEN9','01',4,'RIGA BOLLA DI RIFERIMENTO',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN9','01',5,'NUMERO COMPONENTE CONFEZIONE MISTA',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN9','01',6,'PROGRESSIVO LOTTO',3,'NUMLOT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVEN9','01',7,'CHIAVE PER ARTICOLO/LOTTO',2,'KEY003',0,0,1,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVEN9','01',8,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVEN9','01',9,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVEN9','01',10,'LOTTO SPEDITO',3,'LOTTOS',0,1,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVEN9','01',11,'FILLER A SPAZI PER POSSIBILI AMPLIAMENTI',3,'SPACES',0,2,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('APVEN9','01',12,'QUANTITA'' LOTTO',2,'QTALOT',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('APVEN9','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('APVENE','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENE','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENE','01',3,'NUMERO INTERNO BOLLA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVENE','01',4,'NUMERO MOVIMENTO ERGA OMNES GENERATO',2,'NUMMEO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVENE','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVENL','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENL','01',2,'NUMERO INTERNO BOLLETTA AV2000',2,'NUMBOL',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVENL','01',3,'NUMERO ORDINE SU STORE360',2,'NUMORD',0,1,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVENS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENS','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENS','01',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVENS','01',4,'TIMESTAMP EMISSIONE SCONTRINO FISCALE',2,'TSSFIS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENS','01',5,'DATA EMISSIONE SCONTRINO FISCALE',3,'DDSFSI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVENS','01',6,'ORA EMISSIONE SCONTRINO FISCALE',3,'HHSFSI',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APVENS','01',7,'CODICE REGISTRATORE DI CASSA',2,'REGCAS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVENU','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENU','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENU','01',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVENU','01',4,'ASPETTO ESTERIORE DEI BENI',2,'ASPETT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVENU','01',5,'CODICE TRASPORTATORE',2,'CODTRA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APVENU','01',6,'CODICE PORTO',2,'CODPOR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVENU','01',7,'NUMERO FATTURA ACCOMPAGNATORIA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APVENU','01',8,'FATTURA O BOLLA ACCOMPAGNATORIA (F/B)',2,'FATBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',9,'FATTURA CLIENTE (S/N)',2,'FATCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',10,'PROVVIGIONI CAPI AREA ESTRATTE (S)',2,'EXTPRC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',11,'CODICE NAZIONE SOGGETTO',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVENU','01',12,'BOLLETTA PAGATA S/N',2,'BOLPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',13,'NUMERO REGISTRAZIONE CONTAB. NO PAGAM.',2,'REGNPG',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVENU','01',14,'PAGATO IN EURO',2,'PAGEUR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,11,2,0,'9(8)V99 COMP-3','',0,'',0,0,'' )
,('APVENU','01',15,'PAGATO IN LIRE',2,'PAGLIR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('APVENU','01',16,'RESTO IN EURO',2,'RESEUR',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVENU','01',17,'RESTO IN LIRE',2,'RESLIR',0,0,0,0,0,0,0,0,0,0,'',1,1,5,10,0,0,'S9(9) COMP-3','',0,'',0,0,'' )
,('APVENU','01',18,'IMPORTO PAGATO DAL CLIENTE',2,'PAGCLI',0,0,0,0,0,0,0,0,0,0,'',1,1,9,11,2,0,'S9(7)V99','',0,'',0,0,'' )
,('APVENU','01',19,'S=TRASMESSA DAL PUNTO VENDITA REMOTO',2,'FLGTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',20,'BARCODE PER COLLEGAMENTO DOCUMENTALE',2,'BARCOD',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVENU','01',21,'CODICE FIDELITY CARD',2,'COD-FC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APVENU','01',22,'FLAG ORDINE/BOLLA (O/B)',2,'FLAGOB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',24,'FIDELITY CARD GESTITA A PUNTI (S/N)',2,'FLGPUN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',25,'ATTRIBUTI STATISTICI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENU','01',26,'CODICE ATTRIBUTO',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('APVENU','01',27,'S=BOLLETTA NON REVISIONABILE',2,'FLNORV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',28,'BLOCCATO PER LA SPEDIZIONE (S)',2,'FLSPED',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENU','01',29,'CODICE LOTTERIA SCONTRINO FISCALE',2,'CHECUL',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVENU','01',30,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,123,123,0,0,'X(123)','',0,'',0,0,'' )
,('APVENV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENV','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENV','01',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVENV','01',4,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVENV','01',14,'RAGIONE SOCIALE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVENV','01',15,'INDIRIZZO',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVENV','01',16,'CAP',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APVENV','01',17,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('APVENV','01',18,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVENV','01',19,'CODICE DESTINATARIO',2,'CODDES',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVENV','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,104,104,0,0,'X(104)','',0,'',0,0,'' )
,('APVENZ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENZ','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENZ','01',3,'NUMERO INTERNO BOLLETTA',3,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'APVEN1',1,1,'' )
,('APVENZ','01',4,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVENZ','01',5,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVENZ','01',6,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENZ','01',10,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENZ','01',11,'COD.BREVE-DEVE ESSERE SEMPRERICODIFICATO',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVENZ','01',12,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'AARTI1',1,1,'' )
,('APVENZ','01',13,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVENZ','01',14,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENZ','01',15,'FLAG PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENZ','01',18,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVENZ','01',19,'FLAG CONFEZIONE MISTA ( /1/2)',3,'FLGCFM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENZ','01',24,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'ATBAAI',1,1,'' )
,('APVENZ','01',25,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVENZ','01',26,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVENZ','01',27,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'ATBACZ',1,1,'' )
,('APVENZ','01',28,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('APVENZ','01',29,'QUANTITA RIGA (VENDITA + OMAGGI)',3,'QTABOL',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',30,'QUANTITA VENDITA',3,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',31,'QUANTITA OMAGGI',3,'QTAOMA',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',32,'QUANTITA PERDITA DI TRASPORTO',3,'QTAPRT',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',33,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('APVENZ','01',47,'PREZZO UNITARIO CONFEZIONE MISTA',3,'PRZCFM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('APVENZ','01',55,'PREZZO COMPONENTE CONFEZIONE MISTA',3,'PRZCMP',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('APVENZ','01',59,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENZ','01',60,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('APVENZ','01',61,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APVENZ','01',62,'ULTIMO COMPONENTE CONFEZIONE (X/ )',3,'FLGULT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENZ','01',63,'ULTIMO COMPONENTE TIPO "2" (X/ )',3,'FLGUL2',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENZ','01',64,'IMPORTO TOTALE RIGA (USATO POCO)',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,2,'S9(11) COMP-3','S9(9)V99 COMP-3',0,'',0,0,'' )
,('APVENZ','01',66,'TIPO CONFEZIONE MISTA (C/X)',3,'TIPCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENZ','01',67,'TABELLA RECIPIENTI MULTIPLI',3,'TABREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENZ','01',68,'ELEMENTO RECIPIENTE',4,'ELEREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',4,'',0,0,'' )
,('APVENZ','01',69,'CODICE RECIPIENTE',5,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,6,0,0,'XX COMP-X','',0,'',0,0,'' )
,('APVENZ','01',70,'NUMERO RECIPIENTI',5,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,1,3,0,0,'X COMP-X','',0,'',0,0,'' )
,('APVENZ','01',71,'QTA TAGLIO SFUSI',3,'QTATAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,4,1,0,'99V9 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',72,'QUANTITA'' CONSEGNATA VUOTI',3,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',73,'QUANTITA'' RESA VUOTI',3,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',74,'CODICE MANIPOLAZIONI COMMERCIALIZZAZIONE',3,'MANCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APVENZ','01',75,'QUANTITA'' PER CALCOLO IMPORTO',3,'QTAIMP',0,0,0,0,0,0,0,0,0,0,'',1,1,8,10,2,0,'S9(6)V99','',0,'',0,0,'' )
,('APVENZ','01',76,'PREZZO PER CALCOLO IMPORTO',3,'PREIMP',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,5,0,'S9(6)V9(5)','',0,'',0,0,'' )
,('APVENZ','01',77,'PUNTI MOVIMENTATI SU FIDELITY CARD',3,'PUNTIF',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('APVENZ','01',78,'ESCLUSO DA PUNTI FIDELITY CARD (S)',3,'NO-PUN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVENZ','01',79,'ATTRIBUTI STATISTICI',3,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVENZ','01',80,'CODICE ATTRIBUTO',4,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('APVENZ','01',81,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,44,44,0,0,'X(44)','',0,'',0,0,'' )
,('APVENZ','01',82,'ID PRODOTTO REGISTRO VITIVINICOLO',3,'IDPROD',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,0,'9(13)','',0,'',0,0,'' )
,('APVENZ','01',83,'CAMPO AGGIUNTO PER ERRORE E NON USATO',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,13,13,0,0,'X(13)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVHT1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT1','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT1','01',3,'IDENTIFICATIVO VENDITA',3,'IDVEND',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT1','01',4,'MAGAZZINO',4,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVHT1','01',5,'ID SESSIONE',4,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVHT1','01',6,'ID SESSIONE ALFANUMERICO',4,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APVHT1','01',7,'A/B/C',4,'FLGCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVHT1','01',8,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVHT1','01',9,'ANNATA (PUSI FUTURI PER ADESSO A ZERO)',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHT1','01',10,'CODICE RECIPIENTE',3,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHT1','01',11,'DATI RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT1','01',12,'QUANTITA'' ARTICOLO',3,'QTAART',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APVHT1','01',13,'DESCRIZIONE ARTICOLO',3,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVHT1','01',14,'NUMERO RECIPIENTI',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHT1','01',15,'IMPORTO',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APVHT1','01',16,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVHT2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT2','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT2','01',3,'IDENTIFICATIVO VENDITA',3,'IDVEND',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT2','01',4,'MAGAZZINO',4,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVHT2','01',5,'ID SESSIONE',4,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVHT2','01',6,'ID SESSIONE ALFANUMERICO',4,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APVHT2','01',7,'A/B/C',4,'FLGCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVHT2','01',8,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVHT2','01',9,'ANNATA (PUSI FUTURI PER ADESSO A ZERO)',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHT2','01',10,'CODICE RECIPIENTE',3,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHT2','01',11,'PREZZO DA BARCODE (ZERO PER ART.NORMALI)',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',0,'',0,0,'' )
,('APVHT2','01',12,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVHT2','01',13,'DATI RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHT2','01',14,'QUANTITA'' ARTICOLO',3,'QTAART',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APVHT2','01',15,'DESCRIZIONE ARTICOLO',3,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVHT2','01',16,'NUMERO RECIPIENTI',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHT2','01',17,'IMPORTO',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APVHT2','01',18,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,94,94,0,0,'X(94)','',0,'',0,0,'' )
,('APVHTM','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHTM','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHTM','01',3,'ID SESSIONE',3,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVHTM','01',4,'STRINGA ID SESSIONE',3,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APVHTM','01',5,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVHTM','01',6,'DATI RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVHTM','01',7,'ENTRY POINT (STATO)',3,'ENTRYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVHTM','01',8,'CODICE AZIENDA',3,'CODAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVHTM','01',9,'CODICE MAGAZZINO',3,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVHTM','01',10,'REDEFINES PER HTML',3,'STRMAG',0,0,0,0,0,0,0,0,0,0,'S',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVHTM','01',11,'ID CLIENTE CORRENTE (A/B/C)',3,'CURCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVHTM','01',12,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVHTM','01',13,'DESCRIZIONE ARTICOLO',3,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVHTM','01',14,'QUANTITA'' ARTICOLO',3,'QTAART',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APVHTM','01',15,'NUMERO RECIPIENTI',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHTM','01',16,'CODICE RECIPIENTE',3,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVHTM','01',17,'PREZZO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',0,'',0,0,'' )
,('APVHTM','01',18,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,420,420,0,0,'X(420)','',0,'',0,0,'' )
,('APVI78','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVI78','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVI78','01',3,'CODICE VITIGNO',3,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVI78','01',4,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVI78','01',5,'SUPERFICIE',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('APVI78','01',6,'PREZZO DI VENDITA',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APVI78','01',7,'QUANTITA'' CONFERITA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('APVI78','01',8,'RESA MEDIA INSERITA MANUALMENTE',2,'RESMAN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVI78','01',9,'PREZZO MEDIO INSERITO MANUALMENTE',2,'PREMAN',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,5,0,'999V9(5)','',0,'',0,0,'' )
,('APVI78','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVINC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVINC','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVINC','01',3,'CODICE MAGAZZINO',3,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVINC','01',4,'DATA INCASSO',3,'DTAINC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVINC','01',5,'DATI RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVINC','01',6,'QUANTITA'' ARTICOLO',3,'QTAART',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APVINC','01',7,'DESCRIZIONE ARTICOLO',3,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVINC','01',8,'NUMERO RECIPIENTI',3,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVINC','01',9,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,19,19,0,0,'X(19)','',0,'',0,0,'' )
,('APVINC','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,26,26,0,0,'X(26)','',0,'',0,0,'' )
,('APVL79','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVL79','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVL79','01',3,'CODICE VITIGNO',3,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVL79','01',4,'PREZZO PER GRADO',2,'PREGRA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('APVL79','01',5,'MAGGIORAZIONE AL QUINTALE SE UVA DOC',2,'MAGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVL79','01',6,'MAGGIORAZIONE AL QUINTALE SE UVA IGT',2,'MAGIGT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('APVL79','01',7,'PREZZO A GRADO MECCANICA',2,'PREMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('APVL79','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,93,93,0,0,'X(93)','',0,'',0,0,'' )
,('APVNDS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVNDS','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVNDS','01',3,'NUMERO VALORE',3,'NUMVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVNDS','01',4,'DESCRIZIONE VALORE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVNDS','01',5,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVNDS','01',6,'INTESTAZIONE ALLINEAMENTO DX',2,'DESINT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('APVNDS','01',7,'VALORE OBBLIGATORIO S/N',2,'VALOBB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVNDS','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,247,247,0,0,'X(247)','',0,'',0,0,'' )
,('APVOLD','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVOLD','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVOLD','01',3,'CHIAVE DI ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVOLD','01',4,'DATA INIZIO GESTIONE VUOTI A CRONISTORIA',2,'DTAINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVOLD','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,178,178,0,0,'X(178)','',0,'',0,0,'' )
,('APVQ01','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ01','01',2,'CHIAVE SECONDARIA',2,'KEY002',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ01','01',3,'PRODUZIONE TRAVASATA',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('APVQ01','01',9,'DATA',3,'DTAMOV',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVQ01','01',10,'CHIAVE PRINCIPALE',3,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ01','01',11,'NUMERO',4,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVQ01','01',12,'NUMERO RIGA (ZERO PER SUCCHI)',4,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVQ01','01',13,'NUMERO CONFEZIONAMENTO',2,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('APVQ01','01',14,'CODICE ARTICOLO CONFEZIONATO',2,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,0,'9(11)','',0,'',0,0,'' )
,('APVQ01','01',15,'QUANTITA''',2,'NUMPAC',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APVQ01','01',16,'CODICE MAGAZZINO',2,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVQ01','01',17,'NUMERO PRODUZIONE CREATA SU AV2000',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('APVQ01','01',18,'PACCHETTI UTILIZZATI',2,'PACUTI',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APVQ01','01',19,'LOTTO CONFEZIONAMENTO VECCHIO OBSOLETO',2,'LOTCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVQ01','01',20,'LOTTO AGGIUNTIVO VECCHIO OBSOLETO',2,'LOTAGG',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APVQ01','01',21,'DATA SCADENZA',2,'DTASCA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVQ01','01',22,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVQ01','01',23,'LOTTO CONFEZIONATO NUOVO LUNGHEZZA PIENA',2,'LOTTOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVQ01','01',24,'LOTTO AGGIUNTIVO NUOVO LUNGHEZZA PIENA',2,'LOTTOA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVQ02','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ02','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ02','01',3,'NUMERO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVQ02','01',4,'NUMERO RIGA (ZERO PER SUCCHI)',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVQ02','01',5,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVQ02','01',6,'CODICE INGREDIENTE',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,0,'9(11)','',0,'',0,0,'' )
,('APVQ02','01',7,'QUANTITA',2,'QTAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,2,0,'9(8)V99','',0,'',0,0,'' )
,('APVQ02','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,61,61,0,0,'X(61)','',0,'',0,0,'' )
,('APVQ03','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ03','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ03','01',3,'NUMERO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVQ03','01',4,'NUMERO RIGA (ZERO PER SUCCHI)',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVQ03','01',5,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVQ03','01',6,'CODICE PRODOTTO',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,0,'9(11)','',0,'',0,0,'' )
,('APVQ03','01',7,'QUANTITA',2,'QTASCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,2,0,'9(8)V99','',0,'',0,0,'' )
,('APVQ03','01',8,'QUANTITA'' SFRIDI',2,'QTASFR',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,2,0,'9(8)V99','',0,'',0,0,'' )
,('APVQ03','01',9,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVQ03','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,47,47,0,0,'X(47)','',0,'',0,0,'' )
,('APVQ04','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ04','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ04','01',3,'CODICE ARTICOLO CONFEZIONATO',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,0,'9(11)','',0,'',0,0,'' )
,('APVQ04','01',4,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVQ04','01',5,'CODICE ARTICOLO AV2000',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVQ04','01',6,'FATTORE CONVERSIONE',2,'FATCON',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,5,0,'9(5)V9(5)','',0,'',0,0,'' )
,('APVQ04','01',7,'CODICE ARTICOLO PACCHETTO',2,'CODPAC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVQ04','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,19,19,0,0,'X(19)','',0,'',0,0,'' )
,('APVQ05','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ05','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ05','01',3,'CODICE INGREDIENTE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,0,'9(11)','',0,'',0,0,'' )
,('APVQ05','01',4,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVQ05','01',5,'CODICE ARTICOLO AV2000',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVQ05','01',6,'FATTORE CONVERSIONE',2,'FATCON',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,5,0,'9(5)V9(5)','',0,'',0,0,'' )
,('APVQ05','01',7,'PERCENTUALE PERDITE E SFRIDI',2,'PSFRID',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APVQ05','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,29,29,0,0,'X(29)','',0,'',0,0,'' )
,('APVQ06','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ06','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ06','01',3,'CODICE PRODOTTO SFUSO',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,0,'9(11)','',0,'',0,0,'' )
,('APVQ06','01',4,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVQ06','01',5,'CODICE ARTICOLO AV2000',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVQ06','01',6,'FATTORE CONVERSIONE',2,'FATCON',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,5,0,'9(5)V9(5)','',0,'',0,0,'' )
,('APVQ06','01',7,'PESRCENTUALE PERDITE E SFRIDI',2,'PSFRID',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('APVQ06','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,29,29,0,0,'X(29)','',0,'',0,0,'' )
,('APVQ07','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ07','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ07','01',3,'CODICE ARTICOLO AV2000',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVQ07','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVQ08','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ08','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ08','01',3,'NUMERO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APVQ08','01',4,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVQ08','01',5,'CODICE VASCA',2,'CODVAS',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVQ08','01',6,'DESCRIZIONE VASCA',2,'DESVAS',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVQ08','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVQ09','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ09','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVQ09','01',3,'CODICE CAUSALE PROGRAMMA VASCHE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,0,'9(11)','',0,'',0,0,'' )
,('APVQ09','01',4,'DESCRIZIONE CAUSALE PROGRAMMA VASCHE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVQ09','01',5,'CAUSALE CARICO MAGAZZINO',2,'CAUCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('APVQ09','01',6,'CAUSALE SCARICO MAGAZZINO',2,'CAUSCA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('APVRAM','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRAM','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRAM','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVRAM','01',4,'TABELLA LEGENDA PER ATTRIBUTI VIGNETI',2,'LEGATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',6,'',0,0,'' )
,('APVRAM','01',5,'NUMERO ATTRIBUTO VIGNETO',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVRAM','01',6,'CODICE ATTRIBUTO VIGNETO',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVRAM','01',7,'CARATTERE ATTRIBUTO VIGNETO',3,'CARATT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRAM','01',8,'DESCRIZIONE ATTRIBUTO VIGNETO',3,'DESATT',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('APVRAM','01',9,'TABELLA LEGENDA PER NUMERI DEFINIBILI',2,'LEGNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',2,'',0,0,'' )
,('APVRAM','01',10,'NUMERO NUMERO DEFINIBILE',3,'NUMNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVRAM','01',11,'VALORE NUMERO DEFINIBILE',3,'VALNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('APVRAM','01',12,'CARATTERE PER NUMERO DEFINIBILE',3,'CARNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRAM','01',13,'DESCRIZIONE PER NUMEROD EFINIBILE',3,'DESNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('APVRAM','01',14,'DATI PER LEGENDA SU SCELTA VENDEMMIALE',2,'LEGSCV',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRAM','01',15,'UVA DOC CON SCELTA VENDEMMIALE IGT',3,'UVADOC',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('APVRAM','01',16,'ANNO IMPIANTO',3,'ANNIMP',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('APVRAM','01',17,'CARATTERE PER SCELTA VENDEMMIALE',3,'CARSCV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRAM','01',18,'DESCRIZIONE PER SCELTA VENDEMMIALE',3,'DESSCV',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('APVRAM','01',19,'TAB. LEGENDA PER ATTRIBUTI VIGNETI (2)',2,'LEGAT1',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',6,'',0,0,'' )
,('APVRAM','01',20,'NUMERO ATTRIBUTO VIGNETO',3,'NUMAT1',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVRAM','01',21,'CODICE ATTRIBUTO VIGNETO',3,'CODAT1',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVRAM','01',22,'CARATTERE ATTRIBUTO VIGNETO',3,'CARAT1',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRAM','01',23,'DESCRIZIONE ATTRIBUTO VIGNETO',3,'DESAT1',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('APVRAM','01',24,'LEGENDA FASCE DI RISPETTO',2,'LEGRIS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRAM','01',25,'CARATTERE IDENTIFICATIVO FASCE RISPETTO',3,'CARRIS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRAM','01',26,'DESCRIZIONE FASCE RISPETTO',3,'DESRIS',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('APVRAM','01',27,'VIGNETI CON RESA MASSIMA ASSEGNATA',2,'LEGMAX',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRAM','01',28,'CARATTERE INDICATORE RESA MASSIMA',3,'CARMAX',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRAM','01',29,'DESCRIZIONE INDICATORE RESA MASSIMA',3,'DESMAX',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APVRCM','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRCM','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRCM','01',3,'CODICE PARAMETRI VALORIZZAZIONE',3,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVRCM','01',4,'DESCRIZIONE PARAMETRI VALORIZZAZIONE',2,'DESPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVRCM','01',6,'TIPO VALORIZZAZIONE',2,'TIPVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRCM','01',7,'CODICI SALDI PER CALCOLO COSTO MEDIO',2,'SALACQ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',20,'',0,0,'' )
,('APVRCM','01',8,'AREA MAGAZZINI PER CALCOLO COS MED E UC',2,'AREAMA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRCM','01',9,'MAGAZZINI PER CALCOLO COSTO MEDIO',3,'MAGCOS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',50,'',0,0,'' )
,('APVRGG','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRGG','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRGG','01',3,'CODICE PARAMETRI VALORIZZAZIONE',3,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVRGG','01',4,'DESCRIZIONE PARAMETRI VALORIZZAZIONE',2,'DESPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APVRGG','01',5,'TIPO VALORIZZAZIONE',2,'TIPVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVRGG','01',6,'CAUSALI SALDI PER CALCOLO COSTO MEDIO',2,'SALACQ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',8,'',0,0,'' )
,('APVRGG','01',7,'AREA MAGAZZINI PER CALCOLO COS MED E UC',2,'AREAMA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVRGG','01',8,'MAGAZZINI PER CALCOLO COSTO MEDIO/U.C.',3,'MAGCOS',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',20,'',0,0,'' )
,('APVRGG','01',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,901,901,0,0,'X(901)','',0,'',0,0,'' )
,('APVS12','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVS12','01',2,'CODICE TABELLA',2,'CODTAB',1,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('APVS12','01',3,'CODICE SCELTA',2,'CODSCE',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('APVS12','01',4,'PENALITA'' / PREMIO A KG',2,'PENPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,8,4,0,'S99V9(4)','',0,'',0,0,'' )
,('APVUO1','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVUO1','00',2,'CHIAVE REGISTRO+DATA+NUMERO',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVUO1','00',3,'TIPO SOGGETTO (PER ORA GESTITO SOLO "C")',3,'FLGCFS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVUO1','00',8,'CODICE SOCGGETTO',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVUO1','00',9,'SPAZI',3,'SPACES',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVUO1','00',10,'RIFERIMENTO DOCUMENTO RESO VUOTI',2,'RIFDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVUO1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVUO1','01',2,'CHIAVE REGISTRO+DATA+NUMERO',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVUO1','01',3,'TIPO SOGGETTO (PER ORA GESTITO SOLO "C")',3,'FLGCFS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVUO1','01',8,'CODICE SOCGGETTO',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVUO1','01',9,'CODICE VUOTO',3,'CODVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVUO1','01',10,'QUANTITA'' RESA',2,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,1,4,8,0,0,'S9(7) COMP-3','',0,'',0,0,'' )
,('APVUO1','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,11,11,0,0,'X(11)','',0,'',0,0,'' )
,('APVUO2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVUO2','01',2,'CHIAVE REGISTRO+DATA+NUMERO',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVUO2','01',3,'TIPO SOGGETTO (PER ORA GESTITO SOLO "C")',3,'FLGCFS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APVUO2','01',8,'CODICE SOCGGETTO',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('APVUO2','01',9,'CODIC EVUOTO (SPAZI PER RIFDOC)',3,'CODVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVUO2','01',10,'RIFERIMENTO DOCUMENTO RESO VUOTI',2,'RIFDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APVUO2','01',11,'QUANTITA'' RESA',2,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,1,4,8,0,0,'S9(7) COMP-3','',0,'',0,0,'' )
,('APVUO2','01',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,59,59,0,0,'X(59)','',0,'',0,0,'' )
,('APVVLR','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLR','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLR','01',3,'TIPO RECORD = "LR"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVVLR','01',4,'CODICE RAGRUPPAMENTO',3,'CODRAG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('APVVLR','01',5,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('APVVLR','01',6,'DATA INIZIALE',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVVLR','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLR','01',8,'ANNO INIZIALE',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVVLR','01',9,'MESE INIZIALE',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLR','01',10,'GIORNO INIZIALE',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLR','01',11,'DATA FINALE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVVLR','01',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLR','01',13,'ANNO FINALE',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVVLR','01',14,'MESE FINALE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLR','01',15,'GIORNO FINALE',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLR','01',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,270,270,0,0,'X(270)','',0,'',0,0,'' )
,('APVVLV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLV','01',3,'TIPO RECORD = "LV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVVLV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVVLV','01',5,'DATA INIZIALE',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVVLV','01',6,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLV','01',7,'ANNO INIZIALE',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVVLV','01',8,'MESE INIZIALE',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLV','01',9,'GIORNO INIZIALE',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLV','01',10,'DATA FINALE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('APVVLV','01',11,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVLV','01',12,'ANNO FINALE',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APVVLV','01',13,'MESE FINALE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLV','01',14,'GIORNO FINALE',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APVVLV','01',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,470,470,0,0,'X(470)','',0,'',0,0,'' )
,('APVVVV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVVV','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APVVVV','01',3,'TIPO RECORD = "VV"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APVVVV','01',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APVVVV','01',5,'VEND. VINIFICAZIONE GESTITA DA VENDITE',2,'VENVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('APVVVV','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,483,483,0,0,'X(483)','',0,'',0,0,'' )
,('APWDOG','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APWDOG','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APWDOG','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('APWDOG','01',4,'CODICE',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APWDOG','01',5,'PASSWORD',2,'PASSWD',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APXR02','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXR02','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXR02','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APXR02','01',4,'QUINTALI OLTRE RESA MASSIMA',3,'OLTRES',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APXR02','01',5,'PERCENTUALE PENALE',2,'PENPER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('APXX00','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXX00','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXX00','01',3,'ID SESSIONE',3,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXX00','01',4,'STRINGA ID SESSIONE',3,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APXX00','01',5,'DATI RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXX00','01',6,'ENTRY POINT ENTRANTE',3,'ENTRYP',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APXX00','01',7,'LOCAZIONE DI LAVORO',3,'LOCAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APXX00','01',8,'CODICE AZIENDA',3,'CODAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('APXX00','01',9,'DESCRIZIONE AZIENDA',3,'DESAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('APXX00','01',10,'UTENTE',3,'UTENTE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('APXX00','01',11,'STRINGA BARCODE SCHEDA VIAGGIO',3,'STRSKV',0,0,0,0,0,0,0,0,0,0,'',4,0,22,22,0,0,'X(22)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('APXX00','01',12,'NUMERO SCHEDA VIAGGIO',3,'NUMSKV',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXX00','01',13,'NUMERO ORDINE',3,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXX00','01',14,'FUNZIONE OCRRENTE',3,'CURFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APXX00','01',15,'TEST PER VALORE P=PICKING',88,'ISPICK',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'"P"','',0,'',0,0,'' )
,('APXX00','01',16,'TEST PER VALORE U=UNLOCK ORDINE',88,'ISULCK',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'"U"','',0,'',0,0,'' )
,('APXX00','01',17,'DESCRIZIONE FUNZIONE',3,'DESFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,19,19,0,0,'X(19)','',0,'',0,0,'' )
,('APXX00','01',18,'CODICE A BARRE LETTO',3,'STRCBR',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('APXX00','01',19,'REFERENZA LETTA',3,'REFLET',0,0,0,0,0,0,0,0,0,0,'',4,0,76,76,0,0,'X(76)','',0,'',0,0,'' )
,('APXX00','01',20,'ARTICOLO LETTO',3,'ARTLET',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APXX00','01',21,'ANNATA LETTA',3,'ANNLET',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APXX00','01',22,'LOTTO LETTO',3,'LOTLET',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APXX00','01',23,'LETTURA LOTTO MANUALE ( /S)',3,'LOTMAN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APXX00','01',24,'NUMERO SELEZIONI ANNO/LOTTO',3,'NUMSEL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APXX00','01',25,'QTA LOTTO IMPUTATA',3,'PREQTL',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXX00','01',26,'LOTTO IMPUTATO',3,'PRELOT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APXX00','01',27,'ANNATA IMPUTATO',3,'PREANN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APXX00','01',28,'MESSAGGIO INFORMATIVO',3,'MESSAG',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('APXX00','01',29,'ERRORE APPLICAZIONE NON RECUPERABILE',3,'SEVERE',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('APXX00','01',30,'ERRORE GESTIBILE',3,'ERRORE',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('APXX00','01',31,'ORDINE IMPUTATO',3,'PREORD',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXX00','01',32,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,59,59,0,0,'X(59)','',0,'',0,0,'' )
,('APXXAL','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXAL','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXAL','01',3,'ID SESSIONE',3,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXXAL','01',4,'STRINGA ID SESSIONE',3,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APXXAL','01',5,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APXXAL','01',6,'LOTTO',3,'NLOTTO',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APXXAL','01',7,'DISPONIBILITA''',2,'TOTDIS',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXXAL','01',8,'QTA. SCHEDA DA ASSEGNARE (DA ORDINI)',2,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXXAL','01',9,'QTA. ASSEGNATA',2,'QTAASS',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXXAL','01',10,'QTA. FABBISOGNO',2,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXXAO','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXAO','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXAO','01',3,'ID SESSIONE',3,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXXAO','01',4,'STRINGA ID SESSIONE',3,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APXXAO','01',5,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APXXAO','01',6,'ANNATA ORDINE',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APXXAO','01',7,'NUMERO ORDINE',3,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXXAO','01',8,'QTA. DA ASSEGNARE',2,'QTADAA',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXXAS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXAS','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXAS','01',3,'ID SESSIONE',3,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXXAS','01',4,'STRINGA ID SESSIONE',3,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APXXAS','01',5,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APXXAS','01',6,'ANNATA ORDINE',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('APXXAS','01',7,'QTA. SCHEDA DA ASSEGNARE (DA ORDINI)',2,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXXAS','01',8,'QTA. ASSEGNATA',2,'QTAASS',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('APXXAS','01',9,'REFERENZA',2,'DESREF',0,0,0,0,0,0,0,0,0,0,'',4,0,76,76,0,0,'X(76)','',0,'',0,0,'' )
,('APXXAS','01',10,'CODICE BREVE ARTICOLO ALLIN. A SX',2,'CODABB',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APXXAS','01',11,'DESCRIZIONE BREVE ARTICOLO',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('APXXAS','01',12,'MASSIMO NUMERO DI LOTTI AMMESSI',2,'MAXLOT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APXXAS','01',13,'NUMERO DI LOTTI CARICATI',2,'NUMLOT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('APXXAS','01',14,'TABELLA LOTTI PRELEVATI',2,'TABLOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXAS','01',15,'ELEMENTO LOTTO PRELEVATO',3,'ELELOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',90,'',0,0,'' )
,('APXXAS','01',16,'LOTTO',4,'LOTTOS',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('APXXAS','01',17,'QUANTITA'' ASSEGNATA AL LOTTO',4,'QTALOT',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('APXXAS','01',18,'FLAG ARTICOLO SU PIU'' ORDINI (S)',2,'PIUORD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('APXXAS','01',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,122,122,0,0,'X(122)','',0,'',0,0,'' )
,('APXXID','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXID','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APXXID','01',3,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXXID','01',4,'ID SESSIONE',2,'ID-SES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('APXXID','01',5,'STRINGA ID SESSIONE',2,'STRSES',0,0,0,0,0,0,0,0,0,0,'S',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('APXXID','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('APZO13','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APZO13','01',2,'CODICE ZONA',2,'CODZON',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APZO13','01',3,'GRADO',2,'GRASCA',2,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APZO13','01',4,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,3,'9(5)','99V999',0,'',0,0,'' )
,('APZT27','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APZT27','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APZT27','01',3,'CODICE ZONA HIGH VALUE RECORD VARIAZIONI',3,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APZT27','01',4,'TIPI UVA 1/2/3/4/5/6',2,'ELETIP',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',6,'',0,0,'' )
,('APZT27','01',5,'IMPORTO AL QUINTALE',3,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,3,'9(6)','999V999',0,'',0,0,'' )
,('APZT27','01',6,'VARIAZIONI NEGATIVE',2,'ELENEG',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',6,'',0,0,'' )
,('APZT27','01',7,'VARIAZIONE NEGATIVA',3,'VARNEG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,3,'9(6)','999V999',0,'',0,0,'' )
,('APZT27','01',8,'VARIAZIONI POSITIVE',2,'ELEPOS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',6,'',0,0,'' )
,('APZT27','01',9,'VARIAZIONE POSITIVA',3,'VARPOS',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,3,'9(6)','999V999',0,'',0,0,'' )
,('APZT27','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,13,13,0,0,'X(13)','',0,'',0,0,'' )
,('APZU13','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APZU13','01',2,'CODICE ZONA',2,'CODZON',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APZU13','01',3,'CODICE UVA',2,'CODUVA',2,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APZU13','01',4,'GRADO',2,'GRASCA',3,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('APZU13','01',5,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,3,'9(5)','99V999',0,'',0,0,'' )
,('APZU27','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APZU27','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('APZU27','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APZU27','01',4,'CODICE ZONA',3,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('APZU27','01',5,'IMPORTO AL QUINTALE',2,'IMPQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,3,'9(6)','999V999',0,'',0,0,'' )
,('APZU27','01',6,'VARIAZIONE NEGEATIVA PER DECIMO DI GRADO',2,'VARNEG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,3,'9(6)','999V999',0,'',0,0,'' )
,('APZU27','01',7,'VARIAZIONE POSITIVA PER DECIMO DI GRADO',2,'VARPOS',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,3,'9(6)','999V999',0,'',0,0,'' )
,('APZU27','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('AQLIPC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AQLIPC','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AQLIPC','01',3,'CODICE SOCIO',3,'CODSOC',0,3,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AQLIPC','01',4,'CODICE UVA',3,'CODUVA',0,1,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('AQLIPC','01',5,'DA CONFERIRE IN BINS (S/ )',3,'FLGBIN',0,2,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AQLIPC','01',6,'QUINTALI PRENOTATI TOTALI',2,'QLITOT',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('AQLIPC','01',7,'QUINTALI PRENOTATI RITIRABILI',2,'QLIPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('AQLIPC','01',8,'FINITO DI CONFERIRE (Si/Rinunciato)',2,'FINCON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AQLIPC','01',9,'QUINTALI SCHEDA',2,'QLISCH',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AQLIPC','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,55,55,0,0,'X(55)','',0,'',0,0,'' )
,('AQUS16','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AQUS16','01',2,'CODICE UVA',2,'CODUVA',1,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('AQUS16','01',3,'CODICE SCELTA',2,'CODSCE',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AQUS16','01',4,'PREZZO A QUINTALE',2,'PREQLE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,3,0,'9(4)V999','',0,'',0,0,'' )
,('AQUS16','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('AR1604','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AR1604','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AR1604','01',3,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AR1604','01',4,'RIGA TESTO',2,'DESRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,116,116,0,0,'X(116)','',0,'',0,0,'' )
,('AR1604','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARAG09','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAG09','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAG09','01',3,'CODICE RAGRUPPAMENTO',3,'CODRAG',0,2,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAG09','01',4,'CODICE AGENTE',3,'CODAGE',0,1,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('ARAG09','01',5,'DESCRIZIONE RAGRUPPAMENTO',2,'DESRAG',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARAG09','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('ARAG12','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAG12','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAG12','01',3,'CODICE RAGRUPPAMENTO',3,'CODRAG',0,2,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAG12','01',4,'CODICE AGENTE',3,'CODAGE',0,1,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('ARAG12','01',5,'DESCRIZIONE RAGRUPPAMENTO',2,'DESRAG',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARAG12','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('ARAG16','RA',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAG16','RA',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAG16','RA',3,'TIPO RECORD = "RA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARAG16','RA',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('ARAG16','RA',5,'RAGRUPPAMENTI',2,'ELERAG',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',5,'',0,0,'' )
,('ARAG16','RA',6,'STABILIMENTO DA RAGRUPPARE',3,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAG16','RA',7,'CODICE SOCIO SU CUI RAGRUPPARE',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('ARAG16','RA',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAG29','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAG29','01',2,'CODICE TABELLA',2,'NUMTAB',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAG29','01',3,'ELEMENTO TABELLA',2,'ELETAB',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',24,'',0,0,'' )
,('ARAG29','01',4,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAG29','01',5,'CODICE VITIGNO',3,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAGIG','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAGIG','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAGIG','01',3,'CODICE RAGRUPPAMENTO',3,'CODRAG',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAGIG','01',4,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAGIG','01',5,'CHIAVE PER CODICE UVA',3,'KEY002',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAGIG','01',6,'CODICE UVA IGT',4,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAGRV','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAGRV','01',2,'CODICE',2,'CODICE',1,2,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('ARAGRV','01',3,'DESCRIZIONE',2,'DESCRI',0,1,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARAGRV','01',4,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARAGRV','01',5,'ATTRIBUTO',2,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',5,'',0,0,'' )
,('ARAGRV','01',6,'DOC SI/NO',2,'DOCSON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',7,'DA PIGIARE SI/NO',2,'PIGSON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',8,'CALCOLO VINACCE IMMEDIATO SI/NO',2,'VINSON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',9,'MASSA VOLUMICA MINIMA',2,'MASMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('ARAGRV','01',10,'TRASFORMAZIONE MOSTO IN VNF S/N',2,'TRASON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',11,'ACCETTA UVE DOC ANCHE SE RAG. NO DOC S/N',2,'FLGDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',12,'CONFLUISCE NEL REGISTRO',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAGRV','01',13,'REGISTRO COMMERCIALIZZAZIONE COLLEGATO',2,'REGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAGRV','01',14,'CODICE COMMERCIALIZZAZIONE COLLEGATO',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAGRV','01',15,'DESCRIZIONE PER BOLLATO (3 RIGHE)',2,'DESBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',3,'',0,0,'' )
,('ARAGRV','01',16,'GIORNI INTERVALLO SCARICO VINACCE',2,'GINTSV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAGRV','01',17,'GIORNI INTERVALLO PASS. MOSTO A VNF',2,'GINTMV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAGRV','01',18,'SCARICO AUTOMATICO VINACCE DA MOSTO S/N',2,'FLAGSV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',19,'PASSAGGIO AUTOMATICO MOSTO LT A VNF S/N',2,'FLAGMV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',20,'GIORNI INT. PASS. DA MOSTO KG A LT',2,'GINTKL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAGRV','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARAGRV','01',22,'ID FAMIGLIA UVE',2,'IDFUVE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,13,0,0,'9(13) COMP-3','',0,'',0,0,'' )
,('ARAGRV','01',23,'ID FAMIGLIA VINACCIA',2,'IDFVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,7,13,0,0,'9(13) COMP-3','',0,'',0,0,'' )
,('ARAGRV','01',24,'ID FAMIGLIA RASPI',2,'IDFRAS',0,0,0,0,0,0,0,0,0,0,'',1,0,7,13,0,0,'9(13) COMP-3','',0,'',0,0,'' )
,('ARAGRV','01',25,'ID FAMIGLIA VINACCIA+RASPI',2,'IDFVIR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,13,0,0,'9(13) COMP-3','',0,'',0,0,'' )
,('ARAGRV','01',26,'TABELLA OPERAZIONI VINIFICAZIONE AUTOM.',2,'TABOPE',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAGRV','01',27,'ELEMENTO',3,'ELEOPE',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',10,'',0,0,'' )
,('ARAGRV','01',28,'CODICE OPERAZIONE DI REGISTRO PIGI/SVIN',4,'CODOPE',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAGRV','01',29,'GIORNI DI INTERVALLO',4,'GG-OPE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAGRV','01',30,'ID FAMIGLIA OTTENUTA',4,'IDFOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,7,13,0,0,'9(13) COMP-3','',0,'',0,0,'' )
,('ARAGRV','01',31,'FLAG OTTIENI VINACCIA MECCANICA (X)',4,'MECVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',32,'FLAG OTTIENI RASPI MECCANICA (X)',4,'MECRAS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',33,'FLAG OTTIENI VINACCIA MANUALE (X)',4,'MANVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',34,'FLAG OTTIENI RASPI MANUALE (X)',4,'MANRAS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGRV','01',35,'FLAG OTTIENI VINACCIA+RASPI MANUALE (X)',4,'MANVIR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAGVI','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAGVI','01',2,'CODICE UVA BASE',2,'UVABAS',1,2,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAGVI','01',3,'CODICE UVA RAGRUPPATO',2,'UVARAG',2,1,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAGVI','01',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('ARAL16','RA',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAL16','RA',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAL16','RA',3,'TIPO RECORD = "RA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARAL16','RA',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('ARAL16','RA',5,'RAGRUPPAMENTI',2,'ELERAG',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',5,'',0,0,'' )
,('ARAL16','RA',6,'STABILIMENTO DA RAGRUPPARE',3,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAL16','RA',7,'CODICE SOCIO SU CUI RAGRUPPARE',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('ARAL16','RA',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAL27','RA',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAL27','RA',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAL27','RA',3,'TIPO RECORD = "RA"',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARAL27','RA',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('ARAL27','RA',5,'RAGRUPPAMENTI',2,'ELERAG',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',5,'',0,0,'' )
,('ARAL27','RA',6,'STABILIMENTO DA RAGRUPPARE',3,'CODSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAL27','RA',7,'CODICE SOCIO SU CUI RAGRUPPARE',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('ARAL27','RA',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAMAZ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAMAZ','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAMAZ','01',3,'CODICE RAMO AZIENDA',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('ARAMAZ','01',4,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARAMAZ','01',5,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARAMAZ','01',6,'UTENTE ABILITATO',2,'UTENTE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',20,'',0,0,'' )
,('ARAMAZ','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('ARAPRO','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAPRO','01',2,'NUMERO REGISTRAZIONE PRIMANOTA',2,'NUMREG',1,2,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARAPRO','01',3,'DATA REGISTRAZIONE PRIMANOTA',2,'DATREG',0,1,2,3,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARAPRO','01',4,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAPRO','01',5,'ANNO REGISTRAZIONE PRIMANOTA',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAPRO','01',6,'MESE REGISTRAZIONE PRIMANOTA',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',7,'GIORNO REGISTRAZIONE PRIMANOTA',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',8,'CODICE FORNITORE',2,'CODFOR',0,0,1,2,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('ARAPRO','01',9,'AVVENUTO VERSAMENTO S/N',2,'FLGVER',0,0,0,1,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAPRO','01',10,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('ARAPRO','01',11,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARAPRO','01',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAPRO','01',13,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAPRO','01',14,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',15,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',16,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',17,'IMPONIBILE IVA SOGGETTO',2,'IMPISO',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',18,'IMPONIBILE IVA NON SOGGETTO',2,'IMPINS',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',19,'IMPORTO IVA',2,'IMPIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',20,'IMPONIBILE RA LORDO',2,'IMPLOR',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',21,'IMPONIBILE RA NON SOGGETTO',2,'IMPNSO',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',22,'IMPONIBILE RA NON SOGGETTO REG. CONV.',2,'IMPRCO',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',23,'IMPORTO RITENUTA ACCONTO',2,'IMPRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('ARAPRO','01',24,'PERCENTUALE RITENUTA ACCONTO',2,'PERRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('ARAPRO','01',26,'DATA REGISTRAZIONE VERSAMENTO',2,'DATRVE',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARAPRO','01',27,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAPRO','01',28,'ANNO REGISTRAZIONE VERSAMENTO',3,'AAARVE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAPRO','01',29,'MESE REGISTRAZIONE VERSAMENTO',3,'MMMRVE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',30,'GIORNO REGISTRAZIONE VERSAMENTO',3,'GGGRVE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',31,'NUMERO REGISTRAZIONE VERSAMENTO',2,'NUMRVE',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARAPRO','01',32,'RIGA REGISTRAZIONE VERSAMENTO',2,'RIGRVE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAPRO','01',34,'DATA VERSAMENTO',2,'DATVER',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARAPRO','01',35,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAPRO','01',36,'ANNO VERSAMENTO',3,'AAAVER',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAPRO','01',37,'MESE VERSAMENTO',3,'MMMVER',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',38,'GIORNO VERSAMENTO',3,'GGGVER',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARAPRO','01',39,'CODICE ABI VERSAMENTO',2,'ABIVER',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('ARAPRO','01',40,'CODICE CAB VERSAMENTO',2,'CABVER',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('ARAPRO','01',41,'PROGRESSIVO VERSAMENTO',2,'PROVER',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARAPRO','01',42,'NOTE',2,'NOTVER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARAPRO','01',43,'MODIFICHE MANUALI  /S',2,'MODMAN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARAPRO','01',44,'CODICE TRIBUTO',2,'CODTRI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARAPRO','01',45,'IMPORTO ENASARCO',2,'IMPENA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('ARAPRO','01',46,'CODICE PER INVIO CU 770 DA 2015',2,'CCU770',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARAVD1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD1','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD1','01',3,'CODICE TABELLA',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('ARAVD1','01',4,'DESCRIZIONE TABELLA',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARAVD1','01',5,'DESCRIZIONE SUCCINTA TABELLA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARAVD1','01',6,'DECIMALI GESTITI SULLE % CALCOLATE (012)',2,'NUMDEC',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('ARAVD1','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,105,105,0,0,'X(105)','',0,'',0,0,'' )
,('ARAVD2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD2','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD2','01',3,'CODICE TABELLA',3,'CODICE',0,2,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('ARAVD2','01',4,'CODICE UVA',3,'CODUVA',0,1,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('ARAVD2','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,147,147,0,0,'X(147)','',0,'',0,0,'' )
,('ARAVD3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD3','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD3','01',3,'CODICE TABELLA',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('ARAVD3','01',4,'CODCIE REGOLA',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAVD3','01',5,'PERCENTUALE MINIMA',2,'PERMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('ARAVD3','01',6,'PERCENTUALE MASSIMA',2,'PERMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('ARAVD3','01',7,'RISPETTO ALLA SUPERFICIE DELLA REGOLA',2,'REGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAVD3','01',9,'DESCRIZIONE REGOLA',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('ARAVD3','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,93,93,0,0,'X(93)','',0,'',0,0,'' )
,('ARAVD4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD4','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARAVD4','01',3,'CODICE TABELLA',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('ARAVD4','01',4,'CODCIE REGOLA',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARAVD4','01',5,'CODICE VITIGNO',3,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'9(3)','',0,'',0,0,'' )
,('ARAVD4','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,144,144,0,0,'X(144)','',0,'',0,0,'' )
,('ARCA09','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCA09','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCA09','01',3,'CODICE CAPO AREA',3,'CODCAR',0,2,2,1,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('ARCA09','01',4,'CODICE AGENTE',3,'CODAGE',0,1,3,3,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('ARCA09','01',5,'CODICE RAGRUPPAMENTO AGENTI',3,'CODRAG',0,3,1,2,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARCA09','01',6,'PROGRESSIVO',3,'PROGRE',0,4,4,4,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCA09','01',7,'CODICE LINEA',2,'CODLIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARCA09','01',8,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARCA09','01',9,'PROVINCIA',2,'CODPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARCA09','01',10,'COMUNE',2,'COMUNE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('ARCA09','01',11,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('ARCA09','01',12,'CANALE',2,'CODCAN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARCA09','01',13,'CODICE RAGRUPPAMENTO CANALI',2,'CODRCA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARCA09','01',14,'CODICE GRUPPO CLIENTE',2,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('ARCA09','01',15,'PERCENTUALE PROVVIGIONE',2,'PERPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('ARCA09','01',16,'FLAG CLIENTE/DESTINATARIO C/D',2,'CLIDES',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARCA09','01',17,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,61,61,0,0,'X(61)','',0,'',0,0,'' )
,('ARCART','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCART','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,2,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCART','01',3,'NUOVO CODICE',3,'CODNEW',0,3,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARCART','01',4,'VECCHIO CODICE',3,'CODOLD',0,1,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARCART','01',5,'ANNATA VECCHIO',3,'ANNOLD',0,2,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCART','01',6,'ANNATE S/N',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARCART','01',7,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARCART','01',8,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('ARCART','01',9,'CODICE BREVE PER LO SPACCIO',2,'CODBRE',0,0,1,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARCART','01',10,'NUOVO CODICE COMMERCIALIZZAZIONE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCART','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('ARCCOM','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCCOM','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCCOM','01',3,'NUOVO CODICE',3,'CODNEW',0,3,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCCOM','01',4,'VECCHIO CODICE',3,'CODOLD',0,1,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCCOM','01',5,'ANNATA VECCHIO',3,'ANNOLD',0,2,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCCOM','01',6,'ANNATE S/N',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARCCOM','01',7,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARCCOM','01',8,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARCCOM','01',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('ARCSRG','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCSRG','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCSRG','01',3,'CODICE REGISTRO',3,'CODICE',0,2,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCSRG','01',4,'DESCRIZIONE',2,'DESCRI',0,1,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARCSRG','01',5,'SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARCSRG','01',6,'TITOLO BOLLATO',2,'TITBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,60,60,0,0,'X(60)','',0,'',0,0,'' )
,('ARCSRG','01',7,'TITOLO BOLLATO SECONDA RIGA',2,'TITBO2',0,0,0,0,0,0,0,0,0,0,'',4,0,60,60,0,0,'X(60)','',0,'',0,0,'' )
,('ARCSSA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCSSA','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCSSA','01',3,'CODICE REGISTRO',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCSSA','01',4,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARCSSA','01',5,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCSSA','01',6,'PROGRESSIVO CARICHI',2,'PRGCAR',0,0,0,0,0,0,0,0,0,0,'',1,1,8,17,3,0,'S9(12)V999 COMP-3','',0,'',0,0,'' )
,('ARCSSA','01',7,'PROGRESSIVO SCARICHI',2,'PRGSCA',0,0,0,0,0,0,0,0,0,0,'',1,1,8,17,3,0,'S9(12)V999 COMP-3','',0,'',0,0,'' )
,('ARCSSA','01',8,'TOTALE CARICHI USATO IN STAMPA REGISTRO',2,'MOVCAR',0,0,0,0,0,0,0,0,0,0,'',1,1,8,17,3,0,'S9(12)V999 COMP-3','',0,'',0,0,'' )
,('ARCSSA','01',9,'TOTALE SCARICHI USATO IN STAMPA REGISTRO',2,'MOVSCA',0,0,0,0,0,0,0,0,0,0,'',1,1,8,17,3,0,'S9(12)V999 COMP-3','',0,'',0,0,'' )
,('ARCSSA','01',10,'CHIAVE ULTIMO MOVIMENTO PER RIPARTENZA',2,'RIPKEY',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCSSA','01',11,'DATA MOVIMENTO',3,'DTAMOV',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARCSSA','01',12,'NUMERO MOVIMENTO',3,'NUMMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARCSSA','01',13,'NUMERO RIGA MOVIMENTO',3,'NUMRGA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCSSA','01',14,'FLAG MOVIMENTATTO NEL PERIODO (*/ )',2,'FLGMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARCSUS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCSUS','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARCSUS','01',3,'CODICE REGISTRO',3,'CODICE',0,2,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARCSUS','01',4,'DATA ULTIMA STAMPA',2,'DTASTA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARCSUS','01',5,'PROGRESSIVO STAMPA DEFINITIVA RIPARTENZA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARCSUS','01',6,'ULTIMO NUMERO RIGA STAMPA BOLLATO',2,'RIGSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,0,0,'9(9) COMP-3','',0,'',0,0,'' )
,('ARCSUS','01',7,'DATA PER RIPARTENZA',2,'DTARIP',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARDA01','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARDA01','01',2,'NUMERO INTERNO',2,'NUMERO',1,2,3,3,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARDA01','01',3,'DATA IMMISSIONE',2,'DATIMM',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARDA01','01',4,'UTENTE CHE HA INSERITO LA SCHEDA',2,'NOMUTE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('ARDA01','01',5,'CODICE FORNITORE',2,'CODFOR',0,0,1,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('ARDA01','01',6,'CODICE REPARTO',2,'CODREP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'9(3)','',0,'',0,0,'' )
,('ARDA01','01',7,'IMPORTO TOTALE',2,'TOTIMP',0,0,0,0,0,0,0,0,0,0,'',1,1,15,17,2,0,'S9(13)V99','',0,'',0,0,'' )
,('ARDA01','01',8,'BARCODE PER ARCHIVIAZIONE DOCUMENTALE',2,'BARCOD',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('ARDA01','01',9,'STATO (DA DOCUMENTALE)',2,'FLGSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('ARDA01','01',10,'OGGETTO DELL''RDA',2,'OGGETT',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('ARDA01','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,75,75,0,0,'X(75)','',0,'',0,0,'' )
,('ARDA02','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARDA02','01',2,'NUMERO INTERNO PROPOSTA',2,'NUMERO',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARDA02','01',3,'DATI FORNITORE IN ALTERNATIVA AL CODICE',2,'DATIFO',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARDA02','01',4,'RAGIONE SOCIALE',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('ARDA02','01',5,'INDIRIZZO',3,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARDA02','01',6,'CAP',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('ARDA02','01',7,'LOCALITA''',3,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('ARDA02','01',8,'PROVINCIA',3,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARDA02','01',9,'CODICE FISCALE/P.IVA',3,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('ARDA02','01',10,'NUMERO TELEFONO',3,'NUMTEL',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('ARDA02','01',11,'NUMERO FAX',3,'NUMFAX',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('ARDA02','01',12,'INDIRIZZO E-MAIL',3,'E-MAIL',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('ARDA02','01',13,'PERSONA DA CONTATTARE',3,'CONTAT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARDA02','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,146,146,0,0,'X(146)','',0,'',0,0,'' )
,('ARDA03','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARDA03','01',2,'NUMERO INTERNO RICHEISTA',2,'NUMERO',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARDA03','01',3,'NUMERO PROGRESSIVO ARTICOLO',2,'NUMART',2,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARDA03','01',4,'CODICE ARTICOLO - FACOLTATIVO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('ARDA03','01',5,'DATI ARTICOLO IN ALTERNATIVA AL CODICE',2,'DATART',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARDA03','01',6,'DESCRIZIONE',3,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARDA03','01',7,'SIGLA UNITA'' DI MISURA',3,'SIGUDM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('ARDA03','01',8,'ANNATA ARTICOLO',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARDA03','01',9,'QUANTITA'' RICHIESTA ARTICOLO',2,'QTAART',0,0,0,0,0,0,0,0,0,0,'',1,0,14,15,5,0,'9(9)V9(5)','',0,'',0,0,'' )
,('ARDA03','01',10,'PREZZO UNITARIO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,5,0,'9(13)V9(5)','',0,'',0,0,'' )
,('ARDA03','01',11,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,1,15,17,2,0,'S9(13)V99','',0,'',0,0,'' )
,('ARDA03','01',12,'DATA CONSEGNA',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('ARDA03','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('ARDA04','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARDA04','01',2,'NUMERO INTERNO PROPOSTA',2,'NUMERO',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('ARDA04','01',3,'NUMERO PROGRESSIVO ARTICOLO',2,'NUMART',2,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARDA04','01',4,'NUMERO PROGRESSIVO NOTA',2,'NUMNOT',3,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARDA04','01',5,'NOTA',2,'DESNOT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('ARDA04','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,52,52,0,0,'X(52)','',0,'',0,0,'' )
,('AREANA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREANA','01',2,'NUMERO ANALISI',2,'NUMANA',1,2,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREANA','01',3,'NUMERO INTERNO BOLLA DOCO',2,'NUMBOL',0,1,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREANA','01',4,'VALOR ANALISI',2,'VALANA',0,0,0,0,0,0,0,0,0,0,'',1,1,14,16,5,0,'S9(9)V9(5)','',0,'',0,0,'' )
,('AREANA','01',5,'DATA',2,'DATARA',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREANA','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,108,108,0,0,'X(108)','',0,'',0,0,'' )
,('ARECIM','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARECIM','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('ARECIM','01',3,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARECIM','01',4,'CODICE RECIPIENTE',3,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('ARECIM','01',5,'NUMERO RECIPIENTI',2,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('ARECIM','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('AREDD0','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD0','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD0','01',3,'CHIAVE DI ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREDD0','01',4,'ELEMENTI COSTRUZIONE CODICE ARTICOLO',2,'ELEART',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',8,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREDD0','01',5,'VALORE INIZIALE',3,'VALINI',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('AREDD0','01',6,'VALORE FINALE',3,'VALFIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('AREDD0','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,246,246,0,0,'X(246)','',0,'',0,0,'' )
,('AREDD1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD1','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD1','01',3,'ANNO SOLARE',3,'ANNOSO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREDD1','01',4,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREDD1','01',5,'ANNATA (PER ADESSO ZEMPRE ZERO)',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREDD1','01',6,'COSTO PRODUZIONE ARTICOLO',2,'COSTOP',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,3,0,'9(6)V9(3)','',0,'',0,0,'' )
,('AREDD1','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('AREDD2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',3,'CODICE CLIENTE',3,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD2','01',4,'NUMERO INVESTIMENTO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD2','01',5,'TIPO INVESTIMENTO (CODICE)',2,'TIPINV',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREDD2','01',6,'DATA INIZIALE PERIODO',2,'DTAINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREDD2','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',8,'ANNO MESE INIZIALE',3,'AM-INI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',9,'ANNO',4,'AA-INI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('AREDD2','01',10,'MESE',4,'MM-INI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREDD2','01',11,'GIORNO',3,'GG-INI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREDD2','01',12,'DATA FINALE PERIODO',2,'DTAFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREDD2','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',14,'ANNO MESE FINALE',3,'AM-FIN',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',15,'ANNO FINALE',4,'AA-FIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('AREDD2','01',16,'MESE FINALE',4,'MM-FIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREDD2','01',17,'GIORNO FINALE',3,'GG-FIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREDD2','01',18,'INVESTIMENTO PERCENTUALE',2,'INVPER',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('AREDD2','01',19,'INVESTIMENTO EURO A LITRI',2,'INVLTR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,4,0,'9(7)V9(4) COMP-3','',0,'',0,0,'' )
,('AREDD2','01',20,'INVESTIMENTO EURO A PEZZO',2,'INVPEZ',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,4,0,'9(7)V9(4) COMP-3','',0,'',0,0,'' )
,('AREDD2','01',21,'INVESTIMENTO IMPORTO FISSO',2,'INVIMP',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREDD2','01',22,'PERIODICITA'' LIQUIDAZIONE IN MESI',2,'PERLIQ',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREDD2','01',23,'COD.FOR. DA CUI RICEVEREMO LA FATTURA',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD2','01',25,'FLAG PROVVIGIONI AGENTE (S/N)',2,'FLGPRV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREDD2','01',26,'TABELLA % AGENTI PER IMPORTO FISSO',2,'TABAGE',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',27,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',4,'',0,0,'' )
,('AREDD2','01',28,'PERCENTUALE AGENTE',3,'PERAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',4,'',0,0,'' )
,('AREDD2','01',29,'CODICE DESTINATARIO',2,'CODDES',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD2','01',30,'TABELLA % CAPIAREA PER IMPORTO FISSO',2,'TABCAP',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD2','01',31,'CODICE CAPOAREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',4,'',0,0,'' )
,('AREDD2','01',32,'PERCENTUALE CAPOAREA',3,'PERCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,6,2,0,'999V99 COMP-3','',4,'',0,0,'' )
,('AREDD2','01',33,'SCADENZA FISSA',2,'DATSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,12,0,0,'X(4) COMP-X','',0,'',0,0,'' )
,('AREDD3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD3','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD3','01',3,'CODICE CLIENTE',3,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD3','01',4,'NUMERO INVESTIMENTO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD3','01',5,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREDD3','01',6,'ANNATA ARTICOLO - PER ADESSO SEMPRE 0',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('AREDD3','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('AREDD4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD4','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD4','01',3,'CODICE CLIENTE',3,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD4','01',4,'NUMERO INVESTIMENTO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD4','01',5,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREDD4','01',6,'TESTO COMMENTO',2,'RTESTO',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREDD4','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,36,36,0,0,'X(36)','',0,'',0,0,'' )
,('AREDD5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD5','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD5','01',3,'CODICE CLIENTE',3,'CODCLI',0,4,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD5','01',4,'NUMERO INVESTIMENTO',3,'NUMINV',0,5,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD5','01',5,'TIPO DOCUMENTO ("N"= NOTA "A"=ACQUISTO)',3,'TIPDOC',0,1,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREDD5','01',6,'NUMERO DOCUMENTO',3,'NUMERO',0,2,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREDD5','01',7,'NUMERO RIGA DOCUMENTO',3,'NUMRIG',0,3,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREDD5','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,33,33,0,0,'X(33)','',0,'',0,0,'' )
,('AREDD6','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD6','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD6','01',3,'CODICE CLIENTE',3,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD6','01',4,'NUMERO INVESTIMENTO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD6','01',5,'CREA UN DOCUMENTO PER DESTINATARIO (S/N)',2,'FLGDES',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREDD6','01',6,'TIPO SELEZIONE ARTICOLI',2,'SELART',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREDD6','01',9,'CODICE CLIENTE DIVERSO NOTA D''ACCREDITO',2,'ALTCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREDD6','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,180,180,0,0,'X(180)','',0,'',0,0,'' )
,('AREDD7','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD7','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD7','01',3,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREDD7','01',4,'ANNATA ARTICOLO - PER ADESSO SEMPRE 0',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('AREDD7','01',5,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,51,51,0,0,'X(51)','',0,'',0,0,'' )
,('AREDD8','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD8','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREDD8','01',3,'NUMERO FATTURA',3,'NUMFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREDD8','01',4,'RIGA FATTURA',3,'RIGFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREDD8','01',5,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREDD8','01',6,'DATA FATTURA',2,'DTAFAT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREDD8','01',7,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREDD8','01',8,'ANNATA ARTICOLO - PER ADESSO SEMPRE 0',2,'PESO',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('AREGA1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA1','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA1','01',3,'NUMERO INTERNO MOVIMENTI',2,'NUMINT',2,6,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA1','01',4,'DATA MOVIMENTO',2,'DATMOV',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA1','01',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA1','01',6,'ANNO MOVIMENTO',3,'AAAMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA1','01',7,'MESE MOVIMENTO',3,'MMMMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA1','01',8,'GIORNO MOVIMENTO',3,'GGGMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA1','01',9,'TIPO CARICO',2,'TIPCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGA1','01',14,'CODICE FORNITORE',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGA1','01',15,'COMUNE DI PROVENIENZA',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGA1','01',16,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA1','01',17,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA1','01',18,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA1','01',19,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGA1','01',20,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA1','01',21,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('AREGA1','01',22,'TIPO MOSTO (MC/MCR)',2,'TIPMOS',0,3,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('AREGA1','01',23,'COLORE',2,'COLORE',0,4,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGA1','01',26,'MASSA VOLUMICA',2,'MASVOL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('AREGA1','01',27,'GRADO RIFRATTOMETRICO',2,'GRARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA1','01',28,'ALCOLE POTENZIALE',2,'ALCPOT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA1','01',29,'ZONA VITICOLA (CII/CIIIB)',2,'ZONVIT',0,5,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGA1','01',30,'CHILOGRAMMI ENTRATI',2,'QTAKGT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,0,0,'9(7) COMP-3','',0,'',0,0,'' )
,('AREGA1','01',31,'LITRI ENTRATI',2,'QTALIT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,0,0,'9(7) COMP-3','',0,'',0,0,'' )
,('AREGA1','01',32,'CODICE VASCA',2,'CODVAS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA1','01',33,'STABILIMENTO VASCA',3,'VASSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA1','01',34,'SETTORE VASCA',3,'VASSET',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA1','01',35,'NUMERO VASCA',3,'VASNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA1','01',36,'CAPACITA''',2,'CAPPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA1','01',37,'NUMERO MODELLO D',2,'NUMMOD',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREGA1','01',38,'BIOLOGICO /S',2,'FLGBIO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGA1','01',39,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,37,37,0,0,'X(37)','',0,'',0,0,'' )
,('AREGA2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA2','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA2','01',3,'NUMERO INTERNO MOVIMENTO DI CARICO',2,'NUMCAR',2,3,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA2','01',4,'NUMERO INTERNO DIC. PREVENTIVA',2,'NNNDIC',3,2,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA2','01',5,'NUMERO INTERNO DICHIARAZIONE PREV.',3,'NUMDIC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA2','01',6,'PROGRESSIVO DEL NUMERO INTERNO',3,'PRODIC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA2','01',7,'CHILOGRAMMI SCARICATI',2,'KGTSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,0,0,'9(7) COMP-3','',0,'',0,0,'' )
,('AREGA2','01',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('AREGA3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA3','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,1,1,1,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA3','01',3,'NUMERO + PROGRESSIVO',2,'NNNPRO',0,5,5,2,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA3','01',4,'NUMERO PROGRESSIVO PER REGISTRO',3,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA3','01',5,'PROGRESSIVO DEL PROGRESSIVO PER REGISTRO',3,'PROPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA3','01',6,'NUMERO INTERNO + PROGRESSIVO',2,'NNNINT',2,4,4,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA3','01',7,'NUMERO INTERNO MOVIMENTI',3,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA3','01',8,'PROGRESSIVO DEL NUMERO INTERNO',3,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA3','01',9,'TIPO DICHIARAZIONE',2,'TIPDIC',0,2,3,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGA3','01',12,'DATA PRESENTAZIONE',2,'DATPRE',0,3,2,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA3','01',13,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA3','01',14,'ANNO PRESENTAZIONE',3,'AAAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA3','01',15,'MESE PRESENTAZIONE',3,'MMMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA3','01',16,'GIORNO PRESENTAZIONE',3,'GGGPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA3','01',17,'DATA OPERAZIONE',2,'DATOPE',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA3','01',18,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA3','01',19,'ANNO OPERAZIONE',3,'AAAOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA3','01',20,'MESE OPERAZIONE',3,'MMMOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA3','01',21,'GIORNO OPERAZIONE',3,'GGGOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA3','01',22,'ORA OPERAZIONE',2,'ORAOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA3','01',23,'DATI PRODOTTO PER ARRICCHIRE',2,'ELEARR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',5,'',0,0,'' )
,('AREGA3','01',24,'NUMERO INTERNO MOVIMENTO DI CARICO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('AREGA3','01',25,'CODICE VASCA PRELIEVO',3,'CODVAS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA3','01',26,'STABILIMENTO VASCA',4,'VASSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA3','01',27,'SETTORE VASCA',4,'VASSET',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA3','01',28,'NUMERO VASCA',4,'VASNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA3','01',29,'QUANTITA'' PRELIEVO IN QUINTALI',3,'QTAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',30,'CAPACITA'' VASCA PRELIEVO IN QUINTALI',3,'CAPPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',31,'DATI VASCA PRODOTTO ARRICCHITO',2,'ELEPRO',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',10,'',0,0,'' )
,('AREGA3','01',32,'CODICE VASCA PRODOTTO ARRICCHITO',3,'VASARR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA3','01',33,'STABILIMENTO',4,'ARRSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA3','01',34,'SETTORE',4,'ARRSET',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA3','01',35,'NUMERO',4,'ARRNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA3','01',36,'CAPACITA'' VASCA PROD ARRICCHITO',3,'CAPARR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',37,'RAGRUPPAMENTO DA ARRICCHIRE',2,'RAGARR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGA3','01',38,'ETTOLITRI DA ARRICCHIRE',2,'HLTARR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',39,'TITOLO ALCOLOMETRICO',2,'TITALC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA3','01',40,'COLONNA VINIFICAZIONE PROD. DA ARRICC.',2,'COLVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA3','01',43,'MONTEGRADI DA ARRICCHIRE',2,'MONTEG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',44,'ETTOLITRI ARRICCHIMENTO',2,'HLTAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',45,'TITOLO ALCOLOMETRICO ARRICCHIMENTO',2,'ALCOLE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA3','01',46,'MONTEGRADI ARRICCHIMENTO',2,'MTGAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',47,'QTA MOSTO ARRICCHIMENTO',2,'QTAMOS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',48,'MASSA VOLUMICA ARRICCHIMENTO',2,'MASVOL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('AREGA3','01',49,'GRADO RIFRATTOMETRICO ARRICCHIMENTO',2,'GRARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA3','01',50,'ALCOLE POTENZIALE ARRICCHIMENTO',2,'ALCPOT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA3','01',52,'ETTOLITRI TOTALI',2,'HLTTOT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',53,'TITOLO ALCOLOMETRICO TOTALE',2,'ALCTOT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA3','01',54,'MONTE GRADI TOTALE',2,'MTGTOT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',55,'AUMENTO ETTOLITRI IN PERCENTUALE',2,'PERHLT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA3','01',56,'AUMENTO TITOLO ALCOLOMETRICO IN %',2,'PERALC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA3','01',59,'TIPO MOSTO MC/MCR',2,'TIPMOS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('AREGA3','01',60,'COLORE R/B',2,'COLORE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGA3','01',61,'ZONA VITICOLA (CII/CIIIB)',2,'ZONVIT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGA3','01',62,'CODICE RAGRUPPAMENTO DA ARRICHIRE ALFA',2,'RAGARA',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGA3','01',63,'COLONNA DA ARRICHIRE REGISTRO PER STAB',2,'COLVIA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA3','01',64,'DICHIARAZIONE RIEPILOGATIVA',2,'DICRIE',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA3','01',65,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,77,77,0,0,'X(77)','',0,'',0,0,'' )
,('AREGA4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA4','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA4','01',3,'NUMERO INTERNO MOVIMENTO DI CARICO',2,'NUMCAR',2,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA4','01',4,'DATA SCARICO',2,'DATSCA',3,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA4','01',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA4','01',6,'ANNO SCARICO',3,'AAASCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA4','01',7,'MESE SCARICO',3,'MMMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA4','01',8,'GIORNO SCARICO',3,'GGGSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA4','01',9,'TIPO SCARICO',2,'TIPSCA',4,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGA4','01',13,'CHILOGRAMMI SCARICATI',2,'KGTSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,0,0,'9(7) COMP-3','',0,'',0,0,'' )
,('AREGA4','01',14,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA4','01',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA4','01',16,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA4','01',17,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA4','01',18,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA4','01',19,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGA4','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,21,21,0,0,'X(21)','',0,'',0,0,'' )
,('AREGA5','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA5','00',2,'TIPO RECORD',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA5','00',3,'CODICE',2,'CODICE',2,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('AREGA5','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(1010)','',0,'',0,0,'' )
,('AREGA5','S1',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA5','S1',2,'TIPO RECORD = "S1"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA5','S1',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGA5','S1',4,'UFFICIO DIRIGENZIALE',2,'UFFDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',5,'UFFICIO DIRIGENZIALE',2,'UFFDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',6,'UFFICIO DIRIGENZIALE',2,'UFFDI3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',7,'SEZIONE STACCATA',2,'SEZST1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',8,'SEZIONE STACCATA',2,'SEZST2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',9,'SEZIONE STACCATA',2,'SEZST3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',10,'DESCRIZIONE RAPPRESENTANTE',2,'DESRA1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',11,'DESCRIZIONE RAPPRESENTANTE',2,'DESRA2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',12,'DESCRIZIONE RAPPRESENTANTE',2,'DESRA3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S1',13,'FIRMA RAPPRESENTANTE',2,'DESRAF',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S1',14,'INTESTAZIONE MODULO',2,'INTMOD',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREGA5','S1',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,235,235,0,0,'X(235)','',0,'',0,0,'' )
,('AREGA5','S2',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA5','S2',2,'TIPO RECORD = "S2"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA5','S2',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGA5','S2',4,'DELEGATO',2,'DESDE1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',5,'DELEGATO',2,'DESDE2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',6,'DELEGATO',2,'DESDE3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',7,'DELEGATO',2,'DESDEF',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S2',8,'DESCRIZIONE DITTA',2,'DESDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',9,'DESCRIZIONE DITTA',2,'DESDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',10,'DESCRIZIONE DITTA',2,'DESDI3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',11,'DESCRIZIONE STABILIMENTO',2,'DESST1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',12,'DESCRIZIONE STABILIMENTO',2,'DESST2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',13,'DESCRIZIONE STABILIMENTO',2,'DESST3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA5','S2',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,250,250,0,0,'X(250)','',0,'',0,0,'' )
,('AREGA5','S3',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA5','S3',2,'TIPO RECORD = "S3"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA5','S3',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGA5','S3',4,'DICITURA PER FIRMA UFFICIO DIREZIONALE',2,'FIRDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',5,'DICITURA PER FIRMA UFFICIO DIREZIONALE',2,'FIRDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',6,'DICITURA PER FIRMA SEDE STACCATA',2,'FIRST1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',7,'DICITURA PER FIRMA SEDE STACCATA',2,'FIRST2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',8,'TIMBRATURA UFFICIO DIREZIONALE',2,'TIMDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',9,'TIMBRATURA UFFICIO DIREZIONALE',2,'TIMDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',10,'TIMBRATURA SEZIONE DISTACCATA',2,'TIMST1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',11,'TIMBRATURA SEZIONE DISTACCATA',2,'TIMST2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGA5','S3',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,690,690,0,0,'X(690)','',0,'',0,0,'' )
,('AREGA5','ST',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA5','ST',2,'TIPO RECORD = "ST"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA5','ST',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGA5','ST',4,'DESCRIZIONE CANTINA',2,'DATC01',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGA5','ST',5,'DESCRIZIONE CANTINA',2,'DATC02',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGA5','ST',6,'DESCRIZIONE CANTINA',2,'DATC03',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGA5','ST',7,'DESCRIZIONE CANTINA',2,'DATC04',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGA5','ST',8,'DATI MINISTERO',2,'MIN001',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',9,'DATI MINISTERO',2,'MIN002',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',10,'DATI MINISTERO',2,'MIN003',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',11,'DATI MINISTERO',2,'MIN004',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',12,'DATI MINISTERO',2,'MIN005',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',13,'DATI MINISTERO',2,'MIN006',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',14,'DATI MINISTERO',2,'MIN007',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',15,'DATI MINISTERO',2,'MIN008',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',16,'DATI MINISTERO',2,'MIN009',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',17,'DATI ISPETTORATO',2,'ISP001',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',18,'DATI ISPETTORATO',2,'ISP002',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',19,'DATI ISPETTORATO',2,'ISP003',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',20,'DATI ISPETTORATO',2,'ISP004',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',21,'DATI ISPETTORATO',2,'ISP005',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGA5','ST',22,'INDIRIZZO STABILIMENTO ESECUZIONE',2,'STE001',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGA5','ST',23,'LOCALITA'' STABILIMENTO ESECUZIONE',2,'STE002',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGA5','ST',24,'PROVISNCIA STABILIMENTO ESECUZIONE',2,'STE003',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA5','ST',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,198,198,0,0,'X(198)','',0,'',0,0,'' )
,('AREGA6','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA6','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA6','01',3,'NUMERO PROGRESSIVO PER REGISTRO',2,'NNNPRO',2,3,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA6','01',4,'NUMERO PROGRESSIVO PER REGISTRO',3,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA6','01',5,'PROGRESSIVO DEL PROGRESSIVO PER REGISTRO',3,'PROPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA6','01',6,'NUMERO PROGRESSIVO DI STAMPA SU REG.',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA6','01',7,'DATA PRESENTAZIONE',2,'DATPRE',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA6','01',8,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA6','01',9,'ANNO PRESENTAZIONE',3,'AAAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA6','01',10,'MESE PRESENTAZIONE',3,'MMMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA6','01',11,'GIORNO PRESENTAZIONE',3,'GGGPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA6','01',12,'DATA OPERAZIONE',2,'DATOPE',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA6','01',13,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA6','01',14,'ANNO OPERAZIONE',3,'AAAOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA6','01',15,'MESE OPERAZIONE',3,'MMMOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA6','01',16,'GIORNO OPERAZIONE',3,'GGGOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA6','01',17,'ORA OPERAZIONE',2,'ORAOPE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA6','01',18,'DATI PRODOTTO PER ARRICCHIRE',2,'ELEARR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',5,'',0,0,'' )
,('AREGA6','01',19,'CODICE VASCA PRELIEVO',3,'CODVAS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA6','01',20,'STABILIMENTO VASCA',4,'VASSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA6','01',21,'SETTORE VASCA',4,'VASSET',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA6','01',22,'NUMERO VASCA',4,'VASNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA6','01',23,'QUANTITA'' PRELIEVO IN QUINTALI',3,'QTAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',24,'CAPACITA'' VASCA PRELIEVO IN QUINTALI',3,'CAPPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',25,'DATI VASCA PRODOTTO ARRICCHITO',2,'ELEPRO',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',10,'',0,0,'' )
,('AREGA6','01',26,'CODICE VASCA PRODOTTO ARRICCHITO',3,'VASARR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA6','01',27,'STABILIMENTO',4,'ARRSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA6','01',28,'SETTORE',4,'ARRSET',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGA6','01',29,'NUMERO',4,'ARRNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGA6','01',30,'CAPACITA'' VASCA PROD ARRICCHITO',3,'CAPARR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',31,'ETTOLITRI DA ARRICCHIRE',2,'HLTARR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',32,'TITOLO ALCOLOMETRICO',2,'TITALC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA6','01',33,'COLONNA VINIFICAZIONE PROD. DA ARRICC.',2,'COLVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA6','01',36,'MONTEGRADI DA ARRICCHIRE',2,'MONTEG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',37,'ETTOLITRI ARRICCHIMENTO',2,'HLTAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',38,'TITOLO ALCOLOMETRICO ARRICCHIMENTO',2,'ALCOLE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA6','01',39,'MONTEGRADI ARRICCHIMENTO',2,'MTGAGG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',40,'QTA MOSTO ARRICCHIMENTO',2,'QTAMOS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',41,'MASSA VOLUMICA ARRICCHIMENTO',2,'MASVOL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('AREGA6','01',42,'GRADO RIFRATTOMETRICO ARRICCHIMENTO',2,'GRARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA6','01',43,'ALCOLE POTENZIALE ARRICCHIMENTO',2,'ALCPOT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA6','01',45,'ETTOLITRI TOTALI',2,'HLTTOT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',46,'TITOLO ALCOLOMETRICO TOTALE',2,'ALCTOT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA6','01',47,'MONTE GRADI TOTALE',2,'MTGTOT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',48,'AUMENTO ETTOLITRI IN PERCENTUALE',2,'PERHLT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('AREGA6','01',49,'AUMENTO TITOLO ALCOLOMETRICO IN %',2,'PERALC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGA6','01',52,'TIPO MOSTO MC/MCR',2,'TIPMOS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('AREGA6','01',53,'COLORE R/B',2,'COLORE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGA6','01',54,'ZONA VITICOLA (CII/CIIIB)',2,'ZONVIT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGA6','01',57,'RAGRUPPAMENTO MOSTO',2,'RAGMOS',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGA6','01',58,'RAGRUPPAMENTO PRODOTTO DA ARRICCHIRE',2,'RAGARR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGA6','01',59,'RAG PRODOTTO DA ARRICCHIRE alfa',2,'RAGARA',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGA6','01',60,'COLONNA DA ARRICHIRE REG. PER STAB.',2,'COLVIA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA6','01',61,'RAG. MOSTO ALFA',2,'RAGMOA',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGA6','01',62,'NUMERO DICHIARAZIONE CUMULATIVA',2,'DICRIE',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA6','01',63,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,108,108,0,0,'X(108)','',0,'',0,0,'' )
,('AREGA7','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA7','01',2,'CODICE STABILIMENTO',2,'CODICE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA7','01',3,'DESCRIZIONE STABILIMENTO',2,'DESST1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA7','01',4,'DESCRIZIONE STABILIMENTO',2,'DESST2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA7','01',5,'DESCRIZIONE STABILIMENTO',2,'DESST3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGA7','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,60,60,0,0,'X(60)','',0,'',0,0,'' )
,('AREGA8','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA8','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA8','01',3,'DDD',2,'NNNINT',2,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA8','01',4,'NUMERO INTERNO DIC. PREVENTIVA',3,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA8','01',5,'PROGRESSIVO',3,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA8','01',6,'PROGRESSIVO',2,'PROGRE',3,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA8','01',7,'ZONA VITIVINICOLA',2,'ZONVIT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGA8','01',8,'NUMERO BOLLA',2,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('AREGA8','01',9,'DATA BOLLA',2,'DATBOL',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA8','01',10,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA8','01',11,'ANNO BOLLA',3,'AAABOL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA8','01',12,'MESE BOLLA',3,'MMMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA8','01',13,'GIORNO BOLLA',3,'GGGBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA8','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('AREGA9','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA9','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA9','01',3,'NUMERO INTERNO CARICO',2,'NUMINT',2,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA9','01',4,'DATA CARICO',2,'DATMOV',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGA9','01',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGA9','01',6,'ANNO MOVIMENTO',3,'AAAMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGA9','01',7,'MESE MOVIMENTO',3,'MMMMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA9','01',8,'GIORNO MOVIMENTO',3,'GGGMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGA9','01',9,'CODICE REGISTRO VINIFICAZIONE',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGA9','01',10,'NUMERO INTERNO REGISTRO DI VINIFICAZ.',2,'NUMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGA9','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAA','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGAA','01',3,'NUMERO INT DIC. PREV',2,'NNNINT',2,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAA','01',4,'NUMERO INTERNO DICHIARAZIONE PREVENTIVA',3,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGAA','01',5,'PROGRESSIVO',3,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGAA','01',6,'DATA DICHIARAZIONE PREVENTIVA',2,'DATMOV',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGAA','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAA','01',8,'ANNO MOVIMENTO',3,'AAAMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGAA','01',9,'MESE MOVIMENTO',3,'MMMMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAA','01',10,'GIORNO MOVIMENTO',3,'GGGMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAA','01',11,'CODICE REGISTRO VINIFICAZIONE',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGAA','01',12,'NUMERO INTERNO REGISTRO DI VINIFICAZ.',2,'NUMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGAA','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAB','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAB','01',2,'TIPO RECORD = "S1"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGAB','01',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGAB','01',4,'UFFICIO DIRIGENZIALE',2,'UFFDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',5,'UFFICIO DIRIGENZIALE',2,'UFFDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',6,'UFFICIO DIRIGENZIALE',2,'UFFDI3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',7,'SEZIONE STACCATA',2,'SEZST1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',8,'SEZIONE STACCATA',2,'SEZST2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',9,'SEZIONE STACCATA',2,'SEZST3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',10,'DESCRIZIONE RAPPRESENTANTE',2,'DESRA1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',11,'DESCRIZIONE RAPPRESENTANTE',2,'DESRA2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',12,'DESCRIZIONE RAPPRESENTANTE',2,'DESRA3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAB','01',13,'FIRMA RAPPRESENTANTE',2,'DESRAF',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAB','01',14,'INTESTAZIONE MODULO',2,'INTMOD',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREGAB','01',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,235,235,0,0,'X(235)','',0,'',0,0,'' )
,('AREGAC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAC','01',2,'TIPO RECORD = "S2"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGAC','01',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGAC','01',4,'DELEGATO',2,'DESDE1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',5,'DELEGATO',2,'DESDE2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',6,'DELEGATO',2,'DESDE3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',7,'DELEGATO',2,'DESDEF',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAC','01',8,'DESCRIZIONE DITTA',2,'DESDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',9,'DESCRIZIONE DITTA',2,'DESDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',10,'DESCRIZIONE DITTA',2,'DESDI3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',11,'DESCRIZIONE STABILIMENTO',2,'DESST1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',12,'DESCRIZIONE STABILIMENTO',2,'DESST2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',13,'DESCRIZIONE STABILIMENTO',2,'DESST3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGAC','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,250,250,0,0,'X(250)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGAD','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAD','01',2,'TIPO RECORD = "S3"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGAD','01',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGAD','01',4,'DICITURA PER FIRMA UFFICIO DIREZIONALE',2,'FIRDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',5,'DICITURA PER FIRMA UFFICIO DIREZIONALE',2,'FIRDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',6,'DICITURA PER FIRMA SEDE STACCATA',2,'FIRST1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',7,'DICITURA PER FIRMA SEDE STACCATA',2,'FIRST2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',8,'TIMBRATURA UFFICIO DIREZIONALE',2,'TIMDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',9,'TIMBRATURA UFFICIO DIREZIONALE',2,'TIMDI2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',10,'TIMBRATURA SEZIONE DISTACCATA',2,'TIMST1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',11,'TIMBRATURA SEZIONE DISTACCATA',2,'TIMST2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAD','01',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,690,690,0,0,'X(690)','',0,'',0,0,'' )
,('AREGAE','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAE','01',2,'TIPO RECORD = "ST"',2,'TIPREC',1,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGAE','01',3,'ZERI',2,'ZEROES',2,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGAE','01',4,'DESCRIZIONE CANTINA',2,'DATC01',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAE','01',5,'DESCRIZIONE CANTINA',2,'DATC02',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAE','01',6,'DESCRIZIONE CANTINA',2,'DATC03',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAE','01',7,'DESCRIZIONE CANTINA',2,'DATC04',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAE','01',8,'DATI MINISTERO',2,'MIN001',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',9,'DATI MINISTERO',2,'MIN002',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',10,'DATI MINISTERO',2,'MIN003',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',11,'DATI MINISTERO',2,'MIN004',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',12,'DATI MINISTERO',2,'MIN005',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',13,'DATI MINISTERO',2,'MIN006',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',14,'DATI MINISTERO',2,'MIN007',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',15,'DATI MINISTERO',2,'MIN008',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',16,'DATI MINISTERO',2,'MIN009',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',17,'DATI ISPETTORATO',2,'ISP001',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',18,'DATI ISPETTORATO',2,'ISP002',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',19,'DATI ISPETTORATO',2,'ISP003',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',20,'DATI ISPETTORATO',2,'ISP004',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',21,'DATI ISPETTORATO',2,'ISP005',0,0,0,0,0,0,0,0,0,0,'',4,0,45,45,0,0,'X(45)','',0,'',0,0,'' )
,('AREGAE','01',22,'INDIRIZZO STABILIMENTO ESECUZIONE',2,'STE001',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAE','01',23,'LOCALITA'' STABILIMENTO ESECUZIONE',2,'STE002',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAE','01',24,'PROVISNCIA STABILIMENTO ESECUZIONE',2,'STE003',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGAE','01',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,374,374,0,0,'X(374)','',0,'',0,0,'' )
,('AREGAF','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAF','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGAF','01',3,'NUMERO INTERNO MOVIMENTI',2,'NUMINT',2,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGAF','01',4,'DESCRIZIONE (NON USATA)',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGAF','01',5,'DESCRIZIONE SUCCINTA (NON USATA)',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREGAF','01',6,'DATA DICHIARAZIONE',2,'DATDIC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGAF','01',7,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAF','01',8,'ANNO DICHIARAZIONE',3,'AAADIC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGAF','01',9,'MESE DICHIARAZIONE',3,'MMMDIC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',10,'GIORNO DICHIARAZIONE',3,'GGGDIC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',11,'DATA INIZIO OPERAZIONI',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGAF','01',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAF','01',13,'ANNO INIZIO',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGAF','01',14,'MESE INIZIO',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',15,'GIORNO INIZIO',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',16,'DATA FINE OPERAZIONI',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGAF','01',17,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAF','01',18,'ANNO FINE OPERAZIONI',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGAF','01',19,'MESE FINE OPERAZIONI',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',20,'GIORNO FINE OPERAZIONI',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',21,'DATA INTERRUZIONE DICHIARAZIONE',2,'DATINT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGAF','01',22,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAF','01',23,'ANNO INTERRUZIONE',3,'AAAINT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGAF','01',24,'MESE INTERRUZIONE',3,'MMMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',25,'GIORNO INTERRUZIONE',3,'GGGINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGAF','01',26,'NUMERO PROGRESSIVO PER REGISTRO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGAF','01',27,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('AREGAG','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGAG','01',2,'CODICE STABILIMENTO',2,'CODSTB',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGAG','01',3,'NUMERO INTERNO MOVIMENTI',2,'NUMINT',2,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGAG','01',4,'PROGRESSIVO',2,'PROGRE',3,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGAG','01',5,'DESCRIZIONE VARIETA''',2,'DESVAR',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('AREGAG','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('AREGC1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC1','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC1','01',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','01',5,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','01',6,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','01',7,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','01',8,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','01',10,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','01',11,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','01',12,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','01',13,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','01',15,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','01',16,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','01',17,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','01',18,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','01',19,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','01',21,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','01',22,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','01',23,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','01',24,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGC1','01',25,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGC1','01',26,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGC1','01',27,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','01',28,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','01',33,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','01',34,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGC1','01',35,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','01',36,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','01',37,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','01',41,'NUMERO INTERNO SCADENZA',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC1','01',42,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGC1','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC1','02',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC1','02',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',1,0,14,14,0,0,'9(14)','',0,'',0,0,'' )
,('AREGC1','02',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',6,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',7,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',8,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','02',9,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','02',10,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',11,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',12,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',13,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',14,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','02',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',16,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',17,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',18,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',19,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',20,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','02',21,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',22,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',23,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',24,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',25,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGC1','02',26,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGC1','02',27,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGC1','02',28,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','02',29,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','02',34,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','02',35,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','02',36,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','02',37,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',38,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','02',42,'NUMERO INTERNO SCADENZA',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC1','02',43,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGC1','02',44,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('AREGC1','02',45,'DATA INIZIO CALCOLO SCADENZA',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','02',46,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',47,'ANNO INIZIO CALCOLO SCADENZA',4,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',48,'MESE INIZIO CALCOLO SCADENZA',4,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',49,'GIORNO INIZIO CALCOLO SCADENZA',4,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',50,'CODICE BANCA (ABI)',2,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGC1','02',51,'CODICE BANCA (CAB)',2,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGC1','02',52,'DATA SCADENZA MASSIMA',2,'DATMAX',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','02',53,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',54,'ANNO SCADENZA MASSIMA',4,'AAAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',55,'MESE SCADENZA MASSIMA',4,'MMMMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',56,'GIORNO SCADENZA MASSIMA',4,'GGGMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',57,'DATA RIFERIMENTO (VALUTA LIBRETTI ECC)',2,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','02',58,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',59,'ANNO RIFERIMENTO',4,'AAARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',60,'MESE RIFERIMENTO',4,'MMMRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',61,'GIORNO RIFERIMENTO',4,'GGGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','02',62,'CODICE PARTITA',2,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','02',63,'ANNO PARTITA',4,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','02',64,'NUMERO PARTITA',4,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('AREGC1','02',65,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC1','02',66,'CENTRO DI COSTO',2,'CENCOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC1','02',68,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('AREGC1','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','03',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC1','03',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC1','03',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',1,0,14,14,0,0,'9(14)','',0,'',0,0,'' )
,('AREGC1','03',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','03',6,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','03',7,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','03',8,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','03',9,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','03',10,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','03',11,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','03',12,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',13,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',14,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','03',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','03',16,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','03',17,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',18,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',19,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','03',20,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC1','03',21,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC1','03',22,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC1','03',23,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',24,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',25,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGC1','03',26,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGC1','03',27,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGC1','03',28,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',29,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',34,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','03',35,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','03',36,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',37,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',38,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',42,'NUMERO INTERNO SCADENZA',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGC1','03',43,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGC1','03',44,'TIPO CODICE C/F/S/P',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',45,'CODICE CLIENTE/FORNITORE/SOCIO/PROD',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC1','03',46,'CODICE IVA',2,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('AREGC1','03',47,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGC1','03',48,'TIPO REGISTRO',2,'TIPREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',49,'NUMERO REGISTRO',2,'NNRIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',50,'TIPO REGISTRO INTRA',2,'TIPINT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',51,'NUMERO REGISTRO INTRA',2,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',52,'NUMERO DOCUMENTO INTRA',2,'DOCINT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGC1','03',53,'NUMERO PROTOCOLLO INTRA',2,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGC1','03',54,'STAMPA REGISTRO IVA S/N',2,'STAREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',55,'PROGRESSIVO STAMPA REGISTRO IVA',2,'PROREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',56,'CHIUSURA IVA S/N',2,'CHIIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC1','03',57,'PROGRESSIVO CHIUSURA IVA',2,'PROIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC1','03',58,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,21,21,0,0,'X(21)','',0,'',0,0,'' )
,('AREGC2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC2','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC2','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC2','01',4,'PRIMS DESCRIZIONE',2,'DES001',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGC2','01',5,'SECONDA DESCRIZIONE',2,'DES002',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGC2','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGC3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',2,'CODICE SCADENZA',2,'CODSCA',1,5,6,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',3,'NUMERO INTERNO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC3','01',4,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC3','01',7,'TIPO CODICE',2,'TIPCOD',0,1,1,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC3','01',12,'CODICE GRUPPO/CONTO/SOTTOCONTO C F S',2,'CODICE',0,2,2,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',13,'CODICE GRUPPO',3,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'APICO1',1,1,'' )
,('AREGC3','01',14,'CODICE CONTO',3,'CODCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'APICO1',1,2,'' )
,('AREGC3','01',15,'CODICE SOTTOCONTO',3,'CODSOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'APICO1',1,3,'' )
,('AREGC3','01',16,'CODICE PARTITA',2,'CODPAR',0,3,3,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',17,'ANNO PARTITA',3,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC3','01',18,'NUMERO PARTITA',3,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('AREGC3','01',19,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',20,'DEFINIZIONE NUM PARTITA PER CODICE SOCIO',4,'PARZZZ',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'Z(10)','',0,'',0,0,'' )
,('AREGC3','01',21,'DATA REGISTRAZIONE',2,'DATREG',0,4,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC3','01',22,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',23,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC3','01',24,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',25,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',26,'NUMERO REGISTRAZIONE PRIMANOTA',2,'NUMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC3','01',27,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC3','01',28,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',29,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC3','01',30,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',31,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',32,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGC3','01',33,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGC3','01',34,'DATA SCADENZA',2,'DATSCA',0,0,4,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC3','01',35,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',36,'ANNO SCADENZA',3,'AAASCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC3','01',37,'MESE SCADENZA',3,'MMMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',38,'GIORNO SCADENZA',3,'GGGSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',39,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGC3','01',40,'IMPORTO SCADENZA',2,'IMPSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGC3','01',41,'TIPO IMPORTO D=DARE A=AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC3','01',42,'TIPO SCADENZA',2,'TIPSCA',0,0,5,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC3','01',45,'DATA RIFERIMENTO',2,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC3','01',48,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC3','01',49,'ANNO RIFERIMENTO',3,'AAARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC3','01',50,'MESE RIFERIMENTO',3,'MMMRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',51,'GIORNO RIFERIMENTO',3,'GGGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC3','01',52,'MODIFICHE MANUALI S/N',2,'MODMAN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC3','01',53,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'ATBAMP',1,1,'' )
,('AREGC3','01',54,'CODICE CAUSALE CONTABILE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'ATBAKK',1,1,'' )
,('AREGC3','01',55,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'ATBAAG',1,1,'' )
,('AREGC3','01',56,'SCADENZA ANTICIPATA  /S',2,'FLGANT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC3','01',57,'STAMPA RICEVUTA INCASSO AGENTI /S',2,'STARIC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC3','01',58,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,46,46,0,0,'X(46)','',0,'',0,0,'' )
,('AREGC4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC4','01',2,'NUMERO INTERNO',2,'NUMERO',1,2,4,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC4','01',3,'PROGRESSIVO',2,'PROGRE',2,3,5,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC4','01',6,'TIPO CODICE',2,'TIPCOD',0,0,1,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC4','01',10,'GRUPPO CONTO SOTTOCONTO C F S',2,'CODICE',0,0,2,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC4','01',11,'CODICE GRUPPO',3,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC4','01',12,'CODICE CONTO',3,'CODCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC4','01',13,'CODICE SOTTOCONTO',3,'CODSOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGC4','01',14,'DATA SCADENZA',2,'DATSCA',0,1,3,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGC4','01',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC4','01',16,'ANNO SCADENZA',3,'AAASCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGC4','01',17,'MESE SCADENZA',3,'MMMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC4','01',18,'GIORNO SCADENZA',3,'GGGSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC4','01',19,'NUMERO DISTINTA EFFETTI',2,'NUMDIS',0,0,0,1,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('AREGC4','01',20,'CODICE BANCA APPOGGIO (ABI)',2,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGC4','01',21,'CODICE BANCA APPOGGIO (CAB)',2,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGC4','01',22,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGC4','01',23,'MODIFICHE MANUALI S/N',2,'MODMAN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC4','01',24,'FLAG PAGAMENTO A VISTA',2,'FLGVIS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC4','01',25,'STATO EFFETTO',2,'STAEFF',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC4','01',29,'CODICE CIN EURO (IBAN)',2,'CINEUR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGC4','01',30,'CODICE CIN ITALIA (IBAN)',2,'CINITA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC4','01',31,'NUMERO C/C (IBAN)',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('AREGC4','01',32,'EFFETTO ANTICIPATO S/N',2,'FLGANT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGC4','01',33,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('AREGC6','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGC6','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGC6','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC6','01',4,'PROGRESSIVO DESCRIZIONI',2,'PROGRE',3,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGC6','01',5,'PRIMS DESCRIZIONE',2,'DES001',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGC6','01',6,'SECONDA DESCRIZIONE',2,'DES002',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGC6','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('AREGCC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCC','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGCC','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGCC','01',4,'CENTRO DI COSTO',2,'CENCOS',3,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'AANNCC',1,1,'' )
,('AREGCC','01',5,'PERCENTUALE SUDDIVISIONE (OBSOLETO)',2,'PERDIV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCC','01',6,'NUMERO MESI',2,'NRMESI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCC','01',7,'MESE INIZIO',2,'MESINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCC','01',8,'DATA INIZIO',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCC','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCC','01',10,'ANNO INIZIO',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCC','01',11,'MESE INIZIO',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCC','01',12,'GIORNO INIZIO',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCC','01',13,'DATA FINE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCC','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCC','01',15,'ANNO FINALE',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCC','01',16,'MESE FINALE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCC','01',17,'GIORNO FINALE',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCC','01',18,'PERCENTUALE SUDDIVISIONE CON DECIMALI',2,'PERDEC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('AREGCC','01',19,'IMPORTO SUDDIVISO',2,'IMPDEC',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('AREGCC','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,19,19,0,0,'X(19)','',0,'',0,0,'' )
,('AREGCF','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCF','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,2,3,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGCF','01',3,'DATA REGISTRAZIONE',2,'DATREG',0,3,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCF','01',4,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCF','01',5,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCF','01',6,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCF','01',7,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCF','01',8,'CODICE SOCIO',2,'CODSOC',0,1,1,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGCF','01',9,'CODICE PRATICA',2,'CODPRA',0,0,2,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCF','01',10,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCF','01',11,'IMPORTO REGISTRAZIONE',2,'IMPREG',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('AREGCF','01',12,'ELEMENTO FATTURA',2,'ELEFAT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',10,'',0,0,'' )
,('AREGCF','01',13,'DATA FATTURA',3,'DATFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGCF','01',14,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCF','01',15,'ANNO FATTURA',4,'AAAFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCF','01',16,'MESE FATTURA',4,'MMMFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCF','01',17,'GIORNO FATTURA',4,'GGGFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCF','01',18,'IMPORTO FATTURA',3,'IMPFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('AREGCF','01',19,'FATTURA CONTABILIZZATA /S',3,'CONFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCF','01',20,'DATA CONTABILIZZAZIONE',3,'DATCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGCF','01',21,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCF','01',22,'ANNO CONTABILIZZAZIONE',4,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCF','01',23,'MESE CONTABILIZZAZIONE',4,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCF','01',24,'GIORNO CONTABILIZZAZIONE',4,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCF','01',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,120,120,0,0,'X(120)','',0,'',0,0,'' )
,('AREGCO','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGCO','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGCO','01',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',5,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'APICO1',1,1,'' )
,('AREGCO','01',6,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'APICO1',1,2,'' )
,('AREGCO','01',7,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'APICO1',1,3,'' )
,('AREGCO','01',8,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCO','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',10,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',11,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',12,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',13,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCO','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',15,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',16,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',17,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',18,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'ATBAKK',1,1,'' )
,('AREGCO','01',19,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCO','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',21,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',22,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',23,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',24,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGCO','01',25,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGCO','01',26,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGCO','01',27,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',28,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',33,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGCO','01',34,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGCO','01',35,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',36,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',37,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',41,'NUMERO INTERNO SCADENZA',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGCO','01',43,'CODICE PAGAMENTO (SEZ)',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'ATBAMP',1,1,'' )
,('AREGCO','01',44,'DATA INIZIO CALCOLO SCADENZA (SEZ)',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCO','01',45,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',46,'ANNO INIZIO CALCOLO SCADENZA',4,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',47,'MESE INIZIO CALCOLO SCADENZA',4,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',48,'GIORNO INIZIO CALCOLO SCADENZA',4,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',49,'CODICE BANCA (ABI) (SEZ)',2,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGCO','01',50,'CODICE BANCA (CAB) (SEZ)',2,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGCO','01',51,'DATA SCADENZA MASSIMA (SEZ)',2,'DATMAX',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCO','01',52,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',53,'ANNO SCADENZA MASSIMA',4,'AAAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',54,'MESE SCADENZA MASSIMA',4,'MMMMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',55,'GIORNO SCADENZA MASSIMA',4,'GGGMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',56,'DATA RIF. (VALUTA LIBRETTI ECC) (SEZ)',2,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGCO','01',57,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',58,'ANNO RIFERIMENTO',4,'AAARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',59,'MESE RIFERIMENTO',4,'MMMRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',60,'GIORNO RIFERIMENTO',4,'GGGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',61,'CODICE PARTITA (SEZ)',2,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGCO','01',62,'ANNO PARTITA',4,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',63,'NUMERO PARTITA',4,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('AREGCO','01',64,'CODICE AGENTE (SEZ)',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'ATBAAG',1,1,'' )
,('AREGCO','01',65,'CENTRO DI COSTO (SEZ)',2,'CENCOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGCO','01',68,'TIPO CODICE C/F/S/P (IVA)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',69,'CODICE CLIENTE/FORNITORE/SOCIO/PROD (IVA',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGCO','01',70,'CODICE IVA (IVA)',2,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'ATBAAI',1,1,'' )
,('AREGCO','01',71,'IMPONIBILE (IVA)',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGCO','01',72,'CODICE REGISTRO IVA',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',73,'TIPO REGISTRO (IVA)',3,'TIPREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',74,'NUMERO REGISTRO (IVA)',3,'NNRIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',75,'CODICE REGISTRO IVA INTRA',2,'REGINT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',76,'TIPO REGISTRO INTRA (IVA)',3,'TIPINT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',77,'NUMERO REGISTRO INTRA (IVA)',3,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',78,'NUMERO DOCUMENTO INTRA (IVA)',2,'DOCINT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGCO','01',79,'NUMERO PROTOCOLLO INTRA (IVA)',2,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGCO','01',80,'STAMPA REGISTRO IVA S/N (IVA)',2,'STAREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',81,'PROGRESSIVO STAMPA REGISTRO IVA (IVA)',2,'PROREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',82,'CHIUSURA IVA S/N (IVA)',2,'CHIIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',83,'PROGRESSIVO CHIUSURA IVA (IVA)',2,'PROIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',84,'CODICE A BARRE PER DOCUMENTALE',2,'BARCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('AREGCO','01',85,'TIPO DOCUMENTO DOCUMENTALE',2,'DOCDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',86,'FATTURA ACQUISTO IN SOSPESO S/N',2,'FATSOS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',88,'DATI PER CODICE IBAN',2,'CODIBA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',89,'CODICE ISO (SEMPRE IT)',3,'CODISO',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGCO','01',90,'CODICE CIN EURO',3,'CINEUR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',91,'CODICE CIN ITALIA',3,'CINITA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGCO','01',92,'NUMERO DI CONTO CORRENTE',3,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('AREGCO','01',93,'NUMERO DICHIARAZIONE INTENTO',2,'NUMDII',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('AREGCO','01',94,'PERIODO LIQUIDAZIONE IVA',2,'PERLIV',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGCO','01',95,'REDEFINES',2,'ANMLIV',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGCO','01',96,'ANNO',3,'AAALIV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGCO','01',97,'MESE',3,'MMMLIV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGCO','01',98,'PROGRESSIVO ARCHIVIO AFATF1 (FATT.ACQ)',2,'NUMSDI',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGCO','01',99,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREGE1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE1','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGE1','01',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','01',5,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','01',6,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','01',7,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','01',8,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','01',10,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','01',11,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','01',12,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','01',13,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','01',15,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','01',16,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','01',17,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','01',18,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','01',19,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','01',21,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','01',22,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','01',23,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','01',24,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGE1','01',25,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGE1','01',26,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGE1','01',27,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','01',28,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','01',33,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','01',34,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','01',35,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','01',36,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','01',37,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','01',41,'NUMERO INTERNO SCADENZA',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE1','01',42,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('AREGE1','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE1','02',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGE1','02',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',1,0,14,14,0,0,'9(14)','',0,'',0,0,'' )
,('AREGE1','02',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',6,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',7,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',8,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','02',9,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','02',10,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',11,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',12,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',13,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',14,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','02',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',16,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',17,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',18,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',19,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',20,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','02',21,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',22,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',23,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',24,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',25,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGE1','02',26,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGE1','02',27,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGE1','02',28,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','02',29,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','02',34,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('AREGE1','02',35,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','02',36,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','02',37,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',38,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','02',42,'NUMERO INTERNO SCADENZA',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE1','02',43,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGE1','02',44,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('AREGE1','02',45,'DATA INIZIO CALCOLO SCADENZA',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','02',46,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',47,'ANNO INIZIO CALCOLO SCADENZA',4,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',48,'MESE INIZIO CALCOLO SCADENZA',4,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',49,'GIORNO INIZIO CALCOLO SCADENZA',4,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',50,'CODICE BANCA (ABI)',2,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGE1','02',51,'CODICE BANCA (CAB)',2,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('AREGE1','02',52,'DATA SCADENZA MASSIMA',2,'DATMAX',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','02',53,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',54,'ANNO SCADENZA MASSIMA',4,'AAAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',55,'MESE SCADENZA MASSIMA',4,'MMMMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',56,'GIORNO SCADENZA MASSIMA',4,'GGGMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',57,'DATA RIFERIMENTO (VALUTA LIBRETTI ECC)',2,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','02',58,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',59,'ANNO RIFERIMENTO',4,'AAARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',60,'MESE RIFERIMENTO',4,'MMMRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',61,'GIORNO RIFERIMENTO',4,'GGGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','02',62,'CODICE PARTITA',2,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','02',63,'ANNO PARTITA',4,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','02',64,'NUMERO PARTITA',4,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('AREGE1','02',65,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGE1','02',66,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('AREGE1','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','03',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE1','03',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGE1','03',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',1,0,14,14,0,0,'9(14)','',0,'',0,0,'' )
,('AREGE1','03',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','03',6,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','03',7,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','03',8,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','03',9,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','03',10,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','03',11,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','03',12,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',13,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',14,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','03',15,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','03',16,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','03',17,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',18,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',19,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','03',20,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('AREGE1','03',21,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE1','03',22,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE1','03',23,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',24,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',25,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGE1','03',26,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGE1','03',27,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGE1','03',28,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',29,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',34,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','03',35,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','03',36,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',37,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',38,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',42,'NUMERO INTERNO SCADENZA',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE1','03',43,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGE1','03',44,'TIPO CODICE C/F/S',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',45,'CODICE CLIENTE/FORNITORE/SOCIO',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE1','03',46,'CODICE IVA',2,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('AREGE1','03',47,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('AREGE1','03',48,'TIPO REGISTRO',2,'TIPREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',49,'NUMERO REGISTRO',2,'NNRIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',50,'TIPO REGISTRO INTRA',2,'TIPINT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',51,'NUMERO REGISTRO INTRA',2,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',52,'NUMERO DOCUMENTO INTRA',2,'DOCINT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('AREGE1','03',53,'NUMERO PROTOCOLLO INTRA',2,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('AREGE1','03',54,'STAMPA REGISTRO IVA S/N',2,'STAREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',55,'PROGRESSIVO STAMPA REGISTRO IVA',2,'PROREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',56,'CHIUSURA IVA S/N',2,'CHIIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE1','03',57,'PROGRESSIVO CHIUSURA IVA',2,'PROIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('AREGE1','03',58,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,21,21,0,0,'X(21)','',0,'',0,0,'' )
,('AREGE2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE2','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE2','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGE2','01',4,'PRIMS DESCRIZIONE',2,'DES001',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGE2','01',5,'SECONDA DESCRIZIONE',2,'DES002',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('AREGE2','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('AREGE3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE3','01',2,'CODICE SCADENZA',2,'CODSCA',1,5,6,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE3','01',3,'NUMERO INTERNO',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('AREGE3','01',4,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('AREGE3','01',7,'TIPO CODICE',2,'TIPCOD',0,1,1,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('AREGE3','01',11,'CODICE GRUPPO/CONTO/SOTTOCONTO C F S',2,'CODICE',0,2,2,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE3','01',12,'CODICE GRUPPO',3,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE3','01',13,'CODICE CONTO',3,'CODCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE3','01',14,'CODICE SOTTOCONTO',3,'CODSOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('AREGE3','01',15,'CODICE PARTITA',2,'CODPAR',0,3,3,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE3','01',16,'ANNO PARTITA',3,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('AREGE3','01',17,'NUMERO PARTITA',3,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('AREGE3','01',18,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('AREGE3','01',19,'DEFINIZIONE NUM PARTITA PER CODICE SOCIO',4,'PARZZZ',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'Z(10)','',0,'',0,0,'' )
go
