INSERT INTO dbo.ZFILE3_01 VALUES
('LMT11T','01',6,'COLORE (B/R)',2,'COLORE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMT11T','01',7,'UVA DI SUPERO',2,'UVASUP',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LMT11T','01',8,'SUPERFICE VITATA',2,'SUPVIT',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,'' )
,('LMT11T','01',9,'SUPERFICE CERTIFICATA DOC',2,'SUPCER',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,'' )
,('LMT11T','01',10,'QUANTITA'' CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LMT11T','01',11,'QUANTITA'' TOLLERATA',2,'QTATOL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LMT11T','01',12,'QUANTITA'' CONFERITA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LMT11T','01',13,'QUANTITA'' ACCETTATA DOC',2,'QTADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LMT11T','01',14,'UVA AGGIUNTIVA PER RECUPERO SUPERFICI',2,'UVAAGG',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',4,'',0,0,'' )
,('LMT11T','01',15,'FONDO FITTIZIO',2,'NFONDO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMT15T','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT15T','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT15T','01',3,'DETTAGLIO/TOTALI (D/T)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMT15T','01',4,'CODICE SOCIO (ZERO PER RECORD TOTALI)',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LMT15T','01',5,'CODICE UVAGGIO',3,'CODUVG',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LMT15T','01',6,'SPAZI',3,'SPACES',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LMT15T','01',7,'SUPERFICE VITATA',2,'SUPVIT',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,'' )
,('LMT15T','01',8,'SUPERFICE CERTIFICATA DOC',2,'SUPCER',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,'' )
,('LMT15T','01',9,'QUANTITA'' CONFERITA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LMT15T','01',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LMT15T','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT15T','02',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT15T','02',3,'DETTAGLIO/TOTALI (D/T)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMT15T','02',4,'CODICE SOCIO (ZERO PER RECORD TOTALI)',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LMT15T','02',5,'CODICE UVAGGIO',3,'CODUVG',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LMT15T','02',6,'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,'' )
,('LMT15T','02',7,'1=SUPERO DOC, 2=SUPERFICE CALCOLATA',3,'FLGSUP',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMT15T','02',8,'SUPERFICE CALCOLATA',2,'SUPCAL',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,'' )
,('LMT15T','02',9,'QUANTITA'' CALCOLATA',2,'QTACAL',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LMT15T','02',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LMT250','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT250','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT250','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,'' )
,('LMT250','01',4,'ORIGINE NUMERO BOLLETTA',3,'ORINUM',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LMT250','01',5,'CREATO NUMERO BOLLETTA',3,'CRENUM',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LMT250','01',6,'ORIGINE CODICE UVA',2,'ORIUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT250','01',7,'ORIGINE CODICE ZONA',2,'ORIZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT250','01',8,'ORIGINE QUANTITA''',2,'ORIQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,2,0,'9(4)V99','',0,'',0,0,'' )
,('LMT250','01',9,'CREATO CODICE UVA',2,'CREUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT250','01',10,'CREATO CODICE ZONA',2,'CREZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT250','01',11,'CREATO QUANTITA''',2,'CREQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,2,0,'9(4)V99','',0,'',0,0,'' )
,('LMT251','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT251','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMT251','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,'' )
,('LMT251','01',4,'ORIGINE NUMERO BOLLETTA',3,'ORINUM',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LMT251','01',5,'CREATO NUMERO BOLLETTA',3,'CRENUM',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LMT251','01',6,'ORIGINE CODICE UVA',2,'ORIUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT251','01',7,'ORIGINE CODICE ZONA',2,'ORIZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT251','01',8,'ORIGINE QUANTITA''',2,'ORIQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,2,0,'9(4)V99','',0,'',0,0,'' )
,('LMT251','01',9,'CREATO CODICE UVA',2,'CREUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT251','01',10,'CREATO CODICE ZONA',2,'CREZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LMT251','01',11,'CREATO QUANTITA''',2,'CREQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,2,0,'9(4)V99','',0,'',0,0,'' )
,('LMTC01','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMTC01','01',2,'CODICE PIANO DEI CONTI',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMTC01','01',3,'GRUPPO',3,'CODGRU',1,1,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LMTC01','01',4,'CONTO',3,'CODCON',2,2,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LMTC01','01',5,'SOTTOCONTO',3,'CODSOT',3,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LMTC01','01',6,'DESCRIZIONE',2,'DESCRI',0,3,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMTC01','01',7,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LMTC01','01',8,'NATURA',2,'NATURA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMTC01','01',14,'TIPO CONTO',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMTC01','01',21,'LIBRO INVENTARI',2,'LIBINV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMTC01','01',26,'PROGRESSIVO DARE',2,'PRODAR',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('LMTC01','01',27,'PROGRESSIVO AVERE',2,'PROAVE',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('LMTC01','01',28,'CONTO GESTITO A PARTITE S/N',2,'GESPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMTC01','01',29,'GESTITO DALLA CHIUSURA CONTABILE PER',2,'RIPCHI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMTC01','01',30,'DATA COMPETENZA',3,'DATCOM',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LMTC01','01',31,'NUMERO REGISTRAZIONE',3,'NUMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LMTC01','01',32,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LMTC01','01',33,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,34,34,0,0,'X(34)','',0,'',0,0,'' )
,('LMVUO1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMVUO1','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,'' )
,('LMVUO1','01',3,'NUMERO RIGA',3,'NUMRGA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LMVUO1','01',4,'CODICE VUOTO',2,'CODVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LMVUO1','01',5,'DESCRIZIONE VUOTO',2,'DESVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LMVUO1','01',6,'QUANTITA'' CONSEGNATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,0,0,'9(7) COMP-3','',0,'',0,0,'' )
,('LMVUO1','01',7,'QUANTITA'' RESA',2,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,0,0,'9(7) COMP-3','',0,'',0,0,'' )
,('LMVUO1','01',8,'CAUZIONE UNITARIA',2,'CAUUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LMVUO1','01',9,'ANNNOTAZIONI',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LMYSQ1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ1','01',2,'NOME DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ1','01',3,'ESTRAZIONE AUTOMATICA NOTTURNA',2,'EXTAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMYSQ1','01',4,'TIPO DATABASE',2,'TIPODB',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LMYSQ1','01',7,'MYSQL: DROP DATABASE',2,'DROPDB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMYSQ1','01',8,'CREABILE DA AV2000 (S)',2,'CREAAV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMYSQ1','01',9,'CREA INDICI UNIVOCI E FOREING KEY',2,'FLGDJN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMYSQ1','01',10,'CREA CONSTRAIN PER FOREIGN KEY (S)',2,'FLGFKC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMYSQ1','01',11,'TIPO ENGINE S=INNODB,M=MYISAM, =DEFAULT',2,'FLGINN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMYSQ1','01',12,'TABELLA NEI NOMI COLONNE (S)',2,'FLGNOM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LMYSQ1','01',13,'NOME DATABASE (SE DIVERSO DA DATBAS)',2,'DBNAME',0,0,0,0,0,0,0,0,0,0,'',4,0,52,52,0,0,'X(52)','',0,'',0,0,'' )
,('LMYSQ2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ2','01',2,'NOME DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ2','01',3,'CODICE AZIENDA',2,'CODAZI',2,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LMYSQ2','01',4,'CODICE VENDEMMIA DELL''AZIENDA',2,'CODVEN',3,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LMYSQ3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ3','01',2,'NOME DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ3','01',3,'CODICE ARCHIVIO',2,'CODFIL',2,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LMYSQ3','01',4,'CODICE TRACCIATO',2,'CODTRC',3,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LMYSQ3','01',5,'NUMERO CHIAVE',2,'NR-KEY',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LMYSQ3','01',6,'PROGRAMMA FILTRO',2,'FILTRO',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LMYSQ3','01',7,'PARAMETRI FILTRO',2,'PARAMS',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('LMYSQ5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ5','01',2,'NOME DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ5','01',3,'PROGRESSIVO',2,'PROGRE',2,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LMYSQ5','01',4,'RIGA SCRIPT',2,'SCRIPT',3,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LMYSQ6','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ6','01',2,'DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ6','01',3,'STRINGA COMANDO MYSQL',2,'STRMYS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ6','01',4,'STRINGA MYSQL-1',3,'STRMY1',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LMYSQ6','01',5,'STRINGA MYSQL-2',3,'STRMY2',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LMYSQ6','01',6,'STRINGA MYSQL-3',3,'STRMY3',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LMYSQ6','01',7,'NOME CAMPO DA UTILIZZARE PER L''AZIENDA',2,'NOMAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LMYSQ6','01',9,'NOME CAMPO DA UTILIZZARE PER VENDEMMIA',2,'NOMVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LMYSQ7','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ7','01',2,'NOME DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ7','01',3,'PROGRESSIVO',2,'PROGRE',2,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LMYSQ7','01',4,'RIGA SCRIPT',2,'SCRIPT',3,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LMYSQ8','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ8','01',2,'NOME DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ8','01',3,'CODICE ARCHIVIO',2,'CODFIL',2,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LMYSQ8','01',4,'CODICE TRACCIATO',2,'CODTRC',3,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LMYSQ8','01',5,'NOME CAMPO',2,'NOMCAM',4,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LMYSQ9','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ9','01',2,'NOME DATABASE',2,'DATBAS',1,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LMYSQ9','01',3,'CODICE ARCHIVIO',2,'CODFIL',2,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LMYSQ9','01',4,'CODICE TRACCIATO',2,'CODTRC',3,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LMYSQ9','01',5,'NOME CAMPO ESTESO',2,'NOMEST',4,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LMYSQ9','01',6,'TABELLA INDICI CAMPO',2,'INDICI',5,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LMYSQ9','01',7,'INDICE',3,'INDICE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,0,0,'9(4) COMP-3','',9,'',0,0,'' )
,('LMYSQ9','01',8,'VALORE CAMPO',2,'VALORE',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LMYSQ9','01',9,'VALORE CAMPO ALFANUMERICO',2,'VALALF',0,0,0,0,0,0,0,0,0,0,'S',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LMYSQ9','01',10,'VALORE CAMPO NUMERICO',2,'VALNUM',0,0,0,0,0,0,0,0,0,0,'S',1,1,18,20,5,0,'S9(13)V9(5)','',0,'',0,0,'' )
,('LNGG56','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LNGG56','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LNGG56','01',3,'RAGIONE SOCIALE SOCIO',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LNGG56','01',4,'CHIAVE AMOD01',3,'KEYAMO',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LNGG56','01',5,'CODICE CONFERENTE',4,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LNGG56','01',6,'CODICE CANTINA',4,'CODCAN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LNGG56','01',7,'PROVINCIA',4,'CODPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LNPVIN','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LNPVIN','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LNPVIN','01',3,'NOME PROGRAMMA',3,'NOMPGM',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LNPVIN','01',4,'DESCRIZIONE PROGRAMMA',2,'DESPGM',0,0,0,0,0,0,0,0,0,0,'',4,0,60,60,0,0,'X(60)','',0,'',0,0,'' )
,('LNWPSV','01',1,'RECORD',1,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,200,200,0,0,'X(200)','',0,'',0,0,'' )
,('LOE002','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE002','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE002','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE002','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE002','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE002','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE002','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE002','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,'' )
,('LOE002','01',14,'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,'' )
,('LOE002','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE002','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE002','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE002','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE002','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE002','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE002','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE002','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE002','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE002','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE002','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE002','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE002','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE002','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE002','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE002','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE002','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE002','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE002','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE002','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE002','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE002','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE002','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE002','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE002','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE002','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE002','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE002','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE002','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE002','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE002','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE002','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE002','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE002','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE002','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE002','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE002','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE002','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE003','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','00',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','00',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','00',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','00',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','00',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','00',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','00',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,848,848,0,0,'X(848)','',0,'',0,0,'' )
,('LOE003','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','01',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','01',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','01',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','01',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','01',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',8,'ORA PREPARAZIONE ORDINE (HHMM)',2,'ORAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','01',9,'CODIFICA CAMPO ORDFOR (TAB. C01)',2,'QLFFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','01',10,'RAGIONE SOCIALE DESTINATARIO ORDINE',2,'RAGFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',11,'VIA E N. CIVICO DESTINATARIO ORDINE',2,'VIAFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',12,'CAP DESTINATARIO ORDINE',2,'CAPFOR',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOE003','01',13,'LOCALITA'' DESTINATARIO ORDINE',2,'LOCFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',14,'PROVINCIA DESTINATARIO ORDINE',2,'PROFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',15,'NAZIONE DESTINATARIO ORDINE (TAB. C13)',2,'NAZFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',16,'CODIFICA CAMPO CLIORD (TAB. C01)',2,'QLFORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','01',17,'RAGIONE SOCIALE EMITTENTE ORDINE',2,'RAGORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',18,'VIA E N. CIVICO EMITTENTE ORDINE',2,'VIAORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',19,'CAP EMITTENTE ORDINE',2,'CAPORD',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOE003','01',20,'LOCALITA'' EMITTENTE ORDINE',2,'LOCORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',21,'PROVINCIA EMITTENTE ORDINE',2,'PROORD',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',22,'NAZIONE EMITTENTE ORDINE (TAB. C13)',2,'NAZORD',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',23,'P.IVA O CODICE INTESTATARIO FATTURA',2,'CLIFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','01',24,'CODIFICA CAMPO CLIFAT (TAB. C01)',2,'QLFFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','01',25,'RAGIONE SOCIALE INTESTATARIO FATTURA',2,'RAGFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',26,'VIA E N. CIVICO INTESTATARIO FATTURA',2,'VIAFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',27,'CAP INTESTATARIO FATTURA',2,'CAPFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOE003','01',28,'LOCALITA'' INTESTATARIO FATTURA',2,'LOCFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',29,'PROVINCIA INTESTATARIO FATTURA',2,'PROFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',30,'NAZIONE INTESTATARIO FATTURA (TAB. C13)',2,'NAZFAT',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
('LOE003','01',31,'P.IVA O CODICE DESTINATARIO MERCE',2,'CLIMER',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','01',32,'CODIFICA CAMPO CLIMER (TAB. C01)',2,'QLFMER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','01',33,'RAGIONE SOCIALE DESTINATARIO FATTURA',2,'RAGMER',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',34,'VIA E N. CIVICO DESTINATARIO MERCE',2,'VIAMER',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',35,'CAP DESTINATARIO MERCE',2,'CAPMER',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOE003','01',36,'LOCALITA'' DESTINATARIO MERCE',2,'LOCMER',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',37,'PROVINCIA DESTINATARIO MERCE',2,'PROMER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',38,'NAZIONE DESTINATARIO MERCE (TAB. C13)',2,'NAZMER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',39,'P.IVA O CODICE PUNTO CONSEGNA',2,'CLICON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','01',40,'CODIFICA CAMPO CLICON (TAB. C01)',2,'QLFCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','01',41,'RAGIONE SOCIALE PUNTO CONSEGNA',2,'RAGCON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',42,'VIA E N. CIVICO PUNTO CONSEGNA',2,'VIACON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',43,'CAP PUNTO CONSEGNA',2,'CAPCON',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOE003','01',44,'LOCALITA'' PUNTO CONSEGNA',2,'LOCCON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',45,'PROVINCIA PUNTO CONSEGNA',2,'PROCON',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',46,'NAZIONE PUNTO CONSEGNA (TAB. C13)',2,'NAZCON',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',47,'P.IVA O CODICE TRASPORTATORE',2,'FORTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','01',48,'CODIFICA CAMPO FORTRA (TAB. C01)',2,'QLFTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','01',49,'RAGIONE SOCIALE TRASPORTATORE',2,'RAGTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',50,'VIA E N. CIVICO TRASPORTATORE',2,'VIATRA',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',51,'CAP TRASPORTATORE',2,'CAPTRA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOE003','01',52,'LOCALITA'' TRASPORTATORE',2,'LOCTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','01',53,'PROVINCIA TRASPORTATORE',2,'PROTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',54,'NAZIONE TRASPORTATORE (TAB. C13)',2,'NAZTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','01',55,'NUMERO PROPOSTA ORDINE DI RIFERIMENTO',2,'NUMPRP',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOE003','01',56,'NUMERO PROMOZIONE DI RIFERIMENTO',2,'NUMPRM',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOE003','01',57,'IDENTIFICATIVO MESSAGGIO',2,'IDNMSG',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOE003','01',58,'DATA TRASMISSIONE DOCUMENTO',2,'DATTXD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','01',59,'ORA TRASMISSIONE DOCUMENTO (HHMM)',2,'ORATXD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','01',60,'DATA RICEZIONE DOCUMENTO',2,'DATRXD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','01',61,'ORA RICEZIONE DOCUMENTO (HHMM)',2,'ORARXD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','02',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','02',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','02',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','02',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','02',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','02',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','02',8,'DATA RICHIESTA CONSEGNA',2,'DATRIC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','02',9,'ORA RICHIESTA CONSEGNA (HHMM)',2,'ORARIC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','02',10,'DATA CONSEGNA TASSATIVA',2,'DATTAS',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','02',11,'ORA CONSEGNA TASSATIVA (HHMM)',2,'ORATAS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','02',12,'DATA MINIMA DI CONSEGNA (NON PRIMA DEL)',2,'DATMIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','02',13,'ORA MINIMA DI CONSEGNA',2,'ORAMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','02',14,'DATA MASSIMA CONSEGNA',2,'DATMAX',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','02',15,'ORA MASSIMA CONSEGNA',2,'ORAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','02',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,800,800,0,0,'X(800)','',0,'',0,0,'' )
,('LOE003','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','03',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','03',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','03',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','03',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','03',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','03',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','03',8,'PROGRESSIVO',2,'PRGREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','03',9,'TIPO DI COMMENTO (TAB. C15)',2,'TIPNOT',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','03',10,'TESTO LIBERO (5 ELEMENTI)',2,'TESLIB',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',5,'',0,0,'' )
,('LOE003','03',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,494,494,0,0,'X(494)','',0,'',0,0,'' )
,('LOE003','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','04',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','04',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','04',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','04',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','04',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','04',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','04',8,'PROGRESSIVO RATE PAGAMENTO',2,'PRGREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','04',9,'DATA SCADENZA',2,'DATSCA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','04',10,'DATA RIFERIMENTO',2,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','04',11,'CODIFICA DATA INIZIO CALCOLO (TAB. C02)',2,'TIPRIF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','04',12,'GIORNI DILAZIONE',2,'GIODIL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','04',13,'MODALITA'' DILAZIONE (TAB. C03)',2,'MODDIL',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','04',14,'PERCENTUALE PER RATA',2,'PERRAT',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('LOE003','04',15,'IMPORTO RATA',2,'IMPRAT',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE003','04',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,800,800,0,0,'X(800)','',0,'',0,0,'' )
,('LOE003','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','05',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','05',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','05',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','05',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','05',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','05',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','05',8,'TIPO PAGAMENTO (TAB. C04)',2,'TIPPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','05',9,'MODALITA'' PAGAMENTO (TAB. C05)',2,'MODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','05',10,'CONDIZIONI SPEDIZIONE (TAB. C08)',2,'CNDPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','05',11,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOE003','05',12,'DESCRIZIONE PAGAMENTO',2,'DESPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','05',13,'ABI+CAB+C/C',2,'BANPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','05',14,'FACTORING',2,'FACPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','05',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,724,724,0,0,'X(724)','',0,'',0,0,'' )
,('LOE003','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','06',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','06',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','06',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','06',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','06',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','06',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','06',8,'PROGRESSIVO RIGA',2,'IDRORD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE003','06',9,'CODICE IMBALLO (TRADE UNIT) (CARTONE)',2,'CODATU',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','06',10,'CODICE ARTICOLO (BRIK/BOTTIGLIA)',2,'CODACU',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','06',11,'CODIFICA CAMPO CODACU (TAB. C06)',2,'QLFACU',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE003','06',12,'DESCRIZIONE ARTICOLO FORNITORE',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',3,'',0,0,'' )
,('LOE003','06',13,'RIFERIMENTO LOTTO',2,'RIFLOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','06',14,'QUANTITA'' ORDINATA',2,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE003','06',15,'UNITA'' MISURA QTA ORDINATA (TAB. C07)',2,'UMSORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','06',16,'PREZZO UNITARIO NETTO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE003','06',17,'TIPO PREZZO (TAB. C14)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','06',18,'NUMERO UNITA'' DI PREZZO',2,'NUMUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE003','06',19,'UNITA'' DI MISURA UNITA'' PREZZO (TAB.C07)',2,'UMSPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','06',20,'RIFERIMENTO CONTRATTO',2,'RIFCNT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','06',21,'RIFERIMENTO PROMOZIONE',2,'RIFPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','06',22,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,48,48,0,0,'X(48)','',0,'',0,0,'' )
,('LOE003','06',23,'CODIFICA CAMPO CODATU (TAB. C06)',2,'QLFATU',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','06',24,'PEZZI PER CARTONE',2,'QTAIMB',0,0,0,0,0,0,0,0,0,0,'',1,0,15,15,0,0,'9(15)','',0,'',0,0,'' )
,('LOE003','06',25,'UNITA'' DI MISURA QTAIMB (TAB. C07)',2,'UMSIMB',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','06',26,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,439,439,0,0,'X(439)','',0,'',0,0,'' )
,('LOE003','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','07',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','07',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','07',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','07',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','07',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','07',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','07',8,'INDICATORE SEQUENZA DI CALCOLO',2,'PRGREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','07',9,'CODIFICA SCONTO (TAB. C09)',2,'QLFMAG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','07',10,'DESCRIZIONE SCONTO',2,'DESSCO',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','07',11,'TIPO SCONTO (TAB. C10)',2,'QLFSCO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE003','07',12,'PERCENTUALE SCONTO',2,'SCOPER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,4,0,'999V9(4)','',0,'',0,0,'' )
,('LOE003','07',13,'VALORE SCONTO',2,'SCOVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE003','07',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,780,780,0,0,'X(780)','',0,'',0,0,'' )
,('LOE003','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE003','08',2,'P.IVA O CODICE DEST. ORDINE',2,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','08',3,'P.IVA O CODICE EMITTENTE ORDINE',2,'CLIORD',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE003','08',4,'STRINGA UNIVOCA DI IDENTIFICAZIONE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE003','08',5,'DATA ORDINE AAAAMMGG',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE003','08',6,'TIPOLOGIA ORDINE (TAB. C00)',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','08',7,'TIPO RECORD',2,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE003','08',8,'TIPO QTA DI CONTROLLO (TAB. C35)',2,'TIPCNT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','08',9,'QUANTITA'' DI CONTROLLO',2,'QTACNT',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE003','08',10,'UNITA'' DI MISURA QTACNT (TAB. C07)',2,'UMSCNT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE003','08',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,827,827,0,0,'X(827)','',0,'',0,0,'' )
,('LOE004','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE004','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE004','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE004','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE004','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE004','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE004','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE004','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,'' )
,('LOE004','01',14,'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,'' )
,('LOE004','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE004','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE004','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE004','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE004','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE004','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE004','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE004','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE004','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE004','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE004','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE004','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE004','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE004','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE004','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE004','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE004','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE004','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE004','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE004','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE004','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE004','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE004','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE004','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE004','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE004','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE004','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE004','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE004','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE004','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE004','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE004','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE004','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE004','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE004','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE004','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE004','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE005','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE005','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE005','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE005','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE005','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE005','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE005','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE005','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,'' )
,('LOE005','01',14,'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,'' )
,('LOE005','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE005','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE005','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE005','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE005','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE005','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE005','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE005','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE005','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE005','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',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
('LOE005','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE005','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE005','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE005','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE005','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE005','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE005','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE005','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE005','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE005','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE005','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE005','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE005','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE005','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE005','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE005','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE005','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE005','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE005','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE005','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE005','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE005','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE005','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE005','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE005','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE005','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE005','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE005','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE005','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE005','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE005','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE005','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE005','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE005','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE006','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE006','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE006','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE006','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE006','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE006','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE006','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE006','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,'' )
,('LOE006','01',14,'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,'' )
,('LOE006','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE006','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE006','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE006','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE006','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE006','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE006','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE006','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE006','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE006','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE006','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE006','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE006','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE006','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE006','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE006','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE006','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE006','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE006','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE006','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE006','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE006','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE006','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE006','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE006','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE006','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE006','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE006','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE006','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE006','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE006','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE006','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE006','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE006','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE006','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE006','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE006','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE007','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE007','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','01',2,'CHIAVE ORDINE',2,'KEY001',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
('LOE007','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE007','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE007','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE007','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE007','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE007','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE007','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,'' )
,('LOE007','01',14,'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,'' )
,('LOE007','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE007','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE007','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE007','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE007','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE007','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE007','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE007','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE007','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE007','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE007','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE007','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE007','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE007','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE007','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE007','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE007','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE007','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE007','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE007','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE007','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE007','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE007','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE007','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE007','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE007','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE007','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE007','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE007','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE007','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE007','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE007','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE007','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE007','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE007','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE007','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE007','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE007','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE008','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE008','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE008','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE008','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE008','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE008','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE008','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE008','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,'' )
,('LOE008','01',14,'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,'' )
,('LOE008','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE008','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE008','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE008','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE008','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE008','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE008','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE008','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE008','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE008','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE008','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE008','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE008','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE008','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE008','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE008','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE008','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE008','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE008','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE008','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE008','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE008','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE008','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE008','06',16,'ORA CONSEGNA 2',2,'ORACO2',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
('LOE008','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE008','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE008','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE008','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE008','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE008','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE008','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE008','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE008','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE008','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE008','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE008','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE008','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE009','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE009','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE009','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE009','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE009','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE009','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE009','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE009','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,'' )
,('LOE009','01',14,'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,'' )
,('LOE009','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE009','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE009','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE009','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE009','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE009','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE009','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE009','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE009','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE009','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE009','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE009','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE009','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE009','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE009','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE009','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE009','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE009','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE009','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE009','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE009','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE009','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE009','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE009','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE009','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE009','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE009','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE009','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE009','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE009','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE009','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE009','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE009','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE009','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE009','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE009','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE009','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE009','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE009','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE009','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE009','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE009','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE009','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE009','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE010','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,262,262,0,0,'X(262)','',0,'',0,0,'' )
,('LOE010','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','01',4,'CODICE MITTENTE (AMMERICANI)',2,'CODMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','01',5,'TIPO CODICE MITTENTE 14=C.EAN',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE010','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE010','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE010','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE010','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE010','01',11,'NUMERO DOCUMENTO AMMERICANI',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE010','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,'' )
,('LOE010','01',14,'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,'' )
,('LOE010','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE010','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE010','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE010','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,97,97,0,0,'X(97)','',0,'',0,0,'' )
,('LOE010','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','02',4,'COD. FOR. ASSEGNATO DA AMMERICANI',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE010','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,46,46,0,0,'X(46)','',0,'',0,0,'' )
,('LOE010','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','03',3,'TIPO RECORD NAB (ID. AMMERICANI)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','03',4,'CODICE COMPRATORE (AMMERICANI)',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE010','03',5,'92 = CODICE COMPRATORE',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,46,46,0,0,'X(46)','',0,'',0,0,'' )
,('LOE010','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','04',4,'CODICE P. CONSEGNA AMMERICANI',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE010','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,46,46,0,0,'X(46)','',0,'',0,0,'' )
,('LOE010','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','05',4,'CODICE CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE010','05',5,'92=ASSEGNATO DAL COMPRATORE',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE010','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE010','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,46,46,0,0,'X(46)','',0,'',0,0,'' )
,('LOE010','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE010','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE010','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE010','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE010','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE010','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE010','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE010','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE010','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE010','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE010','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,232,232,0,0,'X(232)','',0,'',0,0,'' )
,('LOE010','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE010','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE010','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','07',12,'QUANTITA'' ORDINATA PEZZI ???',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE010','07',13,'UNITA'' DI MISURA PCE ???',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE010','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','07',16,'U.M. PREZZO CU CONSUMER UNIT',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE010','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE010','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE010','08',5,'U.M. TOTALE CARTONI ORDINATI KGM ???',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','08',6,'NUMERO TOTALE RIGHE ORDINE',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE010','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,229,229,0,0,'X(229)','',0,'',0,0,'' )
,('LOE010','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE010','09',3,'TIPO RECORD FTX NOTE TESTATA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','09',4,'DIVISA = EUR',2,'DIVISA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE010','09',5,'NOTE',2,'NOTDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,210,210,0,0,'X(210)','',0,'',0,0,'' )
,('LOE010','09',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,49,49,0,0,'X(49)','',0,'',0,0,'' )
,('LOE011','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE011','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE011','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE011','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE011','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE011','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE011','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE011','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,'' )
,('LOE011','01',14,'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,'' )
,('LOE011','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE011','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE011','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE011','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE011','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE011','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE011','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE011','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE011','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE011','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE011','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE011','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE011','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE011','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE011','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE011','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE011','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE011','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE011','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE011','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE011','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE011','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE011','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE011','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE011','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE011','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE011','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE011','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE011','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE011','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE011','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE011','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE011','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE011','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE011','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE011','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE011','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE011','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE012','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE012','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE012','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE012','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE012','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE012','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE012','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE012','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE012','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,'' )
,('LOE012','01',14,'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,'' )
,('LOE012','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE012','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE012','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE012','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE012','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE012','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE012','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE012','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE012','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE012','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE012','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE012','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE012','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE012','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE012','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE012','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE012','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE012','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE012','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE012','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE012','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE012','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE012','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE012','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE012','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE012','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE012','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE012','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE012','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE012','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE012','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE012','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE012','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE012','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE012','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE012','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE012','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE013','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,593,593,0,0,'X(593)','',0,'',0,0,'' )
,('LOE013','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','01',4,'SYNTAX IDENTIFIER',2,'SYNTID',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE013','01',5,'SYNTAX VERSION NUMBER',2,'SYNTVE',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LOE013','01',6,'PARTITA IVA MITTENTE (AH)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','01',7,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE013','01',8,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE013','01',9,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','01',10,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE013','01',11,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE013','01',12,'DATA PREPARAZIONE',2,'DATPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE013','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,'' )
,('LOE013','01',14,'GIORNO',3,'GGGPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE013','01',15,'MESE',3,'MMMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE013','01',16,'ANNO',3,'AAAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE013','01',17,'ORA PREPARAZIONE',2,'ORAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE013','01',18,'INTERCHANGE CONTROL REFERENCE',2,'ICTRRE',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE013','01',19,'RECIPIENT''S REF',2,'RECREF',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE013','01',20,'RECIPIENT''S REF QUALIFIER',2,'RECRQU',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE013','01',21,'APPLICATION REFERENCE',2,'APPREF',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE013','01',22,'PROCESSING PRIORITY CODE',2,'PROPRI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOE013','01',23,'RICHIESTA RISPOSTA',2,'ACKREQ',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LOE013','01',24,'COMM AGREEMENT ID',2,'COMAGR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','01',25,'TEST ID',2,'TESTID',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LOE013','01',26,'NOME DOCUMENTO',2,'DOCNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','01',27,'CODE LIST QUALIFIER',2,'DOCQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','01',28,'CODE LIST ............',2,'DOCQU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','01',29,'NOME DOCUMENTO',2,'NOMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','01',30,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','01',31,'MESSAGE FUNCTION',2,'MESFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','01',32,'TIPO RISPOSTA',2,'RISTIP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','01',33,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,305,305,0,0,'X(305)','',0,'',0,0,'' )
,('LOE013','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA ??)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','04',4,'QUALIFICATORE PARTE',2,'PARQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','04',5,'PARTY ID',2,'PARIDE',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',6,'CODE LIST ID',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','04',7,'CODE LIST ID ......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','04',8,'INDIRIZZO',2,'INDIR1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',9,'INDIRIZZO',2,'INDIR2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',10,'INDIRIZZO',2,'INDIR3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',11,'INDIRIZZO',2,'INDIR4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',12,'INDIRIZZO',2,'INDIR5',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',13,'PARTY NAME',2,'PARNA1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',14,'PARTY NAME',2,'PARNA2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',15,'PARTY NAME',2,'PARNA3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',16,'PARTY NAME',2,'PARNA4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',17,'PARTY NAME',2,'PARNA5',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',18,'PARTY NAME FORMAT',2,'PARCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','04',19,'LOCALITA''',2,'LOCAL1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',20,'LOCALITA''',2,'LOCAL2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',21,'LOCALITA''',2,'LOCAL3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',22,'LOCALITA''',2,'LOCAL4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',23,'CITY NAME',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','04',24,'REGIONE ????',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE013','04',25,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE013','04',26,'CODICE NAZIONE',2,'NOMPAE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','06',4,'QUALIFICATORE DATA',2,'DATQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','06',5,'DATA',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','06',6,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','06',7,'ANNO',3,'AAAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE013','06',8,'MESE',3,'MMMORD',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE013','06',9,'GIORNO',3,'GGGORD',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE013','06',10,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,27,27,0,0,'X(27)','',0,'',0,0,'' )
,('LOE013','06',11,'FORMATO DATA',2,'DATFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','06',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,552,552,0,0,'X(552)','',0,'',0,0,'' )
,('LOE013','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE013','07',5,'RICHIESTA',2,'ACKNOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','07',6,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','07',7,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','07',8,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','07',9,'CODE LIST QUALIFIER...',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','07',10,'SUB LINEA',2,'SUBLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','07',11,'NUMERO SUB LINEA ??????',2,'NUMRI1',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE013','07',12,'LIVELLO',2,'CONLEV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE013','07',13,'CONFIGURAZIONE',2,'CONCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','07',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,526,526,0,0,'X(526)','',0,'',0,0,'' )
,('LOE013','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','09',3,'TIPO RECORD PAI PAGAMENTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','09',4,'CONDIZIONI PAGAMENTO',2,'PAICON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE013','09',5,'GARANZIA PAGAMENTO',2,'PAIGAR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','09',6,'SIGNIFICATO PAGAMENTO',2,'PAITIP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','09',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','09',8,'CODE LIST .........',2,'CODLRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','09',9,'PAYMENT CHANNEL',2,'PAICHA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','09',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,575,575,0,0,'X(575)','',0,'',0,0,'' )
,('LOE013','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','10',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','10',3,'TIPO RECORD ALI INF. ADDIZIONALI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',4,'PAESE DI ORIGINE',2,'PAEORI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',5,'REGIME FISCALE',2,'REGFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',6,'CONDIZIONI SPECIALI',2,'SPECON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',7,'CONDIZIONI SPECIALI 1',2,'SPECO1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',8,'CONDIZIONI SPECIALI 2',2,'SPECO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',9,'CONDIZIONI SPECIALI 3',2,'SPECO3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',10,'CONDIZIONI SPECIALI 4',2,'SPECO4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','10',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,572,572,0,0,'X(572)','',0,'',0,0,'' )
,('LOE013','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','11',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','11',3,'TIPO RECORD FTX TESTO LIBERO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','11',4,'SOGGETTO',2,'TESQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','11',5,'FUNZIONE',2,'TESFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','11',6,'CODICE TESTO',2,'TESCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','11',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','11',8,'CODE LIST QUALIFIER ......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','11',9,'TESTO LIBERO',2,'TREET1',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','11',10,'TESTO LIBERO',2,'TREET2',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','11',11,'TESTO LIBERO',2,'TREET3',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','11',12,'TESTO LIBERO',2,'TREET4',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','11',13,'TESTO LIBERO',2,'TREET5',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','11',14,'CODICE LINGUA',2,'CODLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','11',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,225,225,0,0,'X(225)','',0,'',0,0,'' )
,('LOE013','12',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','12',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','12',3,'TIPO RECORD REF REFERENCE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','12',4,'REFERENCE QUALIFIER',2,'REFQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','12',5,'REFERENCE NUMBER',2,'REFNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','12',6,'LINE NUMBER',2,'LINNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE013','12',7,'REFERENCE VERSION',2,'REFVER',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','12',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,514,514,0,0,'X(514)','',0,'',0,0,'' )
,('LOE013','13',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','13',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','13',3,'TIPO RECORD LOC/LO2 PLACE ID',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',4,'PLACE QUALIFIER',2,'PLAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',5,'PLACE ID',2,'PLANID',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE013','13',6,'CODE LIST',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',7,'CODE LIST ...........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',8,'PLACE/LOCATION',2,'PLALOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','13',9,'PLACE RELATED',2,'PLAREL',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE013','13',10,'CODE LIST QUALIFIER',2,'CODLI2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',11,'CODE LIST ......',2,'CODLR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',12,'PLACE ONE',2,'PLAONE',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','13',13,'PLACE TWO',2,'PLATWO',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE013','13',14,'CODE LIST QUALIFIER',2,'CODLI3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',15,'CODE LIST QUALIFIER .......',2,'CODLR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',16,'PLACE 2',2,'PLADUE',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','13',17,'RELATION CODED',2,'RELCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','13',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,284,284,0,0,'X(284)','',0,'',0,0,'' )
,('LOE013','14',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','14',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','14',3,'TIPO RECORD FII FINANCIAL INSTRUCTION',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',4,'PARTY QUALIFIER',2,'PARQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',5,'ACCOUNT HOLDER NUMBER',2,'ACCNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','14',6,'ACCOUNT NAME',2,'ACCNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','14',7,'ACCOUNT HOLDER NAME',2,'ACCNA1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','14',8,'VALUTA',2,'CURCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',9,'BANCA ?????',2,'INSNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,11,11,0,0,'X(11)','',0,'',0,0,'' )
,('LOE013','14',10,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',11,'CODE LIST ......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',12,'INSTITUTION BRANCH',2,'INSBRA',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','14',13,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',14,'CODE LIST QUALIFIER .......',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',15,'INSTITUTION NAME 2',2,'INSNA2',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','14',16,'INSTITUTION BRANCH PLACE',2,'INSBRP',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','14',17,'PAESE',2,'NOMPAE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','14',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE013','15',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','15',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','15',3,'TIPO RECORD CTA INFORMAZIONI CONTATTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','15',4,'FUNZIONE CONTATTO',2,'CONFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','15',5,'REPARTO/DIPENDENTE',2,'DIPIDE',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','15',6,'REPARTO/DIPENDENTE',2,'DIPNOM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','15',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,538,538,0,0,'X(538)','',0,'',0,0,'' )
,('LOE013','16',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','16',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','16',3,'TIPO RECORD COM COMMUNICATION CONTACT',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','16',4,'NUMERO COMUNICAZIONE',2,'CONNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('LOE013','16',5,'CANALE COMUNICAZIONE',2,'COMCHA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','16',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,490,490,0,0,'X(490)','',0,'',0,0,'' )
,('LOE013','17',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','17',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','17',3,'TIPO RECORD TAX',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',4,'TAX FUNTION',2,'TAXFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',5,'TAX TYPE',2,'TAXTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',6,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',7,'CODE LIST QUALIFIER .............',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',8,'TIPO TASSA',2,'TAXTY1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','17',9,'TAX ACCOUNT',2,'TAXACC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE013','17',10,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',11,'CODE LIST QUALIFIER ...............',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE013','17',12,'TAX ASS............',2,'TAXASS',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOE013','17',13,'TAX RATE ID',2,'TAXRID',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('LOE013','17',14,'CODE LIST QUALIFIER',2,'CODLI2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',15,'CODE LIST QUALIFIER ..............',2,'CODLR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',16,'TAX RATE',2,'TAXRAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','17',17,'TAX RATE BASIS',2,'TAXRAB',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LOE013','17',18,'CODE LIST',2,'CODLI3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',19,'CODE LIST ..............',2,'CODLR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',20,'TAX CATEGORY CODED',2,'TAXCAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','17',21,'PARTY TAX',2,'PARTAX',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOE013','17',22,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,448,448,0,0,'X(448)','',0,'',0,0,'' )
,('LOE013','18',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','18',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','18',3,'TIPO RECORD CUX VALUTA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',4,'QUALIFICATORE VALUTA',2,'CURQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',5,'CODICE VALUTA',2,'CURCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',6,'QUALIFICATORE VALUTA 1',2,'CURQU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',7,'CAMBIO',2,'CURRAT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE013','18',8,'QUALIFICATORE VALUTA 2',2,'CURQU2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',9,'ALTRA VALUTA',2,'CURCO1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',10,'QUALIFICATORE VALUTA 3',2,'CURQU3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',11,'ALTRO CAMBIO',2,'CURRA1',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE013','18',12,'VALORE CAMBIO',2,'RATEXC',0,0,0,0,0,0,0,0,0,0,'',1,0,12,13,3,0,'9(9)V999','',0,'',0,0,'' )
,('LOE013','18',13,'CURRENCY MARKET EXCHANGE',2,'CURMAR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','18',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,552,552,0,0,'X(552)','',0,'',0,0,'' )
,('LOE013','19',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','19',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','19',3,'TIPO RECORD PAT TERMINI DI PAGAMENTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','19',4,'QUALIFICATORE TERMINI PAGAMENTO',2,'PAYQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','19',5,'IDENTIFICAZIONE TERMINI DI PAGAMENTO',2,'PAYTER',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','19',6,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','19',7,'CODE LIST QUALIFIER...........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','19',8,'TERMINI DI PAGAMENTO',2,'PAYTE1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','19',9,'TERMINI DI PAGAMENTO',2,'PAYTE2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','19',10,'PAYMENT TIME REFERENCE',2,'PAYREF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','19',11,'TIME RELATION',2,'TIMREL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','19',12,'TIPO DI PERIODO',2,'TYPPER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','19',13,'NUMERO PERIODI',2,'NUMPER',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE013','19',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,485,485,0,0,'X(485)','',0,'',0,0,'' )
,('LOE013','20',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','20',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','20',3,'TIPO RECORD PCD PERCENTUALI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','20',4,'QUALIFICATORE PERCENTUALE',2,'PERQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','20',5,'PERCENTUALE',2,'PERCEN',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,3,0,'9(7)V999','',0,'',0,0,'' )
,('LOE013','20',6,'PERCENTUALE BASE',2,'PERBAS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','20',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','20',8,'CODE LIST QUALIFIER...........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','20',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,571,571,0,0,'X(571)','',0,'',0,0,'' )
,('LOE013','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','21',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','21',3,'TIPO RECORD MOA IMPORTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','21',4,'QUALIFICATORE IMPORTO',2,'MOAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','21',5,'IMPORTO',2,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,4,0,'9(14)V9(4)','',0,'',0,0,'' )
,('LOE013','21',6,'VALUTA',2,'CURCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','21',7,'QUALIFICATORE VALUTA',2,'CURQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','21',8,'STATUS',2,'STATID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','21',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,563,563,0,0,'X(563)','',0,'',0,0,'' )
,('LOE013','22',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','22',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','22',3,'TIPO RECORD TDT DETTAGLIO TRASPORTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',4,'QUALIFICATORE TRASPORTO',2,'TRAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',5,'NUMERO RIFERIMENTO',2,'REFNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','22',6,'MODALITA'' TRASPORTO',2,'TRAMOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',7,'MODALITA'' TRASPORTO 1',2,'TRAMO1',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','22',8,'TYPE OF MEANS OF TRANSPORT ID',2,'TRANID',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LOE013','22',9,'TYPE OF MEANS OF TRANSPORT',2,'TRADID',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','22',10,'CARRIER ID',2,'CARNID',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','22',11,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',12,'CODE LIST QUALIFIER.................',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',13,'CARRIER NAME',2,'CARNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','22',14,'TRANSIT DIRECTION',2,'TRADIR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',15,'EXCESS TRANSPORTATION REASON',2,'TRAEXC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',16,'EXCESS TRANSPORTATION RESPONSABILITY',2,'TRAEXR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',17,'CUSTOMER AUTHORIZATION ID',2,'CUSAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','22',18,'ID OF MEANS OF TRANSPORT',2,'TRAIDM',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE013','22',19,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',20,'CODE LIST QUALIFIER..............',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',21,'ID OF MEANS OF TRANSPORT',2,'TRAID1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','22',22,'NAZIONALITA''..............',2,'TRAPAE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',23,'RESPONSABILE TRASPORTO',2,'TRAPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','22',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,388,388,0,0,'X(388)','',0,'',0,0,'' )
,('LOE013','23',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','23',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','23',3,'TIPO RECORD TOD DETTAGLIO TRASPORTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','23',4,'QUALIFICATORE TERMINI TRASPORTO',2,'TODQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','23',5,'CAMBIAMENTO METODO DI PAGAMENTO',2,'TODMET',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','23',6,'TERMINI DI CONSEGNA',2,'TODDEV',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','23',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','23',8,'CODE LIST QUALIFIER.................',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','23',9,'TERMINI DI TRASPORTO',2,'TODDID',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','23',10,'TERMINI DI TRASPORTO',2,'TODDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','23',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,'' )
,('LOE013','24',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','24',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','24',3,'TIPO RECORD PAC IMBALLAGGI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',4,'NUMERO COLLI',2,'PACNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOE013','24',5,'LIVELLO IMBALLAGGI',2,'PACLEV',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',6,'INFORMAZIONI IMBALLAGGI',2,'PACINF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',7,'CONDIZIONI IMBALLAGGI',2,'PACCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',8,'TIPO IMBALLAGGI',2,'PACTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE013','24',9,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',10,'CODE LIST QUALIFIER.......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',11,'TIPO IMBALLAGGI',2,'PACTY1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','24',12,'TIPO DESCRIZIONE',2,'TYPNID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',13,'TIPO IMBALLAGGI',2,'PACTY1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','24',14,'TIPO NUMERO',2,'NUMNID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',15,'TIPO IMBALLAGGI',2,'PACTY3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','24',16,'TIPO NUMERO',2,'NUMID1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',17,'VUOTI CAUZIONATI ????',2,'PACVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',18,'VUOTI CAUZIONATI ????',2,'PACVU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','24',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,433,433,0,0,'X(433)','',0,'',0,0,'' )
,('LOE013','25',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','25',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','25',3,'TIPO RECORD ALC ALLOWANCE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',4,'ALLOWANCE ID',2,'ALLNID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',5,'ALLOWANCE NUMBER',2,'ALLNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','25',6,'ALLOWANCE DESCRIPTION',2,'ALLDES',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',7,'ALLOWANCE SET',2,'ALLSET',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',8,'SEQUENZA',2,'ALLSEQ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',9,'SERVIZI SPECIALI',2,'SPESER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',10,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',11,'CODE LIST QUALIFIER.....',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','25',12,'SERVIZI SPECIALI',2,'SPESE1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','25',13,'SERVIZI SPECIALI',2,'SPESE2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','25',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,467,467,0,0,'X(467)','',0,'',0,0,'' )
,('LOE013','26',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','26',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','26',3,'TIPO RECORD PIA ADD PROD ID',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',4,'QUALIFICATORE PROD',2,'PIAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',5,'ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','26',6,'TIPO ARTICOLO',2,'TYPART',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',8,'CODE LIST QUALIFIER.....',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',9,'ARTICOLO',2,'CODAR1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','26',10,'TIPO ARTICOLO',2,'TYPAR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',11,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',12,'CODE LIST QUALIFIER....',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',13,'ARTICOLO',2,'CODAR2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','26',14,'TIPO ARTICOLO',2,'TYPAR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',15,'CODE LIST QUALIFIER',2,'CODLI2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',16,'CODE LIST QUALIFIER.........',2,'CODLR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',17,'ARTICOLO',2,'CODAR3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','26',18,'TIPO ARTICOLO',2,'TYPAR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',19,'CODE LIST QUALIFIER',2,'CODLI3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',20,'CODE LIST QUALIFIER......',2,'CODLR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',21,'ARTICOLO',2,'CODAR4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','26',22,'TIPO ARTICOLO',2,'TYPAR4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',23,'CODE LIST QUALIFIER',2,'CODLI4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',24,'CODE LIST QUALIFIER......',2,'CODLR4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','26',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,370,370,0,0,'X(370)','',0,'',0,0,'' )
,('LOE013','27',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','27',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','27',3,'TIPO RECORD IMD DESCRIZIONE ARTICOLO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','27',4,'QUALIFICATORE',2,'IMDTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','27',5,'CARATTERISTICHE',2,'IMDCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','27',6,'IDENTIFICAZIONE',2,'IMDNID',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE013','27',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','27',8,'CODE LIST QUALIFIER.....',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','27',9,'ARTICOLO',2,'ARTDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','27',10,'ARTICOLO',2,'ARTDE1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','27',11,'LINGUAGGIO',2,'CODLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','27',12,'SURFACE INDICATOR',2,'SURIND',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','27',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,488,488,0,0,'X(488)','',0,'',0,0,'' )
,('LOE013','28',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','28',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','28',3,'TIPO RECORD MEA MISURE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','28',4,'APPLICAZIONE',2,'MEAAPP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','28',5,'DIMENSIONI',2,'MEADIM',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','28',6,'SIGNIFICATO',2,'MEASIG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','28',7,'ATTRIBUTI',2,'MEAATT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','28',8,'ATTRIBUTI',2,'MEAAT1',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE013','28',9,'UNITA'' DI MISURA',2,'MEAUNI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','28',10,'VALORE',2,'MEAVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE013','28',11,'RANGE MINIMO',2,'RANMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE013','28',12,'RANGE MASSIMO',2,'RANMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE013','28',13,'CIFRE SIGNIFICATIVE',2,'SIGDIG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE013','28',14,'SURFACE INDICATOR',2,'SURIND',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','28',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,449,449,0,0,'X(449)','',0,'',0,0,'' )
,('LOE013','29',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','29',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','29',3,'TIPO RECORD QTY QUANTITA''',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','29',4,'QUALIFICATORE QUANTITA''',2,'QTYQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','29',5,'QUANTITA''',2,'QTARIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE013','29',6,'UNITA'' DI MISURA',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','29',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,572,572,0,0,'X(572)','',0,'',0,0,'' )
,('LOE013','30',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','30',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','30',3,'TIPO RECORD PRI PREZZI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','30',4,'QUALIFICATORE PREZZO',2,'PRIQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','30',5,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,4,0,'9(11)V9(4)','',0,'',0,0,'' )
,('LOE013','30',6,'TIPO PREZZO',2,'PRITYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','30',7,'QUALIFICATORE PREZZO 1',2,'PRIQU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','30',8,'UNITA'' BASE PREZZO',2,'PRIUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('LOE013','30',9,'UNITA'' DI MISURA',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','30',10,'SUB LINEA',2,'SUBLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','30',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,554,554,0,0,'X(554)','',0,'',0,0,'' )
,('LOE013','31',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','31',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','31',3,'TIPO RECORD PCI ID IMBALLAGGI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','31',4,'ISTRUZIONI MARCHIATURA',2,'MATINS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE013','31',5,'MARCHIATURE',2,'MARK01',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',6,'MARCHIATURE',2,'MARK02',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',7,'MARCHIATURE',2,'MARK03',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',8,'MARCHIATURE',2,'MARK04',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',9,'MARCHIATURE',2,'MARK05',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',10,'MARCHIATURE',2,'MARK06',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',11,'MARCHIATURE',2,'MARK07',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',12,'MARCHIATURE',2,'MARK08',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',13,'MARCHIATURE',2,'MARK09',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',14,'MARCHIATURE',2,'MARK10',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE013','31',15,'CONTAINER STATUS',2,'CONSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','31',16,'TIPO DI MARCHIO',2,'MARTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','31',17,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE013','31',18,'CODE LIST QUALIFIER........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE013','31',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,228,228,0,0,'X(228)','',0,'',0,0,'' )
,('LOE013','32',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','32',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE013','32',3,'TIPO RECORD CNT SOMMARIO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','32',4,'QUALIFICATORE',2,'CONQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','32',5,'VALORE',2,'CONVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE013','32',6,'UNITA'' DI MISURA',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE013','32',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,569,569,0,0,'X(569)','',0,'',0,0,'' )
,('LOE014','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE014','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE014','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE014','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE014','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE014','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE014','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE014','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,'' )
,('LOE014','01',14,'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,'' )
,('LOE014','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE014','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE014','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE014','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE014','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE014','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE014','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE014','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE014','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE014','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE014','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE014','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE014','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE014','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE014','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE014','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','06',6,'ANNO CONSEGNA',3,'AAACON',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
('LOE014','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE014','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE014','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE014','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE014','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE014','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE014','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE014','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE014','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE014','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE014','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE014','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE014','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE014','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE014','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE014','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE014','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE014','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE014','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE014','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE014','09',3,'TIPO RECORD DES DATI AGGIUNTIVI ARTICOLO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE014','09',4,'NUMERO CARTONI PER STRATO',2,'CARSTR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE014','09',5,'FILLER FISSO TRATTINO',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOE014','09',6,'NUMERO STRATI',2,'NUMSTR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE014','09',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,554,554,0,0,'X(554)','',0,'',0,0,'' )
,('LOE015','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE015','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE015','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE015','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE015','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE015','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE015','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE015','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,'' )
,('LOE015','01',14,'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,'' )
,('LOE015','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE015','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE015','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE015','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE015','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE015','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE015','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE015','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE015','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE015','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE015','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE015','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE015','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE015','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE015','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE015','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE015','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE015','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE015','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE015','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE015','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE015','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE015','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE015','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE015','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE015','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE015','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE015','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE015','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE015','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE015','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE015','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE015','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE015','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE015','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE015','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE015','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE015','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE016','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE016','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE016','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE016','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE016','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE016','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE016','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE016','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,'' )
,('LOE016','01',14,'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,'' )
,('LOE016','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE016','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE016','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE016','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE016','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE016','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE016','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE016','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE016','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE016','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE016','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE016','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE016','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE016','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE016','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE016','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE016','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE016','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE016','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE016','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE016','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE016','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE016','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE016','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE016','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE016','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE016','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE016','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE016','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE016','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE016','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE016','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE016','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE016','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE016','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE016','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE016','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE016','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE017','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,593,593,0,0,'X(593)','',0,'',0,0,'' )
,('LOE017','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','01',4,'SYNTAX IDENTIFIER',2,'SYNTID',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE017','01',5,'SYNTAX VERSION NUMBER',2,'SYNTVE',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LOE017','01',6,'PARTITA IVA MITTENTE (AH)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','01',7,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE017','01',8,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE017','01',9,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','01',10,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE017','01',11,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE017','01',12,'DATA PREPARAZIONE',2,'DATPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE017','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE017','01',14,'GIORNO',3,'GGGPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE017','01',15,'MESE',3,'MMMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE017','01',16,'ANNO',3,'AAAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE017','01',17,'ORA PREPARAZIONE',2,'ORAPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE017','01',18,'INTERCHANGE CONTROL REFERENCE',2,'ICTRRE',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE017','01',19,'RECIPIENT''S REF',2,'RECREF',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE017','01',20,'RECIPIENT''S REF QUALIFIER',2,'RECRQU',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOE017','01',21,'APPLICATION REFERENCE',2,'APPREF',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE017','01',22,'PROCESSING PRIORITY CODE',2,'PROPRI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOE017','01',23,'RICHIESTA RISPOSTA',2,'ACKREQ',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LOE017','01',24,'COMM AGREEMENT ID',2,'COMAGR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','01',25,'TEST ID',2,'TESTID',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LOE017','01',26,'NOME DOCUMENTO',2,'DOCNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','01',27,'CODE LIST QUALIFIER',2,'DOCQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','01',28,'CODE LIST ............',2,'DOCQU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','01',29,'NOME DOCUMENTO',2,'NOMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','01',30,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','01',31,'MESSAGE FUNCTION',2,'MESFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','01',32,'TIPO RISPOSTA',2,'RISTIP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','01',33,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,305,305,0,0,'X(305)','',0,'',0,0,'' )
,('LOE017','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA ??)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','04',4,'QUALIFICATORE PARTE',2,'PARQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','04',5,'PARTY ID',2,'PARIDE',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',6,'CODE LIST ID',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','04',7,'CODE LIST ID ......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','04',8,'INDIRIZZO',2,'INDIR1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',9,'INDIRIZZO',2,'INDIR2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',10,'INDIRIZZO',2,'INDIR3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',11,'INDIRIZZO',2,'INDIR4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',12,'INDIRIZZO',2,'INDIR5',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',13,'PARTY NAME',2,'PARNA1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',14,'PARTY NAME',2,'PARNA2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',15,'PARTY NAME',2,'PARNA3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',16,'PARTY NAME',2,'PARNA4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',17,'PARTY NAME',2,'PARNA5',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',18,'PARTY NAME FORMAT',2,'PARCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','04',19,'LOCALITA''',2,'LOCAL1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',20,'LOCALITA''',2,'LOCAL2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',21,'LOCALITA''',2,'LOCAL3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',22,'LOCALITA''',2,'LOCAL4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',23,'CITY NAME',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','04',24,'REGIONE ????',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE017','04',25,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE017','04',26,'CODICE NAZIONE',2,'NOMPAE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','06',4,'QUALIFICATORE DATA',2,'DATQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','06',5,'DATA',2,'DATORD',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','06',6,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','06',7,'ANNO',3,'AAAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE017','06',8,'MESE',3,'MMMORD',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE017','06',9,'GIORNO',3,'GGGORD',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE017','06',10,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,27,27,0,0,'X(27)','',0,'',0,0,'' )
,('LOE017','06',11,'FORMATO DATA',2,'DATFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','06',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,552,552,0,0,'X(552)','',0,'',0,0,'' )
,('LOE017','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE017','07',5,'RICHIESTA',2,'ACKNOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','07',6,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','07',7,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','07',8,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','07',9,'CODE LIST QUALIFIER...',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','07',10,'SUB LINEA',2,'SUBLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','07',11,'NUMERO SUB LINEA ??????',2,'NUMRI1',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE017','07',12,'LIVELLO',2,'CONLEV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE017','07',13,'CONFIGURAZIONE',2,'CONCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','07',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,526,526,0,0,'X(526)','',0,'',0,0,'' )
,('LOE017','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','09',3,'TIPO RECORD PAI PAGAMENTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','09',4,'CONDIZIONI PAGAMENTO',2,'PAICON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','09',5,'GARANZIA PAGAMENTO',2,'PAIGAR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','09',6,'SIGNIFICATO PAGAMENTO',2,'PAITIP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','09',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','09',8,'CODE LIST .........',2,'CODLRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','09',9,'PAYMENT CHANNEL',2,'PAICHA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','09',10,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,575,575,0,0,'X(575)','',0,'',0,0,'' )
,('LOE017','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','10',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','10',3,'TIPO RECORD ALI INF. ADDIZIONALI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',4,'PAESE DI ORIGINE',2,'PAEORI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',5,'REGIME FISCALE',2,'REGFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',6,'CONDIZIONI SPECIALI',2,'SPECON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',7,'CONDIZIONI SPECIALI 1',2,'SPECO1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',8,'CONDIZIONI SPECIALI 2',2,'SPECO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',9,'CONDIZIONI SPECIALI 3',2,'SPECO3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',10,'CONDIZIONI SPECIALI 4',2,'SPECO4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','10',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,572,572,0,0,'X(572)','',0,'',0,0,'' )
,('LOE017','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','11',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','11',3,'TIPO RECORD FTX TESTO LIBERO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','11',4,'SOGGETTO',2,'TESQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','11',5,'FUNZIONE',2,'TESFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','11',6,'CODICE TESTO',2,'TESCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','11',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE017','11',8,'CODE LIST QUALIFIER ......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','11',9,'TESTO LIBERO',2,'TREET1',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','11',10,'TESTO LIBERO',2,'TREET2',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','11',11,'TESTO LIBERO',2,'TREET3',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','11',12,'TESTO LIBERO',2,'TREET4',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','11',13,'TESTO LIBERO',2,'TREET5',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','11',14,'CODICE LINGUA',2,'CODLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','11',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,225,225,0,0,'X(225)','',0,'',0,0,'' )
,('LOE017','12',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','12',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','12',3,'TIPO RECORD REF REFERENCE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','12',4,'REFERENCE QUALIFIER',2,'REFQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','12',5,'REFERENCE NUMBER',2,'REFNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','12',6,'LINE NUMBER',2,'LINNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE017','12',7,'REFERENCE VERSION',2,'REFVER',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','12',8,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,514,514,0,0,'X(514)','',0,'',0,0,'' )
,('LOE017','13',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','13',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','13',3,'TIPO RECORD LOC/LO2 PLACE ID',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',4,'PLACE QUALIFIER',2,'PLAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',5,'PLACE ID',2,'PLANID',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE017','13',6,'CODE LIST',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',7,'CODE LIST ...........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',8,'PLACE/LOCATION',2,'PLALOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','13',9,'PLACE RELATED',2,'PLAREL',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE017','13',10,'CODE LIST QUALIFIER',2,'CODLI2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',11,'CODE LIST ......',2,'CODLR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',12,'PLACE ONE',2,'PLAONE',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','13',13,'PLACE TWO',2,'PLATWO',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE017','13',14,'CODE LIST QUALIFIER',2,'CODLI3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',15,'CODE LIST QUALIFIER .......',2,'CODLR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',16,'PLACE 2',2,'PLADUE',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','13',17,'RELATION CODED',2,'RELCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','13',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,284,284,0,0,'X(284)','',0,'',0,0,'' )
,('LOE017','14',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','14',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','14',3,'TIPO RECORD FII FINANCIAL INSTRUCTION',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',4,'PARTY QUALIFIER',2,'PARQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',5,'ACCOUNT HOLDER NUMBER',2,'ACCNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','14',6,'ACCOUNT NAME',2,'ACCNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','14',7,'ACCOUNT HOLDER NAME',2,'ACCNA1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','14',8,'VALUTA',2,'CURCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',9,'BANCA ?????',2,'INSNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,11,11,0,0,'X(11)','',0,'',0,0,'' )
,('LOE017','14',10,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',11,'CODE LIST ......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',12,'INSTITUTION BRANCH',2,'INSBRA',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','14',13,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',14,'CODE LIST QUALIFIER .......',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',15,'INSTITUTION NAME 2',2,'INSNA2',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','14',16,'INSTITUTION BRANCH PLACE',2,'INSBRP',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','14',17,'PAESE',2,'NOMPAE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','14',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE017','15',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','15',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','15',3,'TIPO RECORD CTA INFORMAZIONI CONTATTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','15',4,'FUNZIONE CONTATTO',2,'CONFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','15',5,'REPARTO/DIPENDENTE',2,'DIPIDE',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','15',6,'REPARTO/DIPENDENTE',2,'DIPNOM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','15',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,538,538,0,0,'X(538)','',0,'',0,0,'' )
,('LOE017','16',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','16',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','16',3,'TIPO RECORD COM COMMUNICATION CONTACT',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','16',4,'NUMERO COMUNICAZIONE',2,'CONNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('LOE017','16',5,'CANALE COMUNICAZIONE',2,'COMCHA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','16',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,490,490,0,0,'X(490)','',0,'',0,0,'' )
,('LOE017','17',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','17',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','17',3,'TIPO RECORD TAX',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',4,'TAX FUNTION',2,'TAXFUN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',5,'TAX TYPE',2,'TAXTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',6,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',7,'CODE LIST QUALIFIER .............',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',8,'TIPO TASSA',2,'TAXTY1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','17',9,'TAX ACCOUNT',2,'TAXACC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE017','17',10,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',11,'CODE LIST QUALIFIER ...............',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',12,'TAX ASS............',2,'TAXASS',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOE017','17',13,'TAX RATE ID',2,'TAXRID',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('LOE017','17',14,'CODE LIST QUALIFIER',2,'CODLI2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',15,'CODE LIST QUALIFIER ..............',2,'CODLR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',16,'TAX RATE',2,'TAXRAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','17',17,'TAX RATE BASIS',2,'TAXRAB',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LOE017','17',18,'CODE LIST',2,'CODLI3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',19,'CODE LIST ..............',2,'CODLR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',20,'TAX CATEGORY CODED',2,'TAXCAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','17',21,'PARTY TAX',2,'PARTAX',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOE017','17',22,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,448,448,0,0,'X(448)','',0,'',0,0,'' )
,('LOE017','18',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','18',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','18',3,'TIPO RECORD CUX VALUTA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','18',4,'QUALIFICATORE VALUTA',2,'CURQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','18',5,'CODICE VALUTA',2,'CURCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','18',6,'QUALIFICATORE VALUTA 1',2,'CURQU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','18',7,'CAMBIO',2,'CURRAT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE017','18',8,'QUALIFICATORE VALUTA 2',2,'CURQU2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','18',9,'ALTRA VALUTA',2,'CURCO1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','18',10,'QUALIFICATORE VALUTA 3',2,'CURQU3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','18',11,'ALTRO CAMBIO',2,'CURRA1',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE017','18',12,'VALORE CAMBIO',2,'RATEXC',0,0,0,0,0,0,0,0,0,0,'',1,0,12,13,3,0,'9(9)V999','',0,'',0,0,'' )
,('LOE017','18',13,'CURRENCY MARKET EXCHANGE',2,'CURMAR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE017','18',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,552,552,0,0,'X(552)','',0,'',0,0,'' )
,('LOE017','19',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','19',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','19',3,'TIPO RECORD PAT TERMINI DI PAGAMENTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','19',4,'QUALIFICATORE TERMINI PAGAMENTO',2,'PAYQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','19',5,'IDENTIFICAZIONE TERMINI DI PAGAMENTO',2,'PAYTER',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','19',6,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','19',7,'CODE LIST QUALIFIER...........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','19',8,'TERMINI DI PAGAMENTO',2,'PAYTE1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','19',9,'TERMINI DI PAGAMENTO',2,'PAYTE2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','19',10,'PAYMENT TIME REFERENCE',2,'PAYREF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','19',11,'TIME RELATION',2,'TIMREL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','19',12,'TIPO DI PERIODO',2,'TYPPER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','19',13,'NUMERO PERIODI',2,'NUMPER',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE017','19',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,485,485,0,0,'X(485)','',0,'',0,0,'' )
,('LOE017','20',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','20',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','20',3,'TIPO RECORD PCD PERCENTUALI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','20',4,'QUALIFICATORE PERCENTUALE',2,'PERQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','20',5,'PERCENTUALE',2,'PERCEN',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,3,0,'9(7)V999','',0,'',0,0,'' )
,('LOE017','20',6,'PERCENTUALE BASE',2,'PERBAS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','20',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','20',8,'CODE LIST QUALIFIER...........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','20',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,571,571,0,0,'X(571)','',0,'',0,0,'' )
,('LOE017','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','21',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','21',3,'TIPO RECORD MOA IMPORTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','21',4,'QUALIFICATORE IMPORTO',2,'MOAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','21',5,'IMPORTO',2,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,4,0,'9(14)V9(4)','',0,'',0,0,'' )
,('LOE017','21',6,'VALUTA',2,'CURCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','21',7,'QUALIFICATORE VALUTA',2,'CURQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','21',8,'STATUS',2,'STATID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','21',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,563,563,0,0,'X(563)','',0,'',0,0,'' )
,('LOE017','22',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','22',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','22',3,'TIPO RECORD TDT DETTAGLIO TRASPORTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',4,'QUALIFICATORE TRASPORTO',2,'TRAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',5,'NUMERO RIFERIMENTO',2,'REFNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','22',6,'MODALITA'' TRASPORTO',2,'TRAMOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',7,'MODALITA'' TRASPORTO 1',2,'TRAMO1',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','22',8,'TYPE OF MEANS OF TRANSPORT ID',2,'TRANID',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LOE017','22',9,'TYPE OF MEANS OF TRANSPORT',2,'TRADID',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','22',10,'CARRIER ID',2,'CARNID',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','22',11,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',12,'CODE LIST QUALIFIER.................',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',13,'CARRIER NAME',2,'CARNAM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','22',14,'TRANSIT DIRECTION',2,'TRADIR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',15,'EXCESS TRANSPORTATION REASON',2,'TRAEXC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',16,'EXCESS TRANSPORTATION RESPONSABILITY',2,'TRAEXR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',17,'CUSTOMER AUTHORIZATION ID',2,'CUSAUT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','22',18,'ID OF MEANS OF TRANSPORT',2,'TRAIDM',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE017','22',19,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',20,'CODE LIST QUALIFIER..............',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',21,'ID OF MEANS OF TRANSPORT',2,'TRAID1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','22',22,'NAZIONALITA''..............',2,'TRAPAE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',23,'RESPONSABILE TRASPORTO',2,'TRAPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','22',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,388,388,0,0,'X(388)','',0,'',0,0,'' )
,('LOE017','23',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','23',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','23',3,'TIPO RECORD TOD DETTAGLIO TRASPORTI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','23',4,'QUALIFICATORE TERMINI TRASPORTO',2,'TODQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','23',5,'CAMBIAMENTO METODO DI PAGAMENTO',2,'TODMET',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','23',6,'TERMINI DI CONSEGNA',2,'TODDEV',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','23',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','23',8,'CODE LIST QUALIFIER.................',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','23',9,'TERMINI DI TRASPORTO',2,'TODDID',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','23',10,'TERMINI DI TRASPORTO',2,'TODDI1',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','23',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,'' )
,('LOE017','24',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','24',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','24',3,'TIPO RECORD PAC IMBALLAGGI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',4,'NUMERO COLLI',2,'PACNUM',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOE017','24',5,'LIVELLO IMBALLAGGI',2,'PACLEV',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',6,'INFORMAZIONI IMBALLAGGI',2,'PACINF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',7,'CONDIZIONI IMBALLAGGI',2,'PACCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',8,'TIPO IMBALLAGGI',2,'PACTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','24',9,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',10,'CODE LIST QUALIFIER.......',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',11,'TIPO IMBALLAGGI',2,'PACTY1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','24',12,'TIPO DESCRIZIONE',2,'TYPNID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',13,'TIPO IMBALLAGGI',2,'PACTY1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','24',14,'TIPO NUMERO',2,'NUMNID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',15,'TIPO IMBALLAGGI',2,'PACTY3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','24',16,'TIPO NUMERO',2,'NUMID1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',17,'VUOTI CAUZIONATI ????',2,'PACVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',18,'VUOTI CAUZIONATI ????',2,'PACVU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','24',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,433,433,0,0,'X(433)','',0,'',0,0,'' )
,('LOE017','25',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','25',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','25',3,'TIPO RECORD ALC ALLOWANCE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',4,'ALLOWANCE ID',2,'ALLNID',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',5,'ALLOWANCE NUMBER',2,'ALLNUM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','25',6,'ALLOWANCE DESCRIPTION',2,'ALLDES',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',7,'ALLOWANCE SET',2,'ALLSET',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',8,'SEQUENZA',2,'ALLSEQ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',9,'SERVIZI SPECIALI',2,'SPESER',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',10,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',11,'CODE LIST QUALIFIER.....',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','25',12,'SERVIZI SPECIALI',2,'SPESE1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','25',13,'SERVIZI SPECIALI',2,'SPESE2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE017','25',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,467,467,0,0,'X(467)','',0,'',0,0,'' )
,('LOE017','26',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','26',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','26',3,'TIPO RECORD PIA ADD PROD ID',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',4,'QUALIFICATORE PROD',2,'PIAQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',5,'ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','26',6,'TIPO ARTICOLO',2,'TYPART',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',8,'CODE LIST QUALIFIER.....',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',9,'ARTICOLO',2,'CODAR1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','26',10,'TIPO ARTICOLO',2,'TYPAR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',11,'CODE LIST QUALIFIER',2,'CODLI1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',12,'CODE LIST QUALIFIER....',2,'CODLR1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',13,'ARTICOLO',2,'CODAR2',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','26',14,'TIPO ARTICOLO',2,'TYPAR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',15,'CODE LIST QUALIFIER',2,'CODLI2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',16,'CODE LIST QUALIFIER.........',2,'CODLR2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',17,'ARTICOLO',2,'CODAR3',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','26',18,'TIPO ARTICOLO',2,'TYPAR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',19,'CODE LIST QUALIFIER',2,'CODLI3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',20,'CODE LIST QUALIFIER......',2,'CODLR3',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',21,'ARTICOLO',2,'CODAR4',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','26',22,'TIPO ARTICOLO',2,'TYPAR4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',23,'CODE LIST QUALIFIER',2,'CODLI4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',24,'CODE LIST QUALIFIER......',2,'CODLR4',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','26',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,370,370,0,0,'X(370)','',0,'',0,0,'' )
,('LOE017','27',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','27',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','27',3,'TIPO RECORD IMD DESCRIZIONE ARTICOLO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','27',4,'QUALIFICATORE',2,'IMDTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','27',5,'CARATTERISTICHE',2,'IMDCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','27',6,'IDENTIFICAZIONE',2,'IMDNID',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE017','27',7,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','27',8,'CODE LIST QUALIFIER.....',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','27',9,'ARTICOLO',2,'ARTDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','27',10,'ARTICOLO',2,'ARTDE1',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','27',11,'LINGUAGGIO',2,'CODLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','27',12,'SURFACE INDICATOR',2,'SURIND',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','27',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,488,488,0,0,'X(488)','',0,'',0,0,'' )
,('LOE017','28',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','28',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','28',3,'TIPO RECORD MEA MISURE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','28',4,'APPLICAZIONE',2,'MEAAPP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','28',5,'DIMENSIONI',2,'MEADIM',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','28',6,'SIGNIFICATO',2,'MEASIG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','28',7,'ATTRIBUTI',2,'MEAATT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','28',8,'ATTRIBUTI',2,'MEAAT1',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE017','28',9,'UNITA'' DI MISURA',2,'MEAUNI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','28',10,'VALORE',2,'MEAVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE017','28',11,'RANGE MINIMO',2,'RANMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE017','28',12,'RANGE MASSIMO',2,'RANMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE017','28',13,'CIFRE SIGNIFICATIVE',2,'SIGDIG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE017','28',14,'SURFACE INDICATOR',2,'SURIND',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','28',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,449,449,0,0,'X(449)','',0,'',0,0,'' )
,('LOE017','29',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','29',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','29',3,'TIPO RECORD QTY QUANTITA''',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','29',4,'QUALIFICATORE QUANTITA''',2,'QTYQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','29',5,'QUANTITA''',2,'QTARIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE017','29',6,'UNITA'' DI MISURA',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','29',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,572,572,0,0,'X(572)','',0,'',0,0,'' )
,('LOE017','30',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','30',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','30',3,'TIPO RECORD PRI PREZZI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','30',4,'QUALIFICATORE PREZZO',2,'PRIQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','30',5,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,4,0,'9(11)V9(4)','',0,'',0,0,'' )
,('LOE017','30',6,'TIPO PREZZO',2,'PRITYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','30',7,'QUALIFICATORE PREZZO 1',2,'PRIQU1',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','30',8,'UNITA'' BASE PREZZO',2,'PRIUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('LOE017','30',9,'UNITA'' DI MISURA',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','30',10,'SUB LINEA',2,'SUBLIN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','30',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,554,554,0,0,'X(554)','',0,'',0,0,'' )
,('LOE017','31',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','31',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','31',3,'TIPO RECORD PCI ID IMBALLAGGI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','31',4,'ISTRUZIONI MARCHIATURA',2,'MATINS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','31',5,'MARCHIATURE',2,'MARK01',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',6,'MARCHIATURE',2,'MARK02',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',7,'MARCHIATURE',2,'MARK03',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',8,'MARCHIATURE',2,'MARK04',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',9,'MARCHIATURE',2,'MARK05',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',10,'MARCHIATURE',2,'MARK06',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',11,'MARCHIATURE',2,'MARK07',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',12,'MARCHIATURE',2,'MARK08',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',13,'MARCHIATURE',2,'MARK09',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',14,'MARCHIATURE',2,'MARK10',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE017','31',15,'CONTAINER STATUS',2,'CONSTA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','31',16,'TIPO DI MARCHIO',2,'MARTYP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','31',17,'CODE LIST QUALIFIER',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE017','31',18,'CODE LIST QUALIFIER........',2,'CODLRA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOE017','31',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,228,228,0,0,'X(228)','',0,'',0,0,'' )
,('LOE017','32',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','32',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE017','32',3,'TIPO RECORD CNT SOMMARIO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','32',4,'QUALIFICATORE',2,'CONQUA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','32',5,'VALORE',2,'CONVAL',0,0,0,0,0,0,0,0,0,0,'',1,0,18,19,3,0,'9(15)V999','',0,'',0,0,'' )
,('LOE017','32',6,'UNITA'' DI MISURA',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE017','32',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,569,569,0,0,'X(569)','',0,'',0,0,'' )
,('LOE018','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','00',2,'CHIAVE ORDINE',2,'KEY001',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
('LOE018','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE018','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE018','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE018','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE018','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE018','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE018','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE018','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,'' )
,('LOE018','01',14,'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,'' )
,('LOE018','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE018','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE018','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE018','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','01',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,396,396,0,0,'X(396)','',0,'',0,0,'' )
,('LOE018','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE018','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE018','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE018','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE018','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE018','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE018','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE018','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE018','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE018','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE018','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE018','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE018','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE018','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE018','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE018','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE018','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE018','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE018','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE018','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE018','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE018','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE018','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE018','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE018','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE018','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE018','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE018','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','07',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,299,299,0,0,'X(299)','',0,'',0,0,'' )
,('LOE018','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE018','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE018','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE018','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE018','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE019','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE019','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE019','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE019','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE019','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE019','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE019','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE019','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,'' )
,('LOE019','01',14,'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,'' )
,('LOE019','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE019','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE019','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE019','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','01',20,'TIPO ORDINE VALORE FISSO 105',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,393,393,0,0,'X(393)','',0,'',0,0,'' )
,('LOE019','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE019','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE019','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE019','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE019','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE019','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE019','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE019','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE019','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE019','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE019','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE019','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE019','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE019','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE019','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','06',11,'DATA CONSEGNA 2',2,'DATCO2',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
('LOE019','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE019','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE019','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE019','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE019','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE019','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE019','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE019','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE019','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE019','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE019','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',21,'PREZZO LORDO UNITARIO ATTESO IN FATTURA',2,'PRZFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE019','07',22,'TIPO PREZZO (SEMPRE=AAB)',2,'TPRFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',23,'TIPO PREZZO (SEMPRE=AAB)',2,'UMPFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','07',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,278,278,0,0,'X(278)','',0,'',0,0,'' )
,('LOE019','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE019','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE019','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE019','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','09',3,'TIPO RECORD CTA INFORMAZIONI CONTATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','09',4,'FUNZIONE DEL CONTATTO (VEDI CODIFICA)',2,'FUNCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','09',5,'NUMERO TELEFONO',2,'NUMTEL',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE019','09',6,'NUMERO DI FAX',2,'NUMFAX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE019','09',7,'NUMERO TELEX',2,'NTELEX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE019','09',8,'INDIRIZZO E-MAIL',2,'E-MAIL',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE019','09',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,413,413,0,0,'X(413)','',0,'',0,0,'' )
,('LOE019','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','10',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE019','10',3,'TIPO RECORD RFC RIFERIMENTO CONTRATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE019','10',4,'NUMERO CONTRATTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE019','10',5,'DATA INIZIO VALIDITA''',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE019','10',6,'DATA FINE VALIDITA''',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE019','10',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,510,510,0,0,'X(510)','',0,'',0,0,'' )
,('LOE020','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE020','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE020','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE020','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE020','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE020','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE020','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE020','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,'' )
,('LOE020','01',14,'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,'' )
,('LOE020','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE020','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','01',20,'TIPO ORDINE VALORE FISSO 105',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,393,393,0,0,'X(393)','',0,'',0,0,'' )
,('LOE020','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE020','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE020','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE020','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE020','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE020','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE020','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE020','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE020','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE020','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE020','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE020','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE020','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE020','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE020','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE020','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE020','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE020','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE020','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE020','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE020','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE020','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE020','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE020','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE020','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE020','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE020','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE020','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE020','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',21,'PREZZO LORDO UNITARIO ATTESO IN FATTURA',2,'PRZFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE020','07',22,'TIPO PREZZO (SEMPRE=AAB)',2,'TPRFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',23,'TIPO PREZZO (SEMPRE=AAB)',2,'UMPFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','07',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,278,278,0,0,'X(278)','',0,'',0,0,'' )
,('LOE020','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE020','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE020','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE020','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','09',3,'TIPO RECORD CTA INFORMAZIONI CONTATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','09',4,'FUNZIONE DEL CONTATTO (VEDI CODIFICA)',2,'FUNCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','09',5,'NUMERO TELEFONO',2,'NUMTEL',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE020','09',6,'NUMERO DI FAX',2,'NUMFAX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE020','09',7,'NUMERO TELEX',2,'NTELEX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE020','09',8,'INDIRIZZO E-MAIL',2,'E-MAIL',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE020','09',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,413,413,0,0,'X(413)','',0,'',0,0,'' )
,('LOE020','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','10',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','10',3,'TIPO RECORD RFC RIFERIMENTO CONTRATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE020','10',4,'NUMERO CONTRATTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE020','10',5,'DATA INIZIO VALIDITA''',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE020','10',6,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','10',7,'ANNO',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE020','10',8,'MESE',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','10',9,'GIORNO',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','10',10,'DATA FINE VALIDITA''',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE020','10',11,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE020','10',12,'ANNO',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE020','10',13,'MESE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','10',14,'GIORNO',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE020','10',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,510,510,0,0,'X(510)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE021','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE021','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE021','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE021','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE021','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE021','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE021','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE021','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,'' )
,('LOE021','01',14,'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,'' )
,('LOE021','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE021','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE021','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE021','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','01',20,'TIPO ORDINE VALORE FISSO 105',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,393,393,0,0,'X(393)','',0,'',0,0,'' )
,('LOE021','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE021','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE021','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE021','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE021','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE021','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE021','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE021','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE021','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE021','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE021','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE021','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE021','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE021','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE021','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE021','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE021','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE021','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE021','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE021','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE021','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE021','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE021','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE021','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE021','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE021','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE021','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',21,'PREZZO LORDO UNITARIO ATTESO IN FATTURA',2,'PRZFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE021','07',22,'TIPO PREZZO (SEMPRE=AAB)',2,'TPRFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',23,'TIPO PREZZO (SEMPRE=AAB)',2,'UMPFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','07',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,278,278,0,0,'X(278)','',0,'',0,0,'' )
,('LOE021','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE021','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE021','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE021','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','09',3,'TIPO RECORD CTA INFORMAZIONI CONTATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','09',4,'FUNZIONE DEL CONTATTO (VEDI CODIFICA)',2,'FUNCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','09',5,'NUMERO TELEFONO',2,'NUMTEL',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE021','09',6,'NUMERO DI FAX',2,'NUMFAX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE021','09',7,'NUMERO TELEX',2,'NTELEX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE021','09',8,'INDIRIZZO E-MAIL',2,'E-MAIL',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE021','09',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,413,413,0,0,'X(413)','',0,'',0,0,'' )
,('LOE021','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','10',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE021','10',3,'TIPO RECORD RFC RIFERIMENTO CONTRATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE021','10',4,'NUMERO CONTRATTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE021','10',5,'DATA INIZIO VALIDITA''',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE021','10',6,'DATA FINE VALIDITA''',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE021','10',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,510,510,0,0,'X(510)','',0,'',0,0,'' )
,('LOE022','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE022','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE022','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE022','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE022','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE022','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE022','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE022','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,'' )
,('LOE022','01',14,'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,'' )
,('LOE022','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE022','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE022','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE022','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','01',20,'TIPO ORDINE VALORE FISSO 105',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,393,393,0,0,'X(393)','',0,'',0,0,'' )
,('LOE022','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE022','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE022','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE022','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE022','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE022','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE022','05',1,'RECORD',1,'',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
('LOE022','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE022','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE022','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE022','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE022','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE022','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE022','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE022','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE022','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE022','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE022','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE022','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE022','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE022','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE022','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE022','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE022','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE022','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE022','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE022','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',21,'PREZZO LORDO UNITARIO ATTESO IN FATTURA',2,'PRZFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE022','07',22,'TIPO PREZZO (SEMPRE=AAB)',2,'TPRFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',23,'TIPO PREZZO (SEMPRE=AAB)',2,'UMPFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','07',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,278,278,0,0,'X(278)','',0,'',0,0,'' )
,('LOE022','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE022','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE022','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE022','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','09',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','09',3,'TIPO RECORD CTA INFORMAZIONI CONTATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','09',4,'FUNZIONE DEL CONTATTO (VEDI CODIFICA)',2,'FUNCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','09',5,'NUMERO TELEFONO',2,'NUMTEL',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE022','09',6,'NUMERO DI FAX',2,'NUMFAX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE022','09',7,'NUMERO TELEX',2,'NTELEX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE022','09',8,'INDIRIZZO E-MAIL',2,'E-MAIL',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE022','09',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,413,413,0,0,'X(413)','',0,'',0,0,'' )
,('LOE022','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','10',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE022','10',3,'TIPO RECORD RFC RIFERIMENTO CONTRATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE022','10',4,'NUMERO CONTRATTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE022','10',5,'DATA INIZIO VALIDITA''',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE022','10',6,'DATA FINE VALIDITA''',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE022','10',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,510,510,0,0,'X(510)','',0,'',0,0,'' )
,('LOE023','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE023','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE023','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE023','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE023','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE023','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE023','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE023','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,'' )
,('LOE023','01',14,'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,'' )
,('LOE023','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE023','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','01',20,'TIPO ORDINE VALORE FISSO 105',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE023','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,393,393,0,0,'X(393)','',0,'',0,0,'' )
,('LOE023','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE023','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE023','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE023','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE023','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE023','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE023','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE023','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE023','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE023','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE023','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','06',6,'ANNO CONSEGNA',3,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE023','06',7,'MESE CONSEGNA MERCE',3,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','06',8,'GIORNO CONSEGNA MERCE',3,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','06',9,'ORA CONSEGNA MERCE',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE023','06',10,'TIPO CONSEGNA SEMPRE 069 CONS. TASSATIVA',2,'TIPCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','06',11,'DATA CONSEGNA 2',2,'DATCO2',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE023','06',12,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','06',13,'ANNO CONSEGNA 2',3,'AAACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE023','06',14,'MESE CONSEGNA 2',3,'MMMCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','06',15,'GIORNO CONSEGNA 2',3,'GGGCO2',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','06',16,'ORA CONSEGNA 2',2,'ORACO2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE023','06',17,'TIPO CONSEGNA 2',2,'TIPCO2',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','06',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,531,531,0,0,'X(531)','',0,'',0,0,'' )
,('LOE023','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','07',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','07',3,'TIPO RECORD LIN RIGA DETTAGLIO ORDINE',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',4,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOE023','07',5,'CODICE EAN C.U. (BOTTIGLIA)',2,'CODBOT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','07',6,'TIPO CODICE (EN=CODICE EAN)',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',7,'CODICE EAN T.U. (CARTONE)',2,'CODCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','07',8,'CODICE T.U. ASSEGNATO DA AV2000',2,'CODCDM',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','07',9,'CODICE T.U. ASSEGNATO DAL DISTRIBUTORE',2,'CODDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','07',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','07',11,'CAMPO NON USATO',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',12,'QUANTITA'' ORDINATA CARTONI',2,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE023','07',13,'UNITA'' DI MISURA SEMPRE = CT',2,'UNIMIS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',14,'PREZZO NETTO UNITARIO',2,'PREUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE023','07',15,'TIPO PREZZO SEMPRE=AAA (PREZZO NETTO)',2,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',16,'U.M. PREZZO SEMPRE=PCE (PEZZI)',2,'UMPREZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',17,'NUMERO COMPONENTI CARTONE',2,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE023','07',18,'CAMPO NON USATO',2,'CONAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',19,'QUANTITA'' CONFERMATA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE023','07',20,'U.M. QTA CONFERMATA SEMPRE=PCE (PEZZI)',2,'UMCONF',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',21,'PREZZO LORDO UNITARIO ATTESO IN FATTURA',2,'PRZFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE023','07',22,'TIPO PREZZO (SEMPRE=AAB)',2,'TPRFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',23,'TIPO PREZZO (SEMPRE=AAB)',2,'UMPFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','07',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,278,278,0,0,'X(278)','',0,'',0,0,'' )
,('LOE023','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','08',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','08',3,'TIPO RECORD CNT TOTALE CARTONI ORDINATI',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','08',4,'TOTALE CARTONI ORDINATI (T.U.)',2,'TOTQTA',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE023','08',5,'U.M. TOTALE CARTONI ORDINATI SEMPRE=CT',2,'UDMTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','08',6,'CAMPO NON USATO',2,'TOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,15,16,3,0,'9(12)V999','',0,'',0,0,'' )
,('LOE023','08',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,528,528,0,0,'X(528)','',0,'',0,0,'' )
,('LOE023','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','09',2,'CHIAVE ORDINE',2,'KEY001',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
('LOE023','09',3,'TIPO RECORD CTA INFORMAZIONI CONTATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','09',4,'FUNZIONE DEL CONTATTO (VEDI CODIFICA)',2,'FUNCON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','09',5,'NUMERO TELEFONO',2,'NUMTEL',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE023','09',6,'NUMERO DI FAX',2,'NUMFAX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE023','09',7,'NUMERO TELEX',2,'NTELEX',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOE023','09',8,'INDIRIZZO E-MAIL',2,'E-MAIL',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE023','09',9,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,413,413,0,0,'X(413)','',0,'',0,0,'' )
,('LOE023','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','10',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','10',3,'TIPO RECORD RFC RIFERIMENTO CONTRATTO',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE023','10',4,'NUMERO CONTRATTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE023','10',5,'DATA INIZIO VALIDITA''',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE023','10',6,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','10',7,'ANNO',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE023','10',8,'MESE',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','10',9,'GIORNO',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','10',10,'DATA FINE VALIDITA''',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE023','10',11,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE023','10',12,'ANNO',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE023','10',13,'MESE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','10',14,'GIORNO',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE023','10',15,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,510,510,0,0,'X(510)','',0,'',0,0,'' )
,('LOE024','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','00',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','00',3,'TIPO RECORD',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','00',4,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,215,215,0,0,'X(215)','',0,'',0,0,'' )
,('LOE024','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','01',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','01',3,'TIPO RECORD BGM',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','01',4,'PARTITA IVA MITTENTE (ESSELUNGA)',2,'PIVMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE024','01',5,'TIPO CODICE MITTENTE ZZ=P.IVA',2,'IDEMIT',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE024','01',6,'ID MITTENTE REV. ROUTING (NON USATO)',2,'ID2MIT',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE024','01',7,'PARTITA IVA DESTINATARIO (CLIENTE CDM)',2,'PIVDES',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE024','01',8,'TIPO CODICE DESTINATARIO ZZ=P.IVA',2,'IDEDES',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOE024','01',9,'ID DESTINATARIO REV. ROUTING (NON USATO)',2,'IDSDES',0,0,0,0,0,0,0,0,0,0,'',4,0,14,14,0,0,'X(14)','',0,'',0,0,'' )
,('LOE024','01',10,'TIPO DOCUMENTO (SEMPRE ORDERS)',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOE024','01',11,'NUMERO DOCUMENTO ESSELUNGA',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE024','01',12,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE024','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,'' )
,('LOE024','01',14,'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,'' )
,('LOE024','01',15,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE024','01',16,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOE024','01',17,'ORA DOCUMENTO',2,'ORADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOE024','01',18,'CAMPO NON UTILIZZATO',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','01',19,'CAMPO NON UTILIZZATO',2,'FLGIMP',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','01',20,'TIPO ORDINE VALORE FISSO 105',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,393,393,0,0,'X(393)','',0,'',0,0,'' )
,('LOE024','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','02',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','02',3,'TIPO RECORD NAS (IDENTIFICAZIONE FORN.)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','02',4,'COD. FOR. ASSEGNATO DA ESSELUNGA 9(6)',2,'CODFOR',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE024','02',5,'FISSO 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','02',6,'RAGIONE SOCIALE FORNITORE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','02',7,'INDIRIZZO FORNITORE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','02',8,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE024','02',9,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','02',10,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','02',11,'CODICE NAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','02',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE024','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','03',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','03',3,'TIPO RECORD NAB (ID. ESSELUNGA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','03',4,'PARTITA IVA ESSELUNGA',2,'CODBUY',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE024','03',5,'VA = PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','03',6,'RAGIONE SOCIALE ESSELUNGA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','03',7,'INDIRIZZO ESSELUNGA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','03',8,'LOCALITA'' ESSELUNGA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE024','03',9,'PROVINCIA ESSELUNGA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','03',10,'C.A.P. ESSELUNGA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','03',11,'CODICE NAZIONE ESSELUNGA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','03',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE024','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','04',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','04',3,'TIPO RECORD NAD (ID. PUNTO CONSEGNA)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','04',4,'CODICE P. CONSEGNA ESSELUNGA 9(6)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE024','04',5,'SEMPRE 92',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','04',6,'RAGIONE SOCIALE PUNTO DI CONSEGNA',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','04',7,'INDIRIZZO PUNTO DI CONSEGNA',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','04',8,'LOCALITA'' PUNTO DI CONSEGNA',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE024','04',9,'PROVINCIA PUNTO DI CONSEGNA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','04',10,'C.A.P. PUNTO DI CONSEGNA',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','04',11,'CODICE NAZIONE PUNTO DI CONSEGNA',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','04',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE024','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','05',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','05',3,'TIPO RECORD NAI (ID. FATTURAZIONE)',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','05',4,'PARTITA IVA CLIENTE FATTURAZIONE',2,'CODFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,17,17,0,0,'X(17)','',0,'',0,0,'' )
,('LOE024','05',5,'VA=PARTITA IVA',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','05',6,'RAGIONE SOCIALE FATTURAZIONE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','05',7,'INDIRIZZO FATTURAZIONE',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LOE024','05',8,'LOCALITA'' FATTURAZIONE',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOE024','05',9,'PROVINCIA FATTURAZIONE',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','05',10,'C.A.P. FATTURAZIONE',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,9,9,0,0,'X(9)','',0,'',0,0,'' )
,('LOE024','05',11,'CODICE NAZIONE FATTURAZIONE',2,'CODNAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','05',12,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,345,345,0,0,'X(345)','',0,'',0,0,'' )
,('LOE024','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','06',2,'CHIAVE ORDINE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','06',3,'TIPO RECORD DTM DATA DI CONSEGNA',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOE024','06',4,'DATA CONSEGNA MERCE',2,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOE024','06',5,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
go
