INSERT INTO dbo.ZFILE3_01 VALUES
('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE024','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,'' )
,('LOE025','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE025','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,'' )
,('LOE026','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOE026','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,'' )
,('LOEEST','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','12',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','13',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','14',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','15',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','16',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','17',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','18',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','19',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','20',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','22',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','23',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','24',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','25',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','26',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','27',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','28',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','29',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','30',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','31',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','32',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEEST','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,'' )
,('LOEX14','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEX14','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,'' )
,('LOEX14','01',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOEX14','01',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOEX14','01',5,'RECORD',2,'CAMPO1',0,0,0,0,0,0,0,0,0,0,'',4,0,494,494,0,0,'X(494)','',0,'',0,0,'' )
,('LOEX18','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEX18','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,'' )
,('LOEX18','01',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOEX18','01',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOEX18','01',5,'RECORD',2,'CAMPO1',0,0,0,0,0,0,0,0,0,0,'',4,0,494,494,0,0,'X(494)','',0,'',0,0,'' )
,('LOEX20','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEX20','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,'' )
,('LOEX20','01',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOEX20','01',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOEX20','01',5,'RECORD',2,'CAMPO1',0,0,0,0,0,0,0,0,0,0,'',4,0,494,494,0,0,'X(494)','',0,'',0,0,'' )
,('LOEXX5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXX5','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,'' )
,('LOEXX5','01',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOEXX5','01',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOEXX5','01',5,'RECORD',2,'CAMPO1',0,0,0,0,0,0,0,0,0,0,'',4,0,494,494,0,0,'X(494)','',0,'',0,0,'' )
,('LOEXXX','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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
('LOEXXX','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','09',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','10',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOEXXX','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,'' )
,('LOGIMP','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOGIMP','01',2,'RECORD OPERAZIONE',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,48,48,0,0,'X(2048)','',0,'',0,0,'' )
,('LOGWRD','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOGWRD','01',2,'RECORD OPERAZIONE',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,48,48,0,0,'X(2048)','',0,'',0,0,'' )
,('LONV01','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LONV01','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LONV01','01',3,'CODICE ARTICOLO',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LONV01','01',4,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LONV01','01',5,'NUOVO CODICE ARTICOLO',2,'CODNEW',0,1,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LONV01','01',6,'GESTIONE ANNATE S/N',2,'GESANN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LONV01','01',7,'GESTIONE ANNATA ORIGINALE',2,'ANNORI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LONV99','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LONV99','01',2,'PROGRESSIVO',2,'PROGRE',1,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LONV99','01',3,'AREA',2,'AREARE',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('LORDED','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDED','01',2,'CAMPO UNICO',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,700,700,0,0,'X(9700)','',0,'',0,0,'' )
,('LORDF4','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','00',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','00',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDF4','00',4,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','00',8,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','00',9,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','00',10,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LORDF4','00',11,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDF4','00',12,'RIGA CONTRATTO',2,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','00',13,'RECORD UGUALE A QUELLO DI AORDF4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,116,116,0,0,'X(116)','',0,'',0,0,'' )
,('LORDF4','00',14,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF4','00',15,'SIGLA UNITA'' DI MISURA',2,'SIGUDM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LORDF4','00',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,62,62,0,0,'X(62)','',0,'',0,0,'' )
,('LORDF4','DD',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','DD',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','DD',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDF4','DD',4,'TIPO RIGA = "D"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','DD',5,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','DD',6,'ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','DD',7,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','DD',8,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDF4','DD',9,'RIGA CONTRATTO',2,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','DD',10,'RECORD UGUALE A QUELLO DI AORDF4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','DD',11,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDF4','DD',12,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','DD',13,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDF4','DD',14,'QUANTITA'' RIGA',3,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','DD',15,'QUANTITA'' RIGA EVASA',3,'QTAEVA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','DD',16,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','DD',17,'MANIPOLAZIONI',3,'MANIPO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',5,'',0,0,'' )
,('LORDF4','DD',18,'GRADO IMPEGNATO',3,'GRAIMP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,6,3,0,'99V999 COMP-3','',0,'',0,0,'' )
,('LORDF4','DD',19,'TIPO PREZZO',3,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','DD',20,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,9,17,5,0,'9(11)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDF4','DD',21,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','DD',22,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LORDF4','DD',23,'SCONTO LITRO',3,'SCOLTR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','DD',24,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','DD',25,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','DD',26,'DATA CONSEGNA',3,'DTAPRC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,8,0,0,'9(8) COMP-3','',0,'',0,0,'' )
,('LORDF4','DD',27,'DESCRIZIONE ALTERNATIVA ARTICOLO',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF4','DD',28,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LORDF4','DD',29,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF4','DD',30,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','DD',31,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','DD',32,'EVASIONE FORZATA CONTRATTO (S/ )',2,'EVACON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','DD',33,'SIGLA UNITA'' DI MISURA',2,'SIGUDM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LORDF4','DD',34,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,31,31,0,0,'X(31)','',0,'',0,0,'' )
,('LORDF4','II',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','II',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','II',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDF4','II',4,'TIPO RIGA = "I"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','II',5,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','II',6,'ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','II',7,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','II',8,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDF4','II',9,'ZERI',2,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','II',10,'RECORD UGUALE A QUELLO DI AORDF4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','II',11,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF4','II',12,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDF4','II',13,'IMPORTO ORDINATO',3,'IMPORD',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','II',14,'IMPORTO EVASO',3,'IMPEVA',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','II',15,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','II',16,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,68,68,0,0,'X(68)','',0,'',0,0,'' )
,('LORDF4','II',17,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF4','II',18,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','II',19,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,49,49,0,0,'X(49)','',0,'',0,0,'' )
,('LORDF4','MM',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','MM',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','MM',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDF4','MM',4,'TIPO RIGA = "M"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','MM',5,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','MM',6,'ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','MM',7,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','MM',8,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FIILER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDF4','MM',9,'RIGA CONTRATTO',2,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','MM',10,'RECORD UGUALE A QUELLO DI AORDF4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','MM',11,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDF4','MM',12,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','MM',13,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDF4','MM',14,'QUANTITA'' COMPLESSIVA RIGA',3,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','MM',15,'QUANTITA'' COMPLESSIVA EVASA',3,'QTAEVA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','MM',16,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','MM',17,'PREZZO UNITAZRIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,9,17,5,0,'9(11)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDF4','MM',18,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF4','MM',19,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LORDF4','MM',20,'SCONTO LITRO',3,'SCOLTR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LORDF4','MM',21,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','MM',22,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF4','MM',23,'DATA CONSEGNA',3,'DTAPRC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,8,0,0,'9(8) COMP-3','',0,'',0,0,'' )
,('LORDF4','MM',24,'DESCRIZIONE ALTERNATIVA ARTICOLO',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF4','MM',25,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,19,19,0,0,'X(19)','',0,'',0,0,'' )
,('LORDF4','MM',26,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF4','MM',27,'DESCRIZIONE RECIPIENTE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','MM',28,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDF4','MM',29,'EVASIONE FORZATA CONTRATTO (S/ )',2,'EVACON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDF4','MM',30,'SIGLA UNITA'' DI MISURA',2,'SIGUDM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LORDF4','MM',31,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,31,31,0,0,'X(31)','',0,'',0,0,'' )
,('LORDF5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDF5','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,'' )
,('LORDF5','01',3,'NUMERO RIGA ORDINE DI RIFERIMENTO',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDF5','01',5,'TIPO COMMENTO',3,'TIPCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LORDF5','01',10,'RIGA COMMENTO',3,'NUMRGA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDF5','01',11,'RIGA DI TESTO',2,'RTESTO',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDF5','01',12,'FLAG COMMENTI IN MAG/COMM',2,'FLGMEC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDFZ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDFZ','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,'' )
,('LORDFZ','01',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LORDFZ','01',4,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDFZ','01',8,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDFZ','01',9,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDFZ','01',10,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDFZ','01',11,'RIGA CONTRATTO (SOLO RIGHE MERCE)',2,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDFZ','01',12,'DATI',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDFZ','01',13,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDFZ','01',14,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDFZ','01',15,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',16,'QUANTITA'' RIGA',3,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',17,'QUANTITA'' RIGA EVASA',3,'QTAEVA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',18,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDFZ','01',19,'TAB.MANIPOLAZIONI O COMBINAZIONE MANIP.',3,'MANIPI',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDFZ','01',20,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDFZ','01',21,'MANIPOLAZIONI',4,'MANIPO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',5,'',0,0,'' )
,('LORDFZ','01',22,'GRADO IMPEGNATO',3,'GRAIMP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,6,3,0,'99V999 COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',23,'TIPO PREZZO',3,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDFZ','01',27,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,9,17,5,0,'9(11)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',28,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDFZ','01',29,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LORDFZ','01',30,'SCONTO LITRO',3,'SCOLTR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',31,'CODICE COMMERCCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDFZ','01',32,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDFZ','01',33,'DATA CONSEGNA',3,'DTAPRC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,8,0,0,'9(8) COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',34,'DESCRIZIONE ALTERNATIVA ARTICOLO',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDFZ','01',35,'IMPORTO ORDINATO',3,'IMPORD',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',36,'IMPORTO EVASO',3,'IMPEVA',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDFZ','01',37,'CODICE MANIPOLAZIONI COMMERCIALIZZAZIONE',3,'MANCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDFZ','01',38,'ID PRODOTTO REGISTRO UNICO',3,'IDPROD',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,0,'9(13)','',0,'',0,0,'' )
,('LORDFZ','01',39,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,74,74,0,0,'X(74)','',0,'',0,0,'' )
,('LORDFZ','01',40,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDFZ','01',41,'DIGLA UNITA DI MISURA',2,'SIGUDM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LORDFZ','01',42,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDFZ','01',43,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDFZ','01',44,'EVASIONE FORZATA RIGA CONTRATTO (S)',2,'EVACON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','00',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','00',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDI4','00',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDI4','00',5,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','00',10,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','00',11,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','00',12,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDI4','00',13,'RECORD UGUALE A QUELLO DI AORDI4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','00',14,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDI4','00',15,'RIGA CONTRATTO',3,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','00',16,'RECORD UGUALE A QUELLO DI AORDI4',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,147,147,0,0,'X(147)','',0,'',0,0,'' )
,('LORDI4','00',17,'DESCRIZIONE ARTICOLO',3,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','00',18,'DESCRIZIONE SUCCINTA ARTICOLO',3,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','00',19,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,123,123,0,0,'X(123)','',0,'',0,0,'' )
,('LORDI4','DD',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','DD',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','DD',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDI4','DD',4,'ZERI',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDI4','DD',5,'TIPO RIGA = "D"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','DD',6,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','DD',7,'ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','DD',8,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','DD',9,'RECORD UGUALE A QUELLO DI LORDI4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','DD',10,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDI4','DD',11,'RIGA CONTRATTO',3,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','DD',12,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','DD',13,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDI4','DD',14,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','DD',15,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',16,'QUANTITA'' RIGA',3,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',17,'QUANTITA'' RIGA EVASA',3,'QTAEVA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',18,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','DD',19,'MANIPOLAZIONI',3,'MANIPO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',5,'',0,0,'' )
,('LORDI4','DD',20,'GRADO IMPEGNATO',3,'GRAIMP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,6,3,0,'99V999 COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',21,'TIPO PREZZO',3,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','DD',22,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,5,0,'9(8)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',23,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','DD',24,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LORDI4','DD',25,'SCONTO LITRO',3,'SCOLTR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',26,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDI4','DD',27,'PROVVIGIONE AGENTE CAPO AREA',3,'PPRACA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDI4','DD',28,'PESO LORDO',3,'PLORDO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',29,'PESO NETTO',3,'PNETTO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','DD',30,'ZONA VITICOLA',3,'ZONVIT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDI4','DD',31,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','DD',32,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','DD',33,'NUMERO INTERNO IDONEITA'' USATA',3,'CODIDO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,13,0,0,'X(5) COMP-X','',0,'',0,0,'' )
,('LORDI4','DD',34,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,24,24,0,0,'X(24)','',0,'',0,0,'' )
,('LORDI4','DD',35,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','DD',36,'DESCRIZIONE SUCCINTA ARTICOLO',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','DD',37,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','DD',38,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','DD',39,'FLAG RIGA CONTRATTO CONGELATA (S/ )',2,'EVACON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','DD',40,'NUMERO PROGRESSIVO CAMPIONE',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LORDI4','DD',41,'LOTTO',2,'LOTTOS',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LORDI4','DD',42,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,74,74,0,0,'X(74)','',0,'',0,0,'' )
,('LORDI4','II',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','II',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','II',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDI4','II',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDI4','II',5,'TIPO RIGA = "I"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','II',6,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','II',7,'ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','II',8,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LORDI4','II',9,'RECORD UGUALE A QUELLO DI LORDI4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','II',10,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDI4','II',11,'ZERI',3,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','II',12,'FLAG PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','II',13,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','II',14,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDI4','II',15,'IMPORTO ORDINATO',3,'IMPORD',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','II',16,'IMPORTO EVASO',3,'IMPEVA',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','II',17,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','II',18,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDI4','II',19,'PROVVIGIONE AGENTE CAPO AREA',3,'PPRACA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDI4','II',20,'QUANTITA'' PER CALCOLO IMPORTO ORDINATO',3,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,5,0,'S9(6)V9(5)','',0,'',0,0,'' )
,('LORDI4','II',21,'PREZZO PER CALCOLO IMPORTO ORDINATO',3,'PREORD',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,5,0,'S9(6)V9(5)','',0,'',0,0,'' )
,('LORDI4','II',22,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,68,68,0,0,'X(68)','',0,'',0,0,'' )
,('LORDI4','II',23,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','II',24,'DESCRIZIONE SUCCINTA ARTICOLO',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','II',25,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','II',26,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,108,108,0,0,'X(108)','',0,'',0,0,'' )
,('LORDI4','MM',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','MM',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','MM',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDI4','MM',4,'NUMERO COMPONENTE RIGA (CONF. MISTE)',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDI4','MM',5,'TIPO RIGA = "M"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','MM',6,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','MM',7,'ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','MM',8,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','MM',9,'RECORD UGUALE A QUELLO DI LORDI4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','MM',10,'CAUSALE S.M.',3,'FLGCAN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDI4','MM',11,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LORDI4','MM',12,'RIGA CONTRATTO',3,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','MM',13,'FLAG CONFEZI0NE MISTA ( /1/2)',3,'FLGCFM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','MM',14,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','MM',15,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDI4','MM',16,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','MM',17,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',18,'QUANTITA'' COMPLESSIVA RIGA',3,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',19,'QUANTITA'' COMPLESSIVA EVASA',3,'QTAEVA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',20,'QUANTITA'' VENDITA',3,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',21,'QUANTITA'' VENDITA EVASA',3,'QTAVEE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',22,'QUANTITA'' OMAGGI',3,'QTAOMA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',23,'QUANTITA'' OMAGGI EVASA',3,'QTAOME',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',24,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','MM',25,'PROVENIENZA RIGA (A=AUTOMATICA)',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','MM',26,'GRADO',3,'GRADOH',0,0,0,0,0,0,0,0,0,0,'',1,0,2,5,2,0,'99V99 COMP','',0,'',0,0,'' )
,('LORDI4','MM',27,'PREZZO UNITAZRIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,5,0,'9(8)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',28,'PREZZO UNITARIO CONFEZIONE MISTA',3,'PRZCFM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,5,0,'9(8)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',29,'PREZZO UNITARIO COMPONENTE CONF.MISTA',3,'PRZCMP',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,5,0,'9(8)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',30,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','MM',31,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LORDI4','MM',32,'SCONTO LITRO',3,'SCOLTR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',33,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDI4','MM',34,'PROVVIGIONE AGENTE CAPO AREA',3,'PPRACA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDI4','MM',35,'EX PEESO LORDO MAI USATO',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LORDI4','MM',36,'EX PESO NETTO MAI USATO',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LORDI4','MM',37,'NUMERO PALLETS',3,'PALLET',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',38,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','MM',39,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','MM',40,'TIPO CONFEZIONE MISTA (C/X)',3,'TIPCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','MM',41,'GENERAZIONE VUOTI (N)',3,'FLGVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','MM',42,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','MM',43,'DESCRIZIONE SUCCINTA ARTICOLO',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','MM',44,'DESCRIZIONE RECIPIENTE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','MM',45,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','MM',46,'FLAG RIGA CONTRATTO CONGELATA (S/ )',2,'EVACON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','MM',47,'LOTTI SPEDITI',2,'LOTTIS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','MM',48,'ELEMENTO LOTTO',3,'ELELOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',3,'',0,0,'' )
,('LORDI4','MM',49,'LOTTO SPEDITO',4,'LOTTOS',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LORDI4','MM',50,'QUANTITA'' LOTTO',4,'QTALOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',51,'QUANTITA'' LOTTO',4,'QLOTEV',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','MM',52,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,32,32,0,0,'X(32)','',0,'',0,0,'' )
,('LORDI4','VV',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','VV',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','VV',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDI4','VV',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDI4','VV',5,'TIPO RIGA = "V"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','VV',6,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','VV',7,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','VV',8,'ANNATA ARTICOLO (ZERI)',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDI4','VV',9,'RECORD UGUALE A QUELLO DI LORDI4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI4','VV',10,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDI4','VV',11,'ZERI',3,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI4','VV',12,'PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI4','VV',13,'QUANTITA'' CONSEGNATA',3,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','VV',14,'QUANTITA'' CONSEGNATA FRANCO ARRIVO',3,'QTACFA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','VV',15,'QUANTITA'' RESA',3,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','VV',16,'CAUZIONE UNITARIA',3,'CAUUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDI4','VV',17,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,124,124,0,0,'X(124)','',0,'',0,0,'' )
,('LORDI4','VV',18,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDI4','VV',19,'DESCRIZIONE SUCCINTA ARTICOLO',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDI4','VV',20,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,123,123,0,0,'X(123)','',0,'',0,0,'' )
,('LORDI5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDI5','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,'' )
,('LORDI5','01',3,'NUMERO RIGA ORDINE DI RIFERIMENTO',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDI5','01',5,'TIPO COMMENTO',3,'TIPCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LORDI5','01',10,'RIGA COMMENTO',3,'NUMRGA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDI5','01',11,'RIGA DI TESTO',2,'RTESTO',0,0,0,0,0,0,0,0,0,0,'',4,0,72,72,0,0,'X(72)','',0,'',0,0,'' )
,('LORDI5','01',12,'RIPORTA IN BOLLA ( /N)',2,'FLGBOL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI5','01',13,'RIPORTA IN FATTURA ( /N)',2,'FLGFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI5','01',14,'RIPORTA IN ORDINE ( /N)',2,'FLGORD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDI5','01',15,'RIPORTA IN MAG/COMM',2,'FLGMEC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LORDIM','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIM','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,'' )
,('LORDIM','01',3,'DATA SCADENZA',3,'DATSCA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LORDIM','01',4,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LORDIM','01',5,'IMPORTO SCADENZA',2,'IMPSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('LORDIS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIS','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,'' )
,('LORDIS','01',3,'RIGA ORDINE DI RIFERIMENTO',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDIS','01',4,'NUMERO SSCC',3,'CODSSC',0,0,0,0,0,0,0,0,0,0,'',4,0,18,18,0,0,'X(18)','',0,'',0,0,'' )
,('LORDIS','01',5,'LOTTO SPEDITO',3,'LOTTOS',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDIS','01',6,'FILLER A SPAZI PER POSSIBILI AMPLIAMENTI',3,'SPACES',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LORDIS','01',7,'QUANTITA'' LOTTO',2,'QTALOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LORDIS','01',8,'DATA SCADENZA',2,'DTASCA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LORDIS','01',9,'QUANTITA EVASA LOTTO',2,'QTAEVA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','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,'' )
,('LORDIZ','01',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDIZ','01',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LORDIZ','01',5,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',10,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',11,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDIZ','01',12,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LORDIZ','01',13,'RECORD UGUALE A QUELLO DI LORDI4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',14,'RIGA CONTRATTO (SOLO RIGHE MERCE)',3,'RIGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDIZ','01',15,'TAB.MANIPOLAZIONI O COMBINAZIONE MANIP.',3,'MANIPI',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDIZ','01',16,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',17,'MANIPOLAZIONI',4,'MANIPO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',5,'',0,0,'' )
,('LORDIZ','01',18,'GRADO IMPEGNATO',3,'GRAIMP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,6,3,0,'99V999 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',19,'TIPO PREZZO',3,'TIPPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',23,'PESO LORDO',3,'PLORDO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',24,'PESO NETTO',3,'PNETTO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,9,2,0,'9(6)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',25,'ZONA VITICOLA',3,'ZONVIT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDIZ','01',26,'NUMERO INTERNO IDONEITA'' USATA',3,'CODIDO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,10,0,0,'9(10) COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',27,'IMPORTO ORDINATO',3,'IMPORD',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',28,'IMPORTO EVASO',3,'IMPEVA',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',29,'QUANTITA'' PER CALCOLO IMPORTO ORDINATO',3,'IMPQTA',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,5,0,'S9(6)V9(5)','',0,'',0,0,'' )
,('LORDIZ','01',30,'PREZZO PER CALCOLO IMPORTO ORDINATO',3,'PREORD',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,5,0,'S9(6)V9(5)','',0,'',0,0,'' )
,('LORDIZ','01',31,'CAUSALE OMAGGI (ENTRO CANVASS (S/N))',3,'FLGCAN',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDIZ','01',32,'FLAG CONFEZIONE MISTA ( /1/2)',3,'FLGCFM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',37,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDIZ','01',38,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LORDIZ','01',39,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDIZ','01',40,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',41,'QUANTITA'' RIGA',3,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',42,'QUANTITA'' RIGA EVASA',3,'QTAEVA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',43,'QUANTITA VENDITA',3,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',44,'QUANTITA VENDITA EVASA',3,'QTAVEE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',45,'QUANTITA OMAGGI',3,'QTAOMA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',46,'QUANTITA'' OMAGGI EVASA',3,'QTAOME',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',47,'EVASIONE FORZATA (S/ )',3,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',48,'PROVENIENZA RIGA (A=AUTOMATICA)',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',49,'GRADO',3,'GRADOH',0,0,0,0,0,0,0,0,0,0,'',1,0,2,5,2,0,'99V99 COMP','',0,'',0,0,'' )
,('LORDIZ','01',50,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,5,0,'9(8)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',64,'PREZZO UNITARIO CONFEZIONE MISTA',3,'PRZCFM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,5,0,'9(8)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',72,'VALORE COMPONENTE CONFEZIONE MISTA',3,'PRZCMP',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,5,0,'9(8)V9(5) COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',75,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',76,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LORDIZ','01',77,'SCONTO LITRO',3,'SCOLTR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,8,2,0,'9(5)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',78,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDIZ','01',79,'PROVVIGIONE AGENTE CAPO AREA',3,'PPRACA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDIZ','01',80,'NUMERO PALLETS',3,'PALLET',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',81,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDIZ','01',82,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LORDIZ','01',83,'TIPO CONFEZIONE MISTA (C/X)',3,'TIPCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',84,'GENERAZIONE VUOTI ( /N)',3,'FLGVUO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',85,'QUANTITA'' CONSEGNATA',3,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',86,'QUANTITA'' CONSEGNATA FRANCO ARRIVO',3,'QTACFA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',87,'QUANTITA'' RESA',3,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',88,'NR.RIGA ORDINE .RES(PROCEDURA WEB VALDO)',3,'RESRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('LORDIZ','01',89,'ESCLUSO DA CONTEGGIO SCONTO PAGAMENTO',3,'FLGSCP',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',90,'CODICE MANIPOLAZIONI COMMERCIALIZZAZIONE',3,'MANCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDIZ','01',91,'PROVVIGIONI AGENTE A PEZZO',3,'PPPAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('LORDIZ','01',92,'PROVVIGIONI CAPOA AREA A PEZZO',3,'PPPACA',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('LORDIZ','01',93,'DATI MEMORIZZATI PER SAN MARCO 058',3,'SANMAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',94,'CODICE CICLO',4,'CODCIC',0,0,0,0,0,0,0,0,0,0,'',4,0,13,13,0,0,'X(13)','',0,'',0,0,'' )
,('LORDIZ','01',95,'CODICE FASE',4,'CODFAS',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'X(3)','',0,'',0,0,'' )
,('LORDIZ','01',96,'SECONDA ZONA VIRICOLA (SOAVE)',3,'ZONVI2',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LORDIZ','01',97,'LOTTO FORZATO (SOAVE)',3,'LOTTOF',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDIZ','01',98,'filler',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,113,113,0,0,'X(113)','',0,'',0,0,'' )
,('LORDIZ','01',99,'ID PRODOTTO REG.VIT. ARTICOLI NO LOTTO',3,'IDPROD',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,0,'9(13)','',0,'',0,0,'' )
,('LORDIZ','01',100,'GRADO EFFETTIVO',3,'GRAEFF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LORDIZ','01',101,'GRADO CONCORDATO',3,'GRADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('LORDIZ','01',102,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDIZ','01',103,'DESCRIZIONE ARTICOLO SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDIZ','01',104,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDIZ','01',105,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LORDIZ','01',106,'FLAG RIGA CONTRATTO CONGELATA (S/ )',2,'EVACON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LORDIZ','01',107,'NUMERO PROGRESSIVO CAMPIONE',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LORDIZ','01',108,'LOTTO RIGA DOCO',2,'LOTTOD',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDIZ','01',109,'TABELLA LOTTI XAB',2,'LOTTIS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',110,'ELEMENTO LOTTO',3,'ELELOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',90,'',0,0,'' )
,('LORDIZ','01',111,'LOTTO SPEDITO',4,'LOTTOS',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LORDIZ','01',112,'DATA SCADENZA',4,'DTASCA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LORDIZ','01',113,'QTA LOTTO',4,'QTALOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',114,'QTA LOTTO EVASA',4,'QLOTEV',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',115,'ID PRODOTTO REG.UNICO PER LOTTO',4,'IDPROL',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,0,'9(13)','',0,'',0,0,'' )
,('LORDIZ','01',116,'QTA'' LOTTO FORZATO',4,'QTAFOR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LORDIZ','01',117,'VASCHE PARTENZA',2,'VASPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',118,'CODICE VASCA',3,'CODVSP',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',3,'',0,0,'' )
,('LORDIZ','01',119,'QTA VASCA PARTENZA',3,'QTAVSP',0,0,0,0,0,0,0,0,0,0,'',1,0,10,11,3,0,'9(7)V999','',3,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LORDIZ','01',120,'VASCH EARRIVO',2,'VASARR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORDIZ','01',121,'CODICE VASCA ARRIVO',3,'CODVSA',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',3,'',0,0,'' )
,('LORDIZ','01',122,'QUANTITA'' VASCA ARRIVO',3,'QTAVSA',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',3,'',0,0,'' )
,('LOREDI','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','04',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
('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','06',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','07',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','08',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LOREDI','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,'' )
,('LORES1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORES1','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORES1','01',3,'ELEMENTO',3,'RECTAB',0,0,0,0,0,0,0,0,0,0,'',4,0,64,64,0,0,'X(64)','',24,'',0,0,'' )
,('LORES2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORES2','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LORES2','01',3,'ELEMENTO',3,'RECTAB',0,0,0,0,0,0,0,0,0,0,'',4,0,64,64,0,0,'X(64)','',24,'',0,0,'' )
,('LOUT00','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT00','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,192,192,0,0,'X(8192)','',0,'',0,0,'' )
,('LOUT01','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,512,512,0,0,'X(512)','',0,'',0,0,'' )
,('LOUT01','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','02',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','02',3,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT01','02',4,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','02',5,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','02',6,'CODICE LOCALITA',2,'CODLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT01','02',7,'VIGNETO',2,'VIGNET',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','02',8,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','02',9,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOUT01','02',10,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','02',11,'SUB-PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','02',12,'CODICE POSSESSO',2,'CODPOS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','02',13,'CODICE VITIGNO',2,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT01','02',14,'TABELLA ATTRIBUTI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','02',15,'ATTRIBUTI',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LOUT01','02',16,'TABELLA NUMERI',2,'TABNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','02',17,'NUMERI',3,'NUMDEF',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',10,'',0,0,'' )
,('LOUT01','02',18,'SUP. VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT01','02',19,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT01','02',20,'CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT01','02',21,'PRODUZIONE S/N',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','02',22,'NOME PROPRIETARIO',2,'NOMEPR',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT01','02',23,'NOTE VIGNETO',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','02',24,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','03',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','03',3,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','03',4,'PROGRESSIVO',2,'NUMPRG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT01','03',5,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','03',6,'DATA AUTORIZZAZIONE',2,'DTAAUT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT01','03',7,'NUMERO MATRICOLA',2,'NRMATR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','03',8,'CODICE IPA',2,'CODIPA',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','03',9,'NOME INTESTATARIO',2,'NOMINT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','03',10,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT01','03',11,'CODICE FISCALE',2,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT01','03',12,'TERMINATORE PER UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','04',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','04',3,'TIPO DOCUMENTO',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','04',4,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','04',5,'DATA RILASCIO DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','04',6,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','05',2,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','05',3,'SEZIONE CENSUARIA',2,'SEZION',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','05',4,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','05',5,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','05',6,'SUB PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','05',7,'SUPERFICIE CATASTALE',2,'SUPCAT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LOUT01','05',8,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','11',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','11',3,'DATA CONFERIMENTO',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT01','11',4,'NR. CONFERIMENTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOUT01','11',5,'NR. PARTE',2,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOUT01','11',6,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','11',7,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','11',8,'LORDO',2,'QTALOR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT01','11',9,'TARA',2,'QTATAR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT01','11',10,'NETTO',2,'QTANET',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT01','11',11,'GRADO BABO',2,'GRADOB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LOUT01','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','21',2,'NOME FILE DI PROVENIENZA',2,'NOMFIL',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','21',3,'NUMERO RIGA',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,506,506,0,0,'X(506)','',0,'',0,0,'' )
,('LOUT01','22',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','22',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','22',3,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT01','22',4,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','22',5,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','22',6,'CODICE LOCALITA',2,'CODLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT01','22',7,'VIGNETO',2,'VIGNET',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','22',8,'SEZIONE CENSUARIA',2,'SEZION',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','22',9,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT01','22',10,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','22',11,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','22',12,'SUB-PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','22',13,'CODICE POSSESSO',2,'CODPOS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','22',14,'CODICE VITIGNO',2,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT01','22',15,'TABELLA ATTRIBUTI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','22',16,'ATTRIBUTI',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LOUT01','22',17,'TABELLA NUMERI',2,'TABNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','22',18,'NUMERI',3,'NUMDEF',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',10,'',0,0,'' )
,('LOUT01','22',19,'SUP. VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT01','22',20,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT01','22',21,'CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT01','22',22,'PRODUZIONE S/N',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','22',23,'NOME PROPRIETARIO',2,'NOMEPR',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT01','22',24,'NOTE VIGNETO',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','22',25,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','23',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','23',2,'CODICE REGISTRO (DEPOSITO)',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','23',3,'DATA SALDO',2,'DTASAL',0,0,0,0,0,0,0,0,0,0,'',5,0,6,6,0,0,'D6','',0,'',0,0,'' )
,('LOUT01','23',4,'CODICE COMMERCIALIZZAZIONE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','23',5,'DESCRIZIONE COMMERCIALIZZAZIONE',2,'DESCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,60,60,0,0,'X(60)','',0,'',0,0,'' )
,('LOUT01','23',6,'COLORE',2,'COLORE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','23',7,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','23',8,'MANIPOLAZIONI',2,'MANIPI',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','23',9,'QUANTITA SALDO',2,'QTASAL',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT01','23',10,'UNITA'' DI MISURA  SALDO',2,'UDMSAL',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','23',11,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','IA',2,'CODICE ARTICOLO',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','IA',3,'DESCRIZIONE ARTICOLO (I)',2,'DESCR1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LOUT01','IA',4,'DESCRIZIONE ARTICOLO (II)',2,'DESCR2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LOUT01','IA',5,'UNITA DI MISURA (SIGLA)',2,'CODUDM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','IA',6,'CODICE IVA',2,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOUT01','IA',7,'CODICE EAN',2,'INDICO',0,0,0,0,0,0,0,0,0,0,'',4,0,13,13,0,0,'X(13)','',0,'',0,0,'' )
,('LOUT01','IA',8,'CATEGORIA MERCEOLOGICA',2,'CATMER',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','IA',9,'VOLUME IN LITRI',2,'VOLUME',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOUT01','IA',10,'PESO LORDO KG',2,'PESLOR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IA',11,'PESO NETTO KG',2,'PESNET',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IA',12,'GRADO ALCOLICO',2,'GRADOA',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IA',13,'CODICE CONFEZIONE (NOSTRA U.D.M.)',2,'CODCON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','IA',14,'NOMENCLATURA COMBINATA',2,'NOMCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT01','IA',15,'TIPO ARTICOLO',2,'TIPART',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',19,'STATO ARTICOLO',2,'STAART',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',23,'QUANTITA'' MINIMA DI RIORDINO',2,'MINORD',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IA',24,'TEMPO DI APPROVIGIONAMENTO',2,'APPROV',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','IA',25,'GESTIONE PARTITE',2,'FLGLOT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',30,'CLASSE',2,'CLASSE',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','IA',38,'B=BIANCO, R=ROSSO, A=ROSATO',2,'COLORE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',39,'G=DOCG, D=DOC, I=IGT, T=TAVOLA',2,'TIPVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',40,'GESTIONE PER ANNATA (S/N) (COPIONI)',2,'FLGANN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',41,'ANNATA CORRENTE DEL VINO (COPIONI)',2,'CURANN',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','IA',42,'BLOCCATO (S/N)',2,'FLGOBS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IA',43,'SCORTA MINIMA',2,'SCOMIN',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LOUT01','IA',44,'SCORTA MASSIMA',2,'SCOMAX',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LOUT01','IA',45,'CODICE MARCHIO',2,'MARCHI',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IA',46,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IC',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','IC',2,'CODICE CLIENTE',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IC',3,'RAGIONE SOCIALE (I)',2,'RAGSO1',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LOUT01','IC',4,'RAGIONE SOCIALE (II)',2,'RAGSO2',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LOUT01','IC',5,'INDIRIZZO',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,35,35,0,0,'X(35)','',0,'',0,0,'' )
,('LOUT01','IC',6,'CAP',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IC',7,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOUT01','IC',8,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','IC',9,'ISO NAZIONE',2,'ISONAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',10,'PARTITA IVA',2,'PARIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,11,11,0,0,'X(11)','',0,'',0,0,'' )
,('LOUT01','IC',11,'CODICE FISCALE',2,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT01','IC',12,'PARTITA IVA CEE',2,'IVACEE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','IC',13,'ACCISA',2,'ACCISA',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','IC',14,'NOME PRIMO CONTATTO',2,'PRICON',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','IC',15,'TELEFONO PRIMO CONTATTO',2,'TELCON',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT01','IC',16,'SECONDO CONTATTO',2,'SECCON',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','IC',17,'TELEFONO SECONDO CONTATTO',2,'TELSEC',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT01','IC',18,'TELEFONO',2,'NUMTEL',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','IC',19,'FAX',2,'NUMFAX',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','IC',20,'CODICE VALUTA',2,'CODVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',21,'BLOCCATO S/N',2,'FLGOBS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IC',22,'CATEGORIA CLIENTE',2,'CODCAT',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',23,'ZONA CLIENTE',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',24,'TIPO CLIENTE',2,'CODTIP',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',25,'GRUPPO DI ACQUISTO',2,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',26,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IC',27,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IC',28,'CODICE LISTINO',2,'CODLIS',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',29,'CODICE VETTORE',2,'CODTRA',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IC',30,'CODICE PORTO',2,'CODPOR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','IC',31,'CODICE AREA COMMERCIALE',2,'CODARE',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IC',32,'GIORNO DI CHIUSURA',2,'GGCHIU',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IC',33,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','ID',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','ID',2,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','ID',3,'CODICE COMPONENTE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','ID',4,'PROGRESSIVO',2,'NUMPRG',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LOUT01','ID',5,'QUANTITA'' UTILIZZATA',2,'QTAPER',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','ID',6,'DATA INIZIO VALIDITA''',2,'DTAINI',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','ID',7,'DATA FINE VALIDITA''',2,'DTAFIN',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','ID',8,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IR',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','IR',2,'NUMERO ORDINE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IR',3,'FLAG EVASO (S/N)',2,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IR',4,'TIPO ORDINE',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','IR',5,'DATA ORDINE',2,'DTAORD',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IR',6,'NUMERO ORDINE',2,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IR',7,'NUMERO RIGA',2,'NUMRGA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','IR',8,'NUMERO SOTTORIGA',2,'NUMSOT',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'X(3)','',0,'',0,0,'' )
,('LOUT01','IR',9,'CODICE MAGAZZINO (DEPOSITO)',2,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IR',10,'CODICE CONFEZIONE',2,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','IR',11,'N=NORMALE, C=COMMENTO',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IR',12,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT01','IR',13,'SIGLA UNITA'' DI MISURA',2,'SIGUDM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','IR',14,'QUANTITA'' ORDINATA',2,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LOUT01','IR',15,'LITRI ORDINATI',2,'LITORD',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LOUT01','IR',16,'PESO LORDO',2,'PESLOR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IR',17,'PESO NETTO',2,'PESNET',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IR',18,'DATA PREVISTA CONSEGNA',2,'DTAPRE',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IR',19,'NUMERO COLLI',2,'NCOLLI',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IR',20,'NUMERO BOTTIGLIE',2,'NPEZZI',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LOUT01','IR',21,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT01','IR',22,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IS',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','IS',2,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IS',3,'CODICE DESTINATARIO',2,'CODDST',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IS',4,'RAGIONE SOCIALE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LOUT01','IS',5,'INDIRIZZO',2,'INDIRI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LOUT01','IS',6,'CAP',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IS',7,'LOCALITA''',2,'LOCALI',0,0,0,0,0,0,0,0,0,0,'',4,0,25,25,0,0,'X(25)','',0,'',0,0,'' )
,('LOUT01','IS',8,'PROVINCIA',2,'PROVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT01','IS',9,'ISONAZ',2,'ISONAZ',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT01','IS',10,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IT',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT01','IT',2,'NUMERO ORDINE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IT',3,'FLAG EVASO (S/N)',2,'FLGEVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IT',4,'TIPO ORDINE',2,'TIPORD',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT01','IT',5,'DATA ORDINE',2,'DTAORD',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IT',6,'NUMERO ORDINE',2,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IT',7,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOUT01','IT',8,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IT',9,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IT',10,'RIFERIMENTO ORDINE',2,'RIFORD',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT01','IT',11,'TOTALE COLLI',2,'TOTCOL',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IT',12,'TOTALE PESO LORDO',2,'TOTLOR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IT',13,'TOTALE PESO LORDO',2,'TOTNET',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IT',14,'CODICE DESTINATARIO',2,'CODDST',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IT',15,'C=CEDENTE/S=CESSIONARIO/V=VETTORE',2,'TRACUR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT01','IT',16,'CODICE PRIMO VETTORE',2,'CODTR1',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IT',17,'CODICE SECONDO VETTORE',2,'CODTR2',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT01','IT',18,'DATA PREVISTA CONSEGNA',2,'DTPREV',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT01','IT',19,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,512,512,0,0,'X(512)','',0,'',0,0,'' )
,('LOUT02','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','02',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT02','02',3,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT02','02',4,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT02','02',5,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT02','02',6,'CODICE LOCALITA',2,'CODLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT02','02',7,'VIGNETO',2,'VIGNET',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT02','02',8,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT02','02',9,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT02','02',10,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT02','02',11,'SUB-PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT02','02',12,'CODICE POSSESSO',2,'CODPOS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT02','02',13,'CODICE VITIGNO',2,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT02','02',14,'TABELLA ATTRIBUTI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','02',15,'ATTRIBUTI',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LOUT02','02',16,'TABELLA NUMERI',2,'TABNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','02',17,'NUMERI',3,'NUMDEF',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',10,'',0,0,'' )
,('LOUT02','02',18,'SUP. VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT02','02',19,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT02','02',20,'CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT02','02',21,'PRODUZIONE S/N',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','02',22,'NOME PROPRIETARIO',2,'NOMEPR',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT02','02',23,'NOTE VIGNETO',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT02','02',24,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','03',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT02','03',3,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT02','03',4,'PROGRESSIVO',2,'NUMPRG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT02','03',5,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT02','03',6,'DATA AUTORIZZAZIONE',2,'DTAAUT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT02','03',7,'NUMERO MATRICOLA',2,'NRMATR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT02','03',8,'CODICE IPA',2,'CODIPA',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT02','03',9,'NOME INTESTATARIO',2,'NOMINT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT02','03',10,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT02','03',11,'CODICE FISCALE',2,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT02','03',12,'TERMINATORE PER UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','04',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT02','04',3,'TIPO DOCUMENTO',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','04',4,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT02','04',5,'DATA RILASCIO DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT02','04',6,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','05',2,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT02','05',3,'SEZIONE CENSUARIA',2,'SEZION',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','05',4,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT02','05',5,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT02','05',6,'SUB PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT02','05',7,'SUPERFICIE CATASTALE',2,'SUPCAT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LOUT02','05',8,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT02','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','11',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT02','11',3,'DATA CONFERIMENTO',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT02','11',4,'NR. CONFERIMENTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOUT02','11',5,'NR. PARTE',2,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOUT02','11',6,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT02','11',7,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT02','11',8,'LORDO',2,'QTALOR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT02','11',9,'TARA',2,'QTATAR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT02','11',10,'NETTO',2,'QTANET',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT02','11',11,'GRADO BABO',2,'GRADOB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LOUT02','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT02','21',2,'NOME FILE DI PROVENIENZA',2,'NOMFIL',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT02','21',3,'NUMERO RIGA',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,506,506,0,0,'X(506)','',0,'',0,0,'' )
,('LOUT03','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT03','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT03','01',3,'ELEMENTO',3,'RECTAB',0,0,0,0,0,0,0,0,0,0,'',4,0,64,64,0,0,'X(64)','',24,'',0,0,'' )
,('LOUT04','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,999,999,0,0,'X(9999)','',0,'',0,0,'' )
,('LOUT04','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','02',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT04','02',3,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT04','02',4,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT04','02',5,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT04','02',6,'CODICE LOCALITA',2,'CODLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT04','02',7,'VIGNETO',2,'VIGNET',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT04','02',8,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT04','02',9,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT04','02',10,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT04','02',11,'SUB-PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT04','02',12,'CODICE POSSESSO',2,'CODPOS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT04','02',13,'CODICE VITIGNO',2,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT04','02',14,'TABELLA ATTRIBUTI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','02',15,'ATTRIBUTI',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LOUT04','02',16,'TABELLA NUMERI',2,'TABNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','02',17,'NUMERI',3,'NUMDEF',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',10,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOUT04','02',18,'SUP. VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT04','02',19,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT04','02',20,'CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT04','02',21,'PRODUZIONE S/N',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT04','02',22,'NOME PROPRIETARIO',2,'NOMEPR',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT04','02',23,'NOTE VIGNETO',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT04','02',24,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT04','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','03',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT04','03',3,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT04','03',4,'PROGRESSIVO',2,'NUMPRG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT04','03',5,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT04','03',6,'DATA AUTORIZZAZIONE',2,'DTAAUT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT04','03',7,'NUMERO MATRICOLA',2,'NRMATR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT04','03',8,'CODICE IPA',2,'CODIPA',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT04','03',9,'NOME INTESTATARIO',2,'NOMINT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT04','03',10,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT04','03',11,'CODICE FISCALE',2,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT04','03',12,'TERMINATORE PER UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT04','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','04',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT04','04',3,'TIPO DOCUMENTO',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT04','04',4,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT04','04',5,'DATA RILASCIO DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT04','04',6,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT04','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','05',2,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT04','05',3,'SEZIONE CENSUARIA',2,'SEZION',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT04','05',4,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT04','05',5,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT04','05',6,'SUB PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT04','05',7,'SUPERFICIE CATASTALE',2,'SUPCAT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LOUT04','05',8,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT04','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','11',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT04','11',3,'DATA CONFERIMENTO',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT04','11',4,'NR. CONFERIMENTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOUT04','11',5,'NR. PARTE',2,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOUT04','11',6,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT04','11',7,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT04','11',8,'LORDO',2,'QTALOR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT04','11',9,'TARA',2,'QTATAR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT04','11',10,'NETTO',2,'QTANET',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT04','11',11,'GRADO BABO',2,'GRADOB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LOUT04','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT04','21',2,'NOME FILE DI PROVENIENZA',2,'NOMFIL',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT04','21',3,'NUMERO RIGA',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,506,506,0,0,'X(506)','',0,'',0,0,'' )
,('LOUT05','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,999,999,0,0,'X(9999)','',0,'',0,0,'' )
,('LOUT05','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','02',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT05','02',3,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT05','02',4,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT05','02',5,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT05','02',6,'CODICE LOCALITA',2,'CODLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT05','02',7,'VIGNETO',2,'VIGNET',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT05','02',8,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT05','02',9,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT05','02',10,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT05','02',11,'SUB-PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT05','02',12,'CODICE POSSESSO',2,'CODPOS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT05','02',13,'CODICE VITIGNO',2,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT05','02',14,'TABELLA ATTRIBUTI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','02',15,'ATTRIBUTI',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LOUT05','02',16,'TABELLA NUMERI',2,'TABNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','02',17,'NUMERI',3,'NUMDEF',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',10,'',0,0,'' )
,('LOUT05','02',18,'SUP. VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT05','02',19,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT05','02',20,'CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT05','02',21,'PRODUZIONE S/N',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT05','02',22,'NOME PROPRIETARIO',2,'NOMEPR',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT05','02',23,'NOTE VIGNETO',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT05','02',24,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT05','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','03',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT05','03',3,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT05','03',4,'PROGRESSIVO',2,'NUMPRG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT05','03',5,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT05','03',6,'DATA AUTORIZZAZIONE',2,'DTAAUT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT05','03',7,'NUMERO MATRICOLA',2,'NRMATR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT05','03',8,'CODICE IPA',2,'CODIPA',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT05','03',9,'NOME INTESTATARIO',2,'NOMINT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT05','03',10,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT05','03',11,'CODICE FISCALE',2,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT05','03',12,'TERMINATORE PER UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT05','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','04',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT05','04',3,'TIPO DOCUMENTO',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT05','04',4,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT05','04',5,'DATA RILASCIO DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT05','04',6,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT05','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','05',2,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT05','05',3,'SEZIONE CENSUARIA',2,'SEZION',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT05','05',4,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT05','05',5,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT05','05',6,'SUB PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT05','05',7,'SUPERFICIE CATASTALE',2,'SUPCAT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LOUT05','05',8,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT05','11',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
('LOUT05','11',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT05','11',3,'DATA CONFERIMENTO',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT05','11',4,'NR. CONFERIMENTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOUT05','11',5,'NR. PARTE',2,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOUT05','11',6,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT05','11',7,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT05','11',8,'LORDO',2,'QTALOR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT05','11',9,'TARA',2,'QTATAR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT05','11',10,'NETTO',2,'QTANET',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT05','11',11,'GRADO BABO',2,'GRADOB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LOUT05','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT05','21',2,'NOME FILE DI PROVENIENZA',2,'NOMFIL',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT05','21',3,'NUMERO RIGA',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,506,506,0,0,'X(506)','',0,'',0,0,'' )
,('LOUT08','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,192,192,0,0,'X(8192)','',0,'',0,0,'' )
,('LOUT08','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','02',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT08','02',3,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT08','02',4,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT08','02',5,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT08','02',6,'CODICE LOCALITA',2,'CODLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT08','02',7,'VIGNETO',2,'VIGNET',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT08','02',8,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT08','02',9,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT08','02',10,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT08','02',11,'SUB-PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT08','02',12,'CODICE POSSESSO',2,'CODPOS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT08','02',13,'CODICE VITIGNO',2,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT08','02',14,'TABELLA ATTRIBUTI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','02',15,'ATTRIBUTI',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LOUT08','02',16,'TABELLA NUMERI',2,'TABNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','02',17,'NUMERI',3,'NUMDEF',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',10,'',0,0,'' )
,('LOUT08','02',18,'SUP. VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT08','02',19,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT08','02',20,'CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT08','02',21,'PRODUZIONE S/N',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT08','02',22,'NOME PROPRIETARIO',2,'NOMEPR',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT08','02',23,'NOTE VIGNETO',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT08','02',24,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT08','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','03',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT08','03',3,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT08','03',4,'PROGRESSIVO',2,'NUMPRG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT08','03',5,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT08','03',6,'DATA AUTORIZZAZIONE',2,'DTAAUT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT08','03',7,'NUMERO MATRICOLA',2,'NRMATR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT08','03',8,'CODICE IPA',2,'CODIPA',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT08','03',9,'NOME INTESTATARIO',2,'NOMINT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT08','03',10,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT08','03',11,'CODICE FISCALE',2,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT08','03',12,'TERMINATORE PER UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT08','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','04',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT08','04',3,'TIPO DOCUMENTO',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT08','04',4,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT08','04',5,'DATA RILASCIO DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT08','04',6,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT08','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','05',2,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT08','05',3,'SEZIONE CENSUARIA',2,'SEZION',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT08','05',4,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT08','05',5,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT08','05',6,'SUB PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT08','05',7,'SUPERFICIE CATASTALE',2,'SUPCAT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LOUT08','05',8,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT08','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','11',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT08','11',3,'DATA CONFERIMENTO',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT08','11',4,'NR. CONFERIMENTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOUT08','11',5,'NR. PARTE',2,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOUT08','11',6,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT08','11',7,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT08','11',8,'LORDO',2,'QTALOR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT08','11',9,'TARA',2,'QTATAR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT08','11',10,'NETTO',2,'QTANET',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT08','11',11,'GRADO BABO',2,'GRADOB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LOUT08','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT08','21',2,'NOME FILE DI PROVENIENZA',2,'NOMFIL',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT08','21',3,'NUMERO RIGA',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,506,506,0,0,'X(506)','',0,'',0,0,'' )
,('LOUT09','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,192,192,0,0,'X(8192)','',0,'',0,0,'' )
,('LOUT09','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','02',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT09','02',3,'NUMERO RIGA',2,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT09','02',4,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT09','02',5,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT09','02',6,'CODICE LOCALITA',2,'CODLOC',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT09','02',7,'VIGNETO',2,'VIGNET',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT09','02',8,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT09','02',9,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT09','02',10,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT09','02',11,'SUB-PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LOUT09','02',12,'CODICE POSSESSO',2,'CODPOS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LOUT09','02',13,'CODICE VITIGNO',2,'CODVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT09','02',14,'TABELLA ATTRIBUTI',2,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','02',15,'ATTRIBUTI',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LOUT09','02',16,'TABELLA NUMERI',2,'TABNUM',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','02',17,'NUMERI',3,'NUMDEF',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',10,'',0,0,'' )
,('LOUT09','02',18,'SUP. VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT09','02',19,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LOUT09','02',20,'CERTIFICATA',2,'QTACER',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT09','02',21,'PRODUZIONE S/N',2,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT09','02',22,'NOME PROPRIETARIO',2,'NOMEPR',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LOUT09','02',23,'NOTE VIGNETO',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT09','02',24,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT09','03',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','03',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT09','03',3,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT09','03',4,'PROGRESSIVO',2,'NUMPRG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LOUT09','03',5,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT09','03',6,'DATA AUTORIZZAZIONE',2,'DTAAUT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT09','03',7,'NUMERO MATRICOLA',2,'NRMATR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT09','03',8,'CODICE IPA',2,'CODIPA',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT09','03',9,'NOME INTESTATARIO',2,'NOMINT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT09','03',10,'SUP. CERTIFICATA',2,'SUPCER',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'9(2)V9(4)','',0,'',0,0,'' )
,('LOUT09','03',11,'CODICE FISCALE',2,'CODFIS',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT09','03',12,'TERMINATORE PER UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT09','04',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','04',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT09','04',3,'TIPO DOCUMENTO',2,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT09','04',4,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LOUT09','04',5,'DATA RILASCIO DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT09','04',6,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT09','05',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','05',2,'CODICE COMUNE',2,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT09','05',3,'SEZIONE CENSUARIA',2,'SEZION',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT09','05',4,'FOGLIO',2,'FOGLIO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT09','05',5,'PARTICELLA',2,'PARTIC',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT09','05',6,'SUB PARTICELLA',2,'SUBPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT09','05',7,'SUPERFICIE CATASTALE',2,'SUPCAT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LOUT09','05',8,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT09','11',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','11',2,'CODICE SOCIO',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT09','11',3,'DATA CONFERIMENTO',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT09','11',4,'NR. CONFERIMENTO',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOUT09','11',5,'NR. PARTE',2,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LOUT09','11',6,'CODICE UVA',2,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT09','11',7,'CODICE ZONA',2,'CODZON',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LOUT09','11',8,'LORDO',2,'QTALOR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT09','11',9,'TARA',2,'QTATAR',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT09','11',10,'NETTO',2,'QTANET',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LOUT09','11',11,'GRADO BABO',2,'GRADOB',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LOUT09','21',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT09','21',2,'NOME FILE DI PROVENIENZA',2,'NOMFIL',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LOUT09','21',3,'NUMERO RIGA',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,506,506,0,0,'X(506)','',0,'',0,0,'' )
,('LOUT10','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT10','01',2,'ANNO VENDEMMIA',2,'ANNVEN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOUT10','01',3,'DATA SALDO',2,'DTASAL',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LOUT10','01',4,'CODICE REGISTRO VINIFICAZIONE',2,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LOUT10','01',5,'DESCRIZIONE REGISTRO',2,'DESREG',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT10','01',6,'CODICE RAGRUPPAMENTO',2,'CODRAG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LOUT10','01',7,'DESCRIZIONE RAGRUPPAMENTO',2,'DESRAG',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT10','01',8,'AREA COLONNE',2,'ELECOL',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',12,'',0,0,'' )
,('LOUT10','01',9,'DESCRIZIONE COLONNA',3,'DESCOL',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT10','01',10,'SALDO',3,'QTASAL',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT10','01',11,'UNITA'' DI MISURA  SALDO',3,'UDMSAL',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LOUT10','01',12,'CR',2,'CHARCR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LOUT11','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT11','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,999,999,0,0,'X(9999)','',0,'',0,0,'' )
,('LOUT27','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LOUT27','01',2,'IDENTIFICATIVO CONFERIMENTO',2,'ID-CON',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT27','01',3,'DATA CONFERIMENTO',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LOUT27','01',4,'ORA CONFERIMENTO HHMMSS',2,'ORACON',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT27','01',5,'CUAA SOCIO',2,'CUASOC',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LOUT27','01',6,'RAGIONE SOCIALE SOCIO',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LOUT27','01',7,'CODICE UVA',2,'ID-UVA',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT27','01',8,'DESCRIZIONE UVA',2,'DESUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LOUT27','01',9,'PESO LORDO KG',2,'PESLOR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT27','01',10,'PESO TARA KG',2,'PESTAR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT27','01',11,'PESO NETTO KG - TOTALE',2,'PESNET',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT27','01',12,'PESO NETTO KG - UVA DICHIARATA',2,'NETDIC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT27','01',13,'PESO NETTO KG - SUPERO SE DICHIARATA DOC',2,'NETSUP',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LOUT27','01',14,'GRADO (IIDD)',2,'GRDCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LOUT27','01',15,'PREFISSO NUMERO BOLLA CONFERENTE',2,'PREFIX',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT27','01',16,'NUMERO BOLLA CONFERENTE',2,'NUMBOL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LOUT27','01',17,'POSTFISSO BOLLA CONFERENTE',2,'POSFIX',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LOUT27','01',18,'TERMINATORE PER MACCHINE UNIX',2,'CARTER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0102','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0102','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0102','01',3,'CODICE CONFERENTE',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0102','01',4,'CODICE SOCIETA''',3,'CODSCT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0102','01',6,'QUANTITA'' CONFERITA DOC',2,'QTADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LP0102','01',7,'QUANTITA'' CONFERITA TAVOLA',2,'QTATAV',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LP0102','01',8,'SUPERFICE VITATA',2,'SUPVIT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LP0102','01',9,'PERCENTUALE DI PARTECIPAZIONE',2,'PERPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,3,0,'999V999','',0,'',0,0,'' )
,('LP0102','01',10,'QUANTITA'' CONFERITA DOC PARTECIPAZIONE',2,'PARDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LP0102','01',11,'QUANTITA'' CONFERITA TAV PARTECIPAZIONE',2,'PARTAV',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LP0102','01',12,'SUPERFICE VITATA PARTECIPAZIONE',2,'VITPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,4,0,'9(5)V9(4)','',0,'',0,0,'' )
,('LP0102','01',13,'U = ULTIMO COMPONENTE',2,'FLGULT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0102','01',14,'IMPORTO PENALE PARTECIPAZIONE',2,'IMPPEN',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,3,'9(11)','9(8)V999',0,'',0,0,'' )
,('LP0102','01',15,'IMPORTO PENALE TOTALE',2,'PENTOT',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,3,'9(11)','9(8)V999',0,'',0,0,'' )
,('LP0102','01',16,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LP0801','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0801','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0801','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0801','01',4,'DESCRIZIONE AGENTE',2,'DESAGE',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LP0801','01',5,'PERCENTUALE DETRAZIONE',2,'PERDET',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,1,0,'999V9','',0,'',0,0,'' )
,('LP0801','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LP0820','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0820','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LP0820','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0820','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0820','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0820','01',9,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LP0820','01',10,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LP0820','01',11,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0820','01',12,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0820','01',13,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LP0820','01',14,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0820','01',15,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0820','01',16,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0820','01',17,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0820','01',18,'PROVVIGIONI PAGATE PERIODO',2,'PROPER',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0820','01',19,'DETRAZIONI PERIODO PRECEDENTE',2,'DETPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0820','01',20,'PROVVIGIONI PERIODI PRECEDENTI',2,'PROPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0820','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('LP0827','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0827','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0827','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0827','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0827','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0827','01',9,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LP0827','01',10,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LP0827','01',11,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0827','01',12,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0827','01',13,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LP0827','01',14,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0827','01',15,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0827','01',16,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0827','01',17,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0827','01',18,'PROGRESSIVO PROVVIGIONI INCASSATO',2,'INC001',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0827','01',19,'PROVVIGIONI GIA'' EROGATE INCASSATO',2,'INC002',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0827','01',20,'PROVVIGIONI DA EROGARE INCASSATO',2,'INC003',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0827','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('LP0830','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0830','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0830','01',3,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0830','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0830','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0830','01',9,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LP0830','01',10,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LP0830','01',11,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0830','01',12,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0830','01',13,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LP0830','01',14,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0830','01',15,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0830','01',16,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0830','01',17,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0830','01',18,'PROGRESSIVO PROVVIGIONI INCASSATO',2,'INC001',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0830','01',19,'PROVVIGIONI GIA'' EROGATE INCASSATO',2,'INC002',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0830','01',20,'PROVVIGIONI DA EROGARE INCASSATO',2,'INC003',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP0904','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0904','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0904','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0904','01',4,'CODICE SOGGETTO',3,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0904','01',5,'CODICE SOGGETTO (CLIENTE/SOCIO...)',3,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0904','01',6,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0904','01',7,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LP0904','01',8,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP0906','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0906','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0906','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0906','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0906','01',5,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LP0906','01',6,'IMPORTO DOCUMENTO',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99  COMP-3','',0,'',0,0,'' )
,('LP0906','01',7,'IMPORTO PROVVIGIONE',2,'PRORIG',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99  COMP-3','',0,'',0,0,'' )
,('LP0906','01',8,'DATA PAGAMENTO AGENTE',2,'DATPAG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0906','01',9,'DATA STORNO',2,'DATSTO',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0906','01',10,'DATA RIACCREDITO',2,'DATRIA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0907','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0907','01',2,'CHIAVE',2,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0907','01',3,'CODICE ATTRIBUTO',3,'CODATT',1,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP0907','01',4,'DESCRIZIONE ATTRIBUTO',2,'DESATT',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LP0907','01',5,'GIORNI FRANCHIGIA',2,'GGGFRA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LP0926','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0926','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0926','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0926','01',4,'CODICE SOGGETTO',3,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0926','01',5,'CODICE SOGGETTO (CLIENTE/SOCIO...)',3,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0926','01',6,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0926','01',7,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LP0926','01',8,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP0927','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0927','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0927','01',3,'0=ITALIA 1=ESTERO',3,'TIPNAZ',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LP0927','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0927','01',5,'IMPONIBILE MATURATO',2,'IMP001',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99  COMP-3','',0,'',0,0,'' )
,('LP0927','01',6,'PROVVIGIONE MATURATA',2,'PRO001',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99  COMP-3','',0,'',0,0,'' )
,('LP0927','01',7,'IMPONIBILE LIQUIDATO',2,'IMP002',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LP0927','01',8,'PROVVIGIONE LIQUIDATA',2,'PRO002',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LP0927','01',9,'IMPONIBILE DA LIQUIDARE',2,'IMP003',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LP0927','01',10,'PROVVIGIONE DA LIQUIDARE',2,'PRO003',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LP0927','01',11,'IMPONIBILE DA LIQUIDARE PREC. ESERCIZIO',2,'IMP004',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LP0927','01',12,'PROVVIGIONE DA LIQUIDARE PREC. ESERCIZIO',2,'PRO004',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LP0950','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0950','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,'' )
,('LP0950','01',3,'PROGRESSIVO',3,'PROGRE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP0950','01',4,'CODICE LINEA',2,'CODLIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP0950','01',5,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LP0950','01',6,'PROVINCIA',2,'CODPRO',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
('LP0950','01',7,'COMUNE',2,'COMUNE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP0950','01',8,'C.A.P.',2,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LP0950','01',9,'CLIENTE/DESTINATARIO',2,'CLIDES',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0950','01',10,'CANALE',2,'CODCAN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP0950','01',11,'RAGRUPPAMENTO CANALE',2,'CODRCA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP0950','01',12,'CODICE GRUPPO CLIENTE',2,'CODGRU',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP0950','01',13,'PERCENTUALE PROVVIGIONE',2,'PERPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LP0953','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0953','01',2,'CODICE AGENTE',2,'CODAGE',1,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0953','01',3,'CODICE CAPO AREA',2,'CODCAP',2,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0953','01',4,'CODICE RAGRUPPAMENTO',2,'CODRAG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP0956','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0956','01',2,'DATA LIMITE VALIDITA''',2,'DATLIM',1,0,0,0,0,0,0,0,0,0,'',5,0,6,6,0,0,'D6','',0,'',0,0,'' )
,('LP0956','01',3,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0956','01',4,'ANNO LIMITE',3,'AAALIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP0956','01',5,'MESE LIMITE',3,'MMMLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LP0956','01',6,'IMPORTO FISSO MENSILE',2,'IMPFIS',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LP0957','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0957','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP0957','01',3,'CODICE CAPOAREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0957','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP0957','01',5,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0957','01',6,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP0957','01',7,'NUMERO INTERNO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LP0957','01',8,'IMPORTO DOCUMENTO',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP0957','01',9,'IMPORTO PROVVIGIONI',2,'PRORIG',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP0957','01',10,'DATA PAGAMENTO CAPO AREA',2,'DATPAG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0957','01',11,'DATA STORNO',2,'DATSTO',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP0957','01',12,'DATA RIACCREDITO',2,'DATRIA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP09A3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP09A3','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP09A3','01',3,'CODICE CAPOAREA',3,'CODCAA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP09A3','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP09A3','01',5,'NUMERO ATTRIBUTO LINEA',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LP09A3','01',6,'CODICE ATTRIBUTO LINEA',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP09A3','01',7,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP09A3','01',8,'PROVVIGIONE',2,'PROVVI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP1220','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP1220','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP1220','01',3,'CODICE AGENTE',3,'CODAGE',0,5,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP1220','01',4,'DATA DOCUMENTO',3,'DATDOC',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP1220','01',6,'TIPO DOCUMENTO',3,'TIPDOC',0,3,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP1220','01',11,'NUMERO DOCUMENTO',3,'NUMDOC',0,4,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LP1220','01',13,'EVENTUALE CODICE RAGRUPPAMENTO',2,'CODRAG',0,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP1220','01',14,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LP1220','01',15,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP1220','01',16,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP1220','01',17,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LP1220','01',18,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1220','01',19,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1220','01',20,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1220','01',21,'PROVVIGIONI PAGATE PERIODO',2,'PROPER',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1220','01',22,'PROVVIGIONI PERIODO PRECEDENTE',2,'PROPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1222','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP1222','01',2,'CHIAVE',2,'KEY001',1,2,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP1222','01',3,'ANNO',3,'ANNAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP1222','01',4,'MESE',3,'MESAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LP1222','01',5,'CODICE RAGRUPPAMENTO PER RIEPILOGO',2,'CODRAG',0,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP1222','01',6,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP122A','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP122A','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP122A','01',3,'CODICE RAGRUPPAMENTO',3,'CODRAG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LP122A','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP122A','01',5,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LP122A','01',6,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP122A','01',7,'DESCRIZIONE SOGGETTO',2,'DESSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LP122A','01',8,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LP122A','01',9,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP122A','01',10,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP122A','01',11,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP122A','01',12,'PROVVIGIONI GIA'' EROGATE',2,'PROERO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP122A','01',13,'PROVVIGIONI DA EROGARE',2,'PRODAE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP122A','01',14,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP1620','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP1620','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP1620','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP1620','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP1620','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP1620','01',9,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LP1620','01',10,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LP1620','01',11,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LP1620','01',12,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP1620','01',13,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LP1620','01',14,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1620','01',15,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1620','01',16,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1620','01',17,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1620','01',18,'PROGRESSIVO PROVVIGIONI INCASSATO',2,'INC001',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1620','01',19,'PROVVIGIONI GIA'' EROGATE INCASSATO',2,'INC002',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1620','01',20,'PROVVIGIONI DA EROGARE INCASSATO',2,'INC003',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LP1620','01',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,7,7,0,0,'X(7)','',0,'',0,0,'' )
,('LP3216','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP3216','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,'' )
,('LP3216','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,'' )
,('LP3216','01',4,'ANNO PARTITA',3,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP3216','01',5,'NUMERO PARTITA',3,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LP3216','01',6,'TIPO VINCOLO',3,'TIPVIN',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LP3216','01',7,'DATA SCADENZA',3,'DATSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LP3216','01',8,'IMPORTO',2,'IMPLIB',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP3503','01',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
('LP3503','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,2,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP3503','01',3,'CODICE UVA',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LP3503','01',4,'NUMERO ATTRIBUTO VITIGNO',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LP3503','01',5,'CODICE VITIGNO',3,'CODVIT',0,1,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'X(3)','',0,'',0,0,'' )
,('LP3503','01',6,'PREZZO A GRADO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,5,'9(6)V99','999V9(5)',0,'',0,0,'' )
,('LP3503','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LP5609','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP5609','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,'' )
,('LP5609','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP5609','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LP5609','01',5,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP5609','01',6,'PERIODO RIFERIMENTO DOCUMENTO',4,'PERIOD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP5609','01',7,'ANNO IVA DOCUMENTO',5,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP5609','01',8,'MESE IVA DOCUMENTO',5,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LP5609','01',9,'GIORNO IVA DOCUMENTO',4,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LP5609','01',10,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LP5609','01',13,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LP79C1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP79C1','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP79C1','01',3,'CODICE CAPOAREA',3,'CODCAA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP79C1','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP79C1','01',5,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP79C1','01',6,'PROVVIGIONE',2,'PROVVI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP79C1','01',7,'IMPONIBILE DETRAZIONI',2,'IMPDET',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP79C1','01',8,'PROVVIGIONI DETRAZIONI',2,'PRODET',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP79C3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP79C3','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP79C3','01',3,'CODICE CAPOAREA',3,'CODCAA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP79C3','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LP79C3','01',5,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP79C3','01',6,'PROVVIGIONE',2,'PROVVI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LP79ST','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LP79ST','01',2,'CODICE SOCIO',2,'CODSOC',1,2,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LP79ST','01',3,'CODICE VITIGNO',2,'CODVIT',2,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'9(3)','',0,'',0,0,'' )
,('LP79ST','01',4,'QLI.PRENOTATI',2,'QLIPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LP79ST','01',5,'QLI.CONFERITI',2,'QLICON',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LPAACC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPAACC','01',2,'CHIAVE',2,'KEY002',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPAACC','01',3,'CODICE REGISTRO',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPAACC','01',4,'ANNO',3,'ANNPER',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPAACC','01',5,'MESE',3,'MESPER',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPAACC','01',6,'PROGRESSIVO INVIO',3,'PROINV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPAACC','01',7,'DATA MOVIMENTO',3,'DATMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LPAACC','01',8,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPAACC','01',9,'ANNO MOVIMENTO',4,'AAAMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPAACC','01',10,'MESE MOVIMENTO',4,'MMMMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPAACC','01',11,'GIORNO MOVIMENTO',4,'GGGMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPAACC','01',12,'TIPO RECORD C/F',3,'TIPREC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPAACC','01',13,'TIPO RICHIESTA (VEDI TA01) C:ICAD F:IC',3,'TIPRIC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPAACC','01',15,'TIPO DOCUMENTO SEMPRE ''DAA''',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPAACC','01',16,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,21,21,0,0,'X(21)','',0,'',0,0,'' )
,('LPAACC','01',17,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LPAACC','01',18,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPAACC','01',19,'ANNO DOCUMENTO',4,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPAACC','01',20,'MESE DOCUMENTO',4,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPAACC','01',21,'GIORNO DOCUMENTO',4,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPAACC','01',22,'CODICE ISO',3,'CODISO',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPAACC','01',23,'CODICE ACCISA DESTINATARIO',3,'CODACC',0,0,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LPAACC','01',24,'CODICE NOMENCLATURA COMBINATA',3,'CODNCO',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPAACC','01',25,'TIPO STOCCAGGIO (S/N)',3,'TIPSTO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPAACC','01',26,'VOLUME NOMINALE (SOLO PER CONFEZIONATO)',3,'VOLNOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,3,0,'999V999','',0,'',0,0,'' )
,('LPAACC','01',27,'CHIAVE PRNCIPALE',3,'KEY001',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPAACC','01',28,'NUMERO INTERNO MOVIMENTO',4,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPAACC','01',29,'QUANTITA'' IN LITRI',2,'QTALIT',0,0,0,0,0,0,0,0,0,0,'',1,0,16,17,5,0,'9(11)V9(5)','',0,'',0,0,'' )
,('LPAACC','01',30,'NUMERO CONFEZIONI (SOLO CONFEZIONATO)',2,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,7,7,0,0,'9(7)','',0,'',0,0,'' )
,('LPAACC','01',31,'TIPO MOVIMENTAZIONE',2,'TIPMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPAACC','01',32,'CAUSALE MOVIMENTAZIONE',2,'CAUMOV',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPAACC','01',36,'GRADO PER CALCOLO IMP (SEMPRE)',2,'GRAACC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPAACC','01',41,'IMPORTO IMPEGNATO SPEDIZIONI',2,'IMPSPE',0,0,0,0,0,0,0,0,0,0,'',1,0,14,15,2,0,'9(12)V99','',0,'',0,0,'' )
,('LPAACC','01',42,'IMPORTO IMPEGNATO APPURAMENTI',2,'IMPAPP',0,0,0,0,0,0,0,0,0,0,'',1,0,14,15,2,0,'9(12)V99','',0,'',0,0,'' )
,('LPAACC','01',43,'NUMERO INTERNO MOVIMENTO CANCELLATO',2,'NUMDEL',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPAACC','01',45,'IMPORTO PROVVEDIMENTI ACCETTATI',2,'IMPACC',0,0,0,0,0,0,0,0,0,0,'',1,0,14,15,2,0,'9(12)V99','',0,'',0,0,'' )
,('LPAACC','01',46,'IMPORTO PROVVEDIMENTI SCADUTI',2,'IMPSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,14,15,2,0,'9(12)V99','',0,'',0,0,'' )
,('LPAACC','01',47,'IMPORTO COMPLESSIVO DISPONIBILE',2,'IMPDIS',0,0,0,0,0,0,0,0,0,0,'',1,0,14,15,2,0,'9(12)V99','',0,'',0,0,'' )
,('LPAACC','01',48,'CODICE CPA',2,'CODCPA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LPAACC','01',49,'CODICE TARIC',2,'CODTAR',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPAACC','01',50,'CODICE CADDC',2,'CODCAD',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LPAACC','01',51,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,79,79,0,0,'X(79)','',0,'',0,0,'' )
,('LPEDR0','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR0','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR0','01',3,'INIZIO TRIMESTRE',3,'TRIINI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR0','01',4,'ANNO TRIMESTRE INIZIALE',4,'ANNINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDR0','01',5,'MESE TRIMESTRE INIZIALE',4,'MESINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEDR0','01',6,'FINE TRIMESTRE',3,'TRIFIN',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR0','01',7,'ANNO TRIMESTRE FINALE',4,'ANNFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDR0','01',8,'MESE TRIMESTRE FINALE',4,'MESFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEDR0','01',9,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPEDR0','01',10,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDR0','01',11,'TOTALE VENDUTO DEL TRIMESTRE (BOLLE)',2,'QTABOL',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('LPEDR1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR1','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR1','01',3,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPEDR1','01',4,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDR1','01',5,'TOTALE GIAGENZA (A)',2,'TOTGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',6,'TABELLE GIACENZE VARI MAGAZZINI',2,'TABGIA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR1','01',7,'ELEMENTO GIACENZA MAGAZZINO',3,'ELEGIA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',20,'',0,0,'' )
,('LPEDR1','01',8,'AZIENDA MAGAZZINO',4,'CODAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPEDR1','01',9,'MAGAZZINO',4,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEDR1','01',10,'GIAGENZA MAGAZZINI',4,'QTAGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',11,'ARRETRATI (B)',2,'QTAARR',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LPEDR1','01',12,'NUMERO ORDINI ARRETRATI',2,'NUMARR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',13,'DISPONIBILITA'' (C)',2,'QTADIS',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',14,'DATI SETTIMANALI',2,'PERIOD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',3,'',0,0,'' )
,('LPEDR1','01',15,'ORDINATO PRODUZIONE (DIP)',3,'ORDPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',16,'ORDINATO CLIENTI (ELQ)',3,'ORDCLI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',17,'SCORTA MINIMA (FMR)',3,'SCORTA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',18,'DA PRODURRE (GNS)',3,'DAPROD',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',19,'DISPONIBILITA'' (HOT)',3,'DISPON',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',20,'DATI GIORNI PRIMA SETTIMANA',2,'GGSETT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('LPEDR1','01',21,'ORDINATO CLIENTI GIORNALIERO',3,'GGORDC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',22,'DA PRODURRE GIORNALIERO',3,'GGDAPR',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',23,'ORDINATO PRODUZIONE GIORNALIERO',3,'GGORDP',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',24,'RESIDUO LUONGO PERIODO (U)',2,'RESLUN',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR1','01',25,'NR. ORDINI RESIDUO LUONGO PERIODO',2,'NUMLUN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR2','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR2','01',3,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPEDR2','01',4,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDR2','01',5,'TOTALE GIACENZA',2,'TOTGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',6,'GIAGENZA MAGAZZINI',2,'QTAGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',10,'',0,0,'' )
,('LPEDR2','01',7,'ARRETRATI',2,'QTAARR',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',8,'NUMERO ORDINI ARRETRATI',2,'NUMARR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',9,'DISPONIBILITA''',2,'QTADIS',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',10,'DATI SETTIMANALI',2,'PERIOD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',3,'',0,0,'' )
,('LPEDR2','01',11,'ORDINATO FORNITORI',3,'ORDFOR',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',12,'IMPEGNATO A PRODUZIONE',3,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',13,'SCORTA MINIMA',3,'SCORTA',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',14,'DA ORDINARE',3,'DAORDI',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',15,'DISPONIBILITA''',3,'DISPON',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',16,'DATI GIORNI PRIMA SETTIMANA',2,'GGSETT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',14,'',0,0,'' )
,('LPEDR2','01',17,'IMPEGNATO PRODUZIONE GIORNALIERO',3,'GGIMPP',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',18,'DA ORDINARE GIORNALIERO',3,'GGDAOR',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',19,'ORDINATO FORNITORI GIORNALIERO',3,'GGORDF',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',20,'RESIDUO LUONGO PERIODO',2,'RESLUN',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR2','01',21,'ORDINATO LUONGO PERIODO',2,'ORDLUN',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR3','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR3','01',3,'CHIAVE',3,'CHIAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,70,70,0,0,'X(70)','',0,'',0,0,'' )
,('LPEDR3','01',4,'TOTALE GIAGENZA (A)',2,'TOTGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',5,'LOTTO MINIMO',2,'LOTMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('LPEDR3','01',6,'TABELLE GIACENZE VARI MAGAZZINI',2,'TABGIA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR3','01',7,'ELEMENTO GIACENZA MAGAZZINO',3,'ELEGIA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',20,'',0,0,'' )
,('LPEDR3','01',8,'AZIENDA MAGAZZINO',4,'CODAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPEDR3','01',9,'MAGAZZINO',4,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEDR3','01',10,'GIAGENZA MAGAZZINI',4,'QTAGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',11,'ARRETRATI (B)',2,'QTAARR',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',12,'NUMERO ORDINI ARRETRATI',2,'NUMARR',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',13,'DISPONIBILITA'' (C)',2,'QTADIS',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',14,'DATI SETTIMANALI',2,'PERIOD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',3,'',0,0,'' )
,('LPEDR3','01',15,'ORDINATO PRODUZIONE (DIP)',3,'ORDPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',16,'ORDINATO CLIENTI (ELQ)',3,'ORDCLI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',17,'SCORTA MINIMA (FMR)',3,'SCORTA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',18,'DA PRODURRE (GNS)',3,'DAPROD',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',19,'DISPONIBILITA'' (HOT)',3,'DISPON',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',20,'RESIDUO LUONGO PERIODO (U)',2,'RESLUN',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR3','01',21,'NR. ORDINI RESIDUO LUONGO PERIODO',2,'NUMLUN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPEDR4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR4','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR4','01',3,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPEDR4','01',4,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDR4','01',5,'CODICE MAGAZZINO',3,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEDR4','01',6,'GIACENZA',2,'QTAGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR4','01',7,'ARRETRATI',2,'QTAARR',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR4','01',8,'DISPONIBILITA',2,'QTADIS',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,0,'S9(11) COMP-3','',0,'',0,0,'' )
,('LPEDR4','01',9,'SCORTA MINIMA',2,'SCOMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LPEDR4','01',10,'DATI GIORNI PRIMA SETTIMANA',2,'GGSETT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',7,'',0,0,'' )
,('LPEDR4','01',11,'IMPEGNATO PRODUZIONE GIORNALIERO',3,'GGIMPP',0,0,0,0,0,0,0,0,0,0,'',1,1,11,12,0,0,'S9(11)','',0,'',0,0,'' )
,('LPEDR4','01',12,'ORDINATO FORNITORI GIORNALIERO',3,'GGORDF',0,0,0,0,0,0,0,0,0,0,'',1,1,11,12,0,0,'S9(11)','',0,'',0,0,'' )
,('LPEDR5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR5','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDR5','01',3,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPEDR5','01',4,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDR5','01',5,'DATA ORDINE',3,'DTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LPEDR5','01',6,'QUANTITA'' ORDINATA',2,'QTAORD',0,0,0,0,0,0,0,0,0,0,'',1,0,6,11,0,0,'9(11) COMP-3','',0,'',0,0,'' )
,('LPEDRA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDRA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDRA','01',3,'CODICE MAGAZZINO',3,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEDRA','01',4,'CODICE ARTCIOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPEDRA','01',5,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDRA','01',6,'PERIODO',3,'PERIOD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEDRA','01',7,'ANNO',4,'AAAAAA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPEDRA','01',8,'MESE',4,'MMMMMM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEDRA','01',9,'SCORTA MINIMA',2,'SCORTA',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,0,'9(9)','',0,'',0,0,'' )
,('LPEN06','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEN06','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEN06','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPEN06','01',4,'DESCRIZIONE AGENTE',2,'DESAGE',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPEN06','01',5,'ANNO ULTIMA STAMPA FATTURA',2,'ANNFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','9(4)',0,'',0,0,'' )
,('LPEN06','01',6,'MESE ULTIMA STAMPA FATTURA',2,'MESFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPEN16','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPEN16','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,'' )
,('LPEN16','01',3,'RAGIONE SOCIALE',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPEN16','01',4,'CODICE AGENTE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG20','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG20','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG20','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG20','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG20','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG20','01',9,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG20','01',10,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LPGG20','01',11,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG20','01',12,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG20','01',13,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LPGG20','01',14,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',15,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',16,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',17,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',18,'PROGRESSIVO PROVVIGIONI INCASSATO',2,'INC001',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',19,'PROGRESSIVO PROVVIGIONI MATURATO',2,'MAT001',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',20,'PROVVIGIONI GIA'' EROGATE INCASSATO',2,'INC002',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',21,'PROVVIGIONI GIA'' EROGATE MATURATO',2,'MAT002',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',22,'PROVVIGIONI DA EROGATE INCASSATO',2,'INC003',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',23,'PROVVIGIONI DA EROGATE MATURATO',2,'MAT003',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG20','01',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG23','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG23','01',2,'NUMERO RIGA',2,'NUMRIG',1,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPGG23','01',3,'DESCRIZIONE MOVIMENTO',2,'DESMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPGG23','01',4,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPGG23','01',5,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPGG23','01',6,'QUANTITA''',2,'QTARIG',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LPGG23','01',7,'IMPONIBILE RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG23','01',8,'PERCENTUALE RIGA',2,'PERRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPGG23','01',9,'IMPORTO PROVVIGIONE A PEZZO',2,'PEZRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('LPGG23','01',10,'PROVVIGIONE RIGA',2,'PRORIG',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LPGG30','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG30','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG30','01',3,'RAGIONE SOCIALE PER STAMPA ALFABETICA',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPGG30','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG30','01',5,'SEQUENZA',3,'CODSEQ',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LPGG30','01',9,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG30','01',10,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG30','01',14,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG30','01',15,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LPGG30','01',16,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG30','01',17,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG30','01',18,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LPGG30','01',19,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG30','01',20,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG30','01',21,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG30','01',22,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG30','01',23,'PROVVIGIONI PAGATE PERIODO',2,'PROPER',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG30','01',24,'DETRAZIONI PERIODO PRECEDENTE',2,'DETPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG30','01',25,'PROVVIGIONI PERIODI PRECEDENTI',2,'PROPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG3X','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG3X','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,'' )
,('LPGG3X','01',3,'RAGIONE SOCIALE',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPGG3X','01',4,'CODICE AGENTE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG50','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG50','01',2,'NUMERO RIGA',2,'NUMRIG',1,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPGG50','01',3,'DESCRIZIONE MOVIMENTO',2,'DESMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPGG50','01',4,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPGG50','01',5,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPGG50','01',6,'QUANTITA''',2,'QTARIG',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LPGG50','01',7,'IMPONIBILE RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG50','01',8,'PERCENTUALE RIGA',2,'PERRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPGG50','01',9,'IMPORTO PROVVIGIONE A PEZZO',2,'PEZRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,3,0,'99V999','',0,'',0,0,'' )
,('LPGG50','01',10,'PROVVIGIONE RIGA',2,'PRORIG',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LPGG50','01',11,'TIPO INVESTIMENTO (SOAVE)',2,'TIPINV',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG52','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG52','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG52','01',3,'CODICE CAPOAREA',3,'CODCAA',0,1,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG52','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG52','01',5,'NUMERO ATTRIBUTO LINEA',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPGG52','01',6,'CODICE ATTRIBUTO LINEA',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG52','01',7,'CODICE TIPO INVESTIMENTO',3,'TIPINV',0,2,1,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG52','01',8,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG52','01',9,'PROVVIGIONE',2,'PROVVI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG55','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG55','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG55','01',3,'CODICE CAPOAREA',3,'CODCAA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG55','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG55','01',5,'NUMERO ATTRIBUTO LINEA',3,'NUMATT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPGG55','01',6,'CODICE ATTRIBUTO LINEA',3,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG55','01',7,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG55','01',8,'PROVVIGIONE',2,'PROVVI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG57','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG57','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG57','01',3,'CODICE CAPOAREA',3,'CODCAA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG57','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG57','01',5,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG57','01',6,'PROVVIGIONE',2,'PROVVI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG58','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG58','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG58','01',3,'CODICE CAPOAREA',3,'CODCAA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG58','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG58','01',5,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG58','01',6,'PROVVIGIONE',2,'PROVVI',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG60','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG60','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG60','01',3,'RAGIONE SOCIALE PER SELEZIONE ALFA',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPGG60','01',4,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG60','01',5,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG60','01',6,'SEQUENZA',3,'CODSEQ',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LPGG60','01',10,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG60','01',11,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG60','01',15,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG60','01',16,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LPGG60','01',17,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG60','01',18,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG60','01',19,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LPGG60','01',20,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG60','01',21,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG60','01',22,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG60','01',23,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG60','01',24,'PROVVIGIONI PAGATE PERIODO',2,'PROPER',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG60','01',25,'DETRAZIONI PERIODO PRECEDENTE',2,'DETPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG60','01',26,'PROVVIGIONI PERIODI PRECEDENTI',2,'PROPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG60','01',27,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LPGG6X','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG6X','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,'' )
,('LPGG6X','01',3,'RAGIONE SOCIALE',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPGG6X','01',4,'CODICE AGENTE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG72','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG72','01',2,'NUMERO RIGA',2,'NUMRIG',1,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPGG72','01',3,'DESCRIZIONE MOVIMENTO',2,'DESMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPGG72','01',4,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPGG72','01',5,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPGG72','01',6,'QUANTITA''',2,'QTARIG',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,2,0,'9(7)V99','',0,'',0,0,'' )
,('LPGG72','01',7,'IMPONIBILE RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LPGG72','01',8,'PERCENTUALE RIGA',2,'PERRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPGG72','01',9,'PROVVIGIONE RIGA',2,'PRORIG',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LPGG72','01',10,'TIPO INVESTIMENTO (SOAVE)',2,'TIPINV',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG74','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG74','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG74','01',3,'RAGIONE SOCIALE PER STAMPA ALFABETICA',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPGG74','01',4,'CODICE SUPER CAPO AREA',3,'CODSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG74','01',5,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG74','01',6,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG74','01',7,'CODICE SEQUENZA',3,'CODSEQ',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LPGG74','01',11,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG74','01',12,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG74','01',16,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG74','01',17,'NUMERO DI STAMPA PAR LE FATTURE',2,'NUMSTA',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LPGG74','01',18,'TIPO SOGGETTO',2,'TIPSOG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG74','01',19,'CODICE SOGGETTO',2,'CODSOG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG74','01',20,'SIGLA VALUTA',2,'SIGVAL',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LPGG74','01',21,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG74','01',22,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG74','01',23,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG74','01',24,'IMPORTO PAGATO DAL CLIENTE',2,'IMPPAG',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG74','01',25,'PROVVIGIONI PAGATE PERIODO',2,'PROPER',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG74','01',26,'DETRAZIONI PERIODO PRECEDENTE',2,'DETPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG74','01',27,'PROVVIGIONI PERIODI PRECEDENTI',2,'PROPRE',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG7X','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG7X','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,'' )
,('LPGG7X','01',3,'RAGIONE SOCIALE',3,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPGG7X','01',4,'CODICE AGENTE',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPGG83','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG83','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG83','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG83','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG83','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG83','01',9,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG83','01',10,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG83','01',11,'IMPONIBILE',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG83','01',12,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG83','01',13,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG83','01',14,'IMPORTO RESIDUO',2,'IMPRES',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG83','01',15,'FLAG STORNO /S',2,'FLGSTO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG84','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG84','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG84','01',3,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG84','01',4,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG84','01',5,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG84','01',9,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG84','01',10,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG84','01',11,'IMPONIBILE',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG84','01',12,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG84','01',13,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG84','01',14,'IMPORTO RESIDUO',2,'IMPRES',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG84','01',15,'DATA STORNO',2,'DATSTO',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG84','01',16,'FLAG RIACCREDITO S/N',2,'FLGRIA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG91','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG91','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG91','01',3,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG91','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG91','01',5,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG91','01',6,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG91','01',10,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG91','01',11,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG91','01',12,'IMPONIBILE',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG91','01',13,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG91','01',14,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG91','01',15,'IMPORTO RESIDUO',2,'IMPRES',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG91','01',16,'FLAG STORNO /S',2,'FLGSTO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG92','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG92','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPGG92','01',3,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG92','01',4,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPGG92','01',5,'DATA DOCUMENTO',3,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG92','01',6,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPGG92','01',10,'NUMERO DOCUMENTO',3,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPGG92','01',11,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPGG92','01',12,'IMPONIBILE',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG92','01',13,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG92','01',14,'PROVVIGIONE',2,'IMPPRO',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG92','01',15,'IMPORTO RESIDUO',2,'IMPRES',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPGG92','01',16,'DATA STORNO',2,'DATSTO',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPGG92','01',17,'FLAG RIACCREDITO S/N',2,'FLGRIA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPICO2','01',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
('LPICO2','01',2,'RIGA ANNOTAZIONE',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,75,75,0,0,'X(75)','',0,'',0,0,'' )
,('LPIPR1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPIPR1','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,'' )
,('LPIPR1','01',3,'CODICE AZIENDA',3,'CODAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPIPR1','01',4,'TIPO MOVIMENTO VEDI APIPR1-01TIPMOV',3,'TIPMOV',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPIPR1','01',5,'NUMERO INTERNO (ORDINI, ECC..)',3,'NUMERO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPIPR1','01',6,'PRODOTTO (SALDI, ECC...)',3,'CODPRO',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPIPR1','01',7,'CODICE MAGAZZINO',4,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPIPR1','01',8,'ARTICOLO',4,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPIPR1','01',9,'ANNATA',4,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPIPR1','01',10,'CODICE SALDO',3,'CODSAL',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPIPR2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPIPR2','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,'' )
,('LPIPR2','01',3,'CODICE AZIENDA',3,'CODAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPIPR2','01',4,'CODICE MAGAZZINO',3,'CODMAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPIPR2','01',5,'ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPIPR2','01',6,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPLIN4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIN4','01',2,'CHIAVE',2,'KEY001',1,2,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIN4','01',3,'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,'' )
,('LPLIN4','01',4,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPLIN4','01',5,'DATA REGISTRAZIONE',2,'DATREG',0,1,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPLIN4','01',6,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPLIN4','01',7,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPLIN4','01',8,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPLIN4','01',9,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIN4','01',10,'IMPOSTA',2,'IMPOST',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIN4','01',11,'PERCENTUALE IMPONIBILE',2,'IMPPER',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIN4','01',12,'CAUSALE CONTABILE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPLIN7','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIN7','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIN7','01',3,'CODICE GESTIONE',3,'CODGES',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPLIN7','01',4,'TIPO CALCOLO LIQUIDAZIONE',3,'TIPCAL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIN7','01',5,'CODICE ALIQUOTA IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIN7','01',6,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIN7','01',7,'IMPOSTA',2,'IMPOST',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIV1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV1','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV1','01',3,'TIPO CALCOLO LIQUIDAZIONE',3,'TIPCAL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV1','01',4,'CODICE ALIQUOTA IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV1','01',5,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIV1','01',6,'IMPOSTA',2,'IMPOST',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIV1','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LPLIV2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV2','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV2','01',3,'PERIODO LIQUIDAZIONE (MESE/ANNO)',3,'PERLIQ',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPLIV2','01',4,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV2','01',5,'ANNO LIQUIDAZIONE',4,'AAALIQ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPLIV2','01',6,'MESE LIQUIDAZIONE',4,'MESLIQ',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPLIV2','01',7,'TIPO CALCOLO LIQUIDAZIONE',3,'TIPCAL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV2','01',8,'CODICE ALIQUOTA IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV2','01',9,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,0,15,15,0,2,'9(15)','9(13)V99',0,'',0,0,'' )
,('LPLIV2','01',10,'IMPOSTA',2,'IMPOST',0,0,0,0,0,0,0,0,0,0,'',1,0,15,15,0,2,'9(15)','9(13)V99',0,'',0,0,'' )
,('LPLIV2','01',11,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPLIV3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV3','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV3','01',3,'TIPO CALCOLO LIQUIDAZIONE',3,'TIPCAL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV3','01',4,'CODICE ALIQUOTA IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV3','01',5,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIV3','01',6,'IMPOSTA',2,'IMPOST',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIV4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV4','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPLIV4','01',3,'TIPO CALCOLO LIQUIDAZIONE',3,'TIPCAL',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV4','01',4,'CODICE ALIQUOTA IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPLIV4','01',5,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPLIV4','01',6,'IMPOSTA',2,'IMPOST',0,0,0,0,0,0,0,0,0,0,'',1,1,17,19,2,0,'S9(15)V99','',0,'',0,0,'' )
,('LPNICA','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPNICA','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPNICA','01',3,'CODICE CAPO AREA',3,'CODCAP',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPNICA','01',4,'DESCRIZIONE CAPO AREA',2,'DESCAP',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPNICA','01',5,'PERCENTUALE DETRAZIONE',2,'PERDET',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,1,0,'999V9','',0,'',0,0,'' )
,('LPNICA','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPNISX','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPNISX','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPNISX','01',3,'CODICE SUPER CAPO AREA',3,'CODSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPNISX','01',4,'DESCRIZIONE SUPER CAPO AREA',2,'DESSCA',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPNISX','01',5,'PERCENTUALE DETRAZIONE',2,'PERDET',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,1,0,'999V9','',0,'',0,0,'' )
,('LPNISX','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPPDOP','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPPDOP','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,'' )
,('LPPDOP','01',3,'CODICE OPZIONE (PRIMO CAMPO FILE PPD)',3,'CODOPZ',0,1,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('LPPDOP','01',4,'PROGRESSIVO VALORE PER ORDINARLO GIUSTO',3,'VALIND',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPPDOP','01',5,'OPZIONE GESTITA (VALORI DOPO : SU PPD)',2,'VALOPZ',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('LPPDOP','01',6,'DESCRIZIONE OPZIONE/VALORE',2,'DESCRI',0,2,0,0,0,0,0,0,0,0,'',4,0,38,38,0,0,'X(38)','',0,'',0,0,'' )
,('LPPDOP','01',7,'DEFAULT (*)',2,'DEFAUL',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPRDL1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRDL1','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,'' )
,('LPRDL1','01',3,'LOTTO',3,'LOTTON',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPRDL1','01',4,'CODICE IDONEITA''',3,'CODIDO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPRDL1','01',5,'CODICE PARTITA REGISTRO F/S',3,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPRDL1','01',6,'CODICE UNITA'' DI MISURA',3,'CODUDM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPRDL1','01',7,'DATA PRODUZIONE (0 PER TOTALI)',3,'DTAPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LPRDL1','01',8,'NUMERO PRODUZIONE (0 PER TOTALI)',3,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPRDL1','01',9,'QTA PRODOTTA PEZZI',2,'QTAPEZ',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',0,'',0,0,'' )
,('LPRDL1','01',10,'QTA PRODOTTA LITRI',2,'QTALIT',0,0,0,0,0,0,0,0,0,0,'',1,0,9,10,3,0,'9(6)V999','',0,'',0,0,'' )
,('LPROD1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD1','01',2,'DATA PRODUZIONE',2,'DTAPRO',0,1,2,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPROD1','01',3,'CODICE LINEA',2,'CODLIN',0,2,1,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPROD1','01',4,'PROGRESSIVO',2,'PROGRE',0,3,3,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPROD1','01',5,'CODICE AZIENDA',2,'CODAZI',1,4,4,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LPROD1','01',6,'NUMERO INTERNO ORDINE PRODUZIONE',2,'NUMPRO',2,5,5,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPROD1','01',7,'ORA INIZIO',2,'INISTI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPROD1','01',8,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPROD1','01',9,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD1','01',10,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPROD1','01',11,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPROD1','01',12,'QUANTITA'' PRODOTTA',2,'QTAPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPROD1','01',13,'QUANTITA'' PRODOTTA IN LITRI',2,'QLITRI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPROD1','01',14,'FATTORE EFFICIENZA IMPIANTO',2,'FEFFIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,7,5,0,'9V9(5) COMP-3','',0,'',0,0,'' )
,('LPROD1','01',15,'DURATA STIMATA PRODUZIONE',2,'DURSTI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPROD1','01',16,'TEMPO DI CAMBIO STIMATO',2,'CAMSTI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPROD1','01',17,'TARE STIMATE',2,'TARSTI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPROD1','01',18,'ORA FINE STIMATA',2,'FINSTI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPROD1','01',19,'FLAG SUPERATA MEZZANOTTE (*/ )',2,'GGFSTI',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPROD1','01',20,'CODICE PARTITA',2,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD1','01',21,'ANNO PARTITA',3,'ANNOPA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD1','01',22,'TIPO PARTITA',3,'TIPOPA',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPROD1','01',23,'NUMERO PARTITA',3,'NUMEPA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'XXXX','',0,'',0,0,'' )
,('LPROD1','01',24,'CODICE VASCA',2,'CODVAS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD1','01',25,'STABILIMENTO VASCA',3,'STAVAS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPROD1','01',26,'SETTORE VASCA',3,'SETVAS',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPROD1','01',27,'NUMERO VASCA',3,'NUMVAS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD1','01',28,'FLAG NOTE PRESENTI',2,'FLNOTE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPROD1','01',29,'CODICE SECONDA VASCA',2,'CODVA2',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD1','01',30,'STABILIMENTO SECONDA VASCA',3,'STAVA2',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPROD1','01',31,'SETTORE SECONDA VASCA',3,'SETVA2',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPROD1','01',32,'NUMERO SECONDA VASCA',3,'NUMVA2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD1','01',33,'PRODUZIONE DA AGGIORNARE (S)',2,'FLGVAR',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPROD1','01',34,'RECORD LETTO DA APROD3 ADEGUARE LUNGHEZZ',2,'APROD3',0,0,0,0,0,0,0,0,0,0,'',4,0,135,135,0,0,'X(135)','',0,'',0,0,'' )
,('LPROD2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD2','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD2','01',3,'AZIENDA PRODUZIONE',3,'CODAZI',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPROD2','01',4,'NUMERO INTERNO ORDINE PRODUZIONE',3,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPROD2','01',5,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD2','01',6,'ANNOTAZIONI',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LPROD3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD3','01',2,'DATA PRODUZIONE',2,'DTAPRO',0,1,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPROD3','01',3,'CODICE LINEA',2,'CODLIN',0,2,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LPROD3','01',4,'PROGRESSIVO',2,'PROGRE',0,3,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPROD3','01',5,'CODICE AZIENDA',2,'CODAZI',1,4,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPROD3','01',6,'NUMERO INTERNO ORDINE PRODUZIONE',2,'NUMPRO',2,5,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LPROD3','01',7,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPROD3','01',8,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPROD3','01',9,'DESCRIZIONE SUCCINTA',2,'DESSUC',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPROD3','01',10,'QUANTITA'' PRODOTTA',2,'QTAPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPROD3','01',11,'QUANTITA'' PRODOTTA IN LITRI',2,'QLITRI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPROD5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD5','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,'' )
,('LPROD5','01',3,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD5','01',4,'NOTA',2,'RIGNOT',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LPROD7','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD7','01',2,'ARTICOLO',2,'CODART',1,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPROD7','01',3,'EFFICIENZA CALCOLATA',2,'EFFCAL',2,0,0,0,0,0,0,0,0,0,'',1,0,6,7,5,0,'9V9(5)','',0,'',0,0,'' )
,('LPROD7','01',4,'NUMERO RECORD (PER EVITARE DUP KEY)',2,'NUMERO',3,0,0,0,0,0,0,0,0,0,'',1,0,5,9,0,0,'9(9) COMP-3','',0,'',0,0,'' )
,('LPROD7','01',5,'PEZZI PRODOTTI',2,'QTAPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPROD8','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROD8','01',2,'PROGRESSIVO PESATA',2,'PROPES',1,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD8','01',3,'PROGRESSIVO CAMPIONI',2,'PROCAM',2,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROD8','01',4,'DATA PESATA',2,'DATPES',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LPROD8','01',5,'ORA PESATA',2,'ORAPES',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPROD8','01',6,'TARA PESATA',2,'TARPES',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LPROD8','01',7,'LORDO PESATA',2,'LORPES',0,0,0,0,0,0,0,0,0,0,'',1,0,7,8,2,0,'9(5)V99','',0,'',0,0,'' )
,('LPRODU','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRODU','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,'' )
,('LPRODU','01',3,'CODICE COMPONENTE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPRODU','01',4,'ANNATA',2,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPRODU','01',5,'LOTTO',2,'NLOTTO',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPRODU','01',6,'DESCRIZIONE',2,'DESCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPRODU','01',7,'UNITA'' DI MISURA',2,'UDMCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPRODU','01',8,'GESTITO AD ANNATE',2,'FLGANN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPRODU','01',9,'GESTITO A LOTTI',2,'FLGLOT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPRODU','01',10,'QUANTITA'' IMPIEGATA',2,'QTAIMP',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPRODU','01',11,'QUANTITA'' PERDITA/SFRIDI',2,'QTAPRD',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPRODU','01',12,'CODICE TAPPO',2,'CODTAP',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LPROE2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROE2','01',2,'CODICE PRODUTTORE',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LPROE3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROE3','01',2,'RIGA ANNOTAZIONE',2,'ANNOTA',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LPROGT','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROGT','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROGT','01',3,'RESA TAVOLA CONFERITA',3,'RESTAV',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPROGT','01',4,'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,'' )
,('LPROGT','01',5,'SUPERFICIE TAVOLA',2,'SUPTAV',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,'' )
,('LPROGT','01',6,'QUANTITA TAVOLA',2,'QTATAV',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPROPC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPROPC','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,'' )
,('LPROPC','01',3,'CODICE REGISTRO COMMERCIALIZZAZIONE',3,'CODREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROPC','01',4,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPROPC','01',5,'ANNATA (SE GESTITA)',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPROPC','01',6,'PROGRESSIVO CARICHI',2,'PRGCAR',0,0,0,0,0,0,0,0,0,0,'',1,1,8,17,3,0,'S9(12)V999 COMP-3','',0,'',0,0,'' )
,('LPROPC','01',7,'PROGRESSIVO SCARICHI',2,'PRGSCA',0,0,0,0,0,0,0,0,0,0,'',1,1,8,17,3,0,'S9(12)V999 COMP-3','',0,'',0,0,'' )
,('LPROPC','01',8,'GIACENZA',2,'QTAGIA',0,0,0,0,0,0,0,0,0,0,'',1,1,15,17,2,0,'S9(13)V99','',0,'',0,0,'' )
,('LPRRES','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRRES','01',2,'CODICE (PER IL MOMENTO GESTITO LUNGO 10)',2,'CODICE',1,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('LPRRES','01',3,'DESCRIZIONE',2,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,255,255,0,0,'X(255)','',0,'',0,0,'' )
,('LPRRES','01',4,'DESCRIZIONE AGGIUNTIVA',2,'DESAGG',0,0,0,0,0,0,0,0,0,0,'',4,0,250,250,0,0,'X(250)','',0,'',0,0,'' )
,('LPRSCR','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRSCR','01',2,'RECORD',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,512,512,0,0,'X(512)','',0,'',0,0,'' )
,('LPRUT1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRUT1','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LPRUT1','01',3,'NOME UTENTE',3,'NOMUTE',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LPRUT1','01',4,'NUMERO DI ACCESSI',2,'NUMACC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPRUT1','01',5,'filler',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LPRUT1','02',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRUT1','02',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRUT1','02',3,'CODICE PROGRAMMA',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LPRUT1','02',4,'NUMERO DI ACCESSI',2,'NUMACC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPRUT1','02',5,'filler',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
,('LPRVIN','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRVIN','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPRVIN','01',3,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPRVIN','01',4,'RIGA DEL MENU',2,'RIGMEN',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LPVEN4','00',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','00',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','00',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPVEN4','00',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPVEN4','00',5,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','00',9,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','00',10,'CODICE ARTICOLO PUNTO VENDITA',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','00',11,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','00',12,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPVEN4','00',13,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LPVEN4','00',14,'FILLER',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',4,0,103,103,0,0,'X(103)','',0,'',0,0,'' )
,('LPVEN4','00',15,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVEN4','00',16,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','00',17,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','00',18,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,22,22,0,0,'X(22)','',0,'',0,0,'' )
,('LPVEN4','II',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','II',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','II',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPVEN4','II',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPVEN4','II',5,'TIPO RIGA = "I"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','II',6,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','II',7,'CODICE ARTICOLO PUNTO VENDITA',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','II',8,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','II',9,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVEN4','II',10,'LOTTO',3,'NLOTTO',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LPVEN4','II',11,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','II',12,'FLAG PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','II',13,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVEN4','II',14,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPVEN4','II',15,'IMPORTO',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,2,0,'S9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','II',16,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPVEN4','II',17,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,58,58,0,0,'X(58)','',0,'',0,0,'' )
,('LPVEN4','II',18,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVEN4','II',19,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','II',20,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','II',21,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,22,22,0,0,'X(22)','',0,'',0,0,'' )
,('LPVEN4','MM',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','MM',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','MM',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPVEN4','MM',4,'NUMERO COMPONENTE RIGA (CONF. MISTE)',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPVEN4','MM',5,'TIPO RIGA = "M"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','MM',6,'PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','MM',7,'ARTICOLO PUNTO VENDITA',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','MM',8,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','MM',9,'ANNATA',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVEN4','MM',10,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LPVEN4','MM',11,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','MM',12,'FLAG CONFEZIONE MISTA ( /1/2)',3,'FLGCFM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','MM',13,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPVEN4','MM',14,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVEN4','MM',15,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVEN4','MM',16,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVEN4','MM',17,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPVEN4','MM',18,'QUANTITA RIGA (VENDITA + OMAGGI)',3,'QTABOL',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','MM',19,'QUANTITA VENDITA',3,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','MM',20,'QUANTITA OMAGGI',3,'QTAOMA',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','MM',21,'QUANTITA PERDITE DI TRASPORTO',3,'QTAPRT',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','MM',22,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('LPVEN4','MM',23,'PREZZO UNITARIO CONFEZIONE MISTA',3,'PRZCFM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('LPVEN4','MM',24,'PREZZO COMPONENTE CONFEZIONE MISTA',3,'PRZCMP',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('LPVEN4','MM',25,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','MM',26,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LPVEN4','MM',27,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPVEN4','MM',28,'FLAG ULTIMO COMPONENTE CONFEZIONE (X/ )',3,'FLGULT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','MM',29,'FLAG ULTIMO COMPONENTE TIPO "2" (X/ )',3,'FLGUL2',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','MM',30,'IMPORTO RIGA',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,2,'S9(11) COMP-3','S9(9)V99 COMP-3',0,'',0,0,'' )
,('LPVEN4','MM',31,'TIPO CONFEZIONE MISTA (C/X)',3,'TIPCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','MM',32,'TABELLA RECIPIENTI MULTIPLI',3,'TABREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','MM',33,'ELEMENTO RECIPIENTI',4,'ELEREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',4,'',0,0,'' )
,('LPVEN4','MM',34,'CODICE RECIPIENTE',5,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,6,0,0,'XX COMP-X','',0,'',0,0,'' )
,('LPVEN4','MM',35,'NUMERO RECIPIENTI',5,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,1,3,0,0,'X COMP-X','',0,'',0,0,'' )
,('LPVEN4','MM',36,'QTA TAGLIO SFUSI',3,'QTATAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,4,1,0,'99V9 COMP-3','',0,'',0,0,'' )
,('LPVEN4','MM',37,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVEN4','MM',38,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','MM',39,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','MM',40,'LOTTI MAGAZZINO',2,'LOTTIS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','MM',41,'LOTTO MAGAZZINO SPEDITO',3,'LOTTOS',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPVEN4','MM',42,'QUANTITA'' LOTTO MAGAZZINO',3,'QTALOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','MM',43,'LOTTO TRACCIABILITA',2,'LOTTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPVEN4','VV',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','VV',2,'CHIAVE PRINCIPALE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','VV',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPVEN4','VV',4,'ZERI',3,'ZEROES',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPVEN4','VV',5,'TIPO RIGA = "V"',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','VV',6,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','VV',7,'CODICE ARTICOLO PUNTO VENDITA',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','VV',8,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','VV',9,'ANNATA ARTICOLO (ZERI)',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LPVEN4','VV',10,'FILLER SPORCO A ZERI (EX LOTTO NUMERICO)',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LPVEN4','VV',11,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN4','VV',12,'PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVEN4','VV',15,'QUANTITA'' CONSEGNATA',3,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','VV',16,'QUANTITA'' RESA',3,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','VV',17,'CAUZIONE UNITARIA',3,'CAUUNI',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,0,'9(11)V99 COMP-3','',0,'',0,0,'' )
,('LPVEN4','VV',18,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,85,85,0,0,'X(85)','',0,'',0,0,'' )
,('LPVEN4','VV',19,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVEN4','VV',20,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','VV',21,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVEN4','VV',22,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,22,22,0,0,'X(22)','',0,'',0,0,'' )
,('LPVEN5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVEN5','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,'' )
,('LPVEN5','01',3,'NUMERO RIGA BOLLETTA DI RIFERIMENTO',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVEN5','01',5,'TIPO COMMENTO',3,'TIPCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LPVEN5','01',10,'RIGA COMMENTO',3,'NUMRGA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPVEN5','01',11,'RIGA DI TESTO',2,'RTESTO',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVENM','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENM','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,'' )
,('LPVENM','01',3,'NUMERO ERRORE',3,'NUMERR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVENM','01',4,'RIGA DI TESTO ERRORE',2,'RTESTO',0,0,0,0,0,0,0,0,0,0,'',4,0,80,80,0,0,'X(80)','',0,'',0,0,'' )
,('LPVENZ','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENZ','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,'' )
,('LPVENZ','01',3,'NUMERO RECORD',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPVENZ','01',4,'NUMERO COMPONENTE',3,'NUMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LPVENZ','01',5,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVENZ','01',9,'CODICE PRODOTTO',2,'PRODOT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENZ','01',10,'COD.BREVE-DEVE ESSERE SEMPRERICODIFICATO',3,'CODPVN',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVENZ','01',11,'CODICE ARTICOLO',3,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVENZ','01',12,'ANNATA ARTICOLO',3,'ANNATA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LPVENZ','01',13,'RECORD UGUALE A QUELLO DI LPVEN4',2,'RECORD',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENZ','01',14,'FLAG PROVENIENZA MOVIMENTO',3,'FLGPRO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVENZ','01',15,'DESCRIZIONE ALTERNATIVA',3,'DESCRI',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVENZ','01',16,'FLAG CONFEZIONE MISTA ( /1/2)',3,'FLGCFM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVENZ','01',21,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LPVENZ','01',22,'CODICE COMMERCIALIZZAZIONE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVENZ','01',23,'ANNATA COMMERCIALIZZAZIONE',3,'ANNCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVENZ','01',24,'CONFEZIONE/RECIPIENTE',3,'CODCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LPVENZ','01',25,'NUMERO CONFEZIONI/RECIPIENTI',3,'NUMCFZ',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',26,'QUANTITA RIGA (VENDITA + OMAGGI)',3,'QTABOL',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',27,'QUANTITA VENDITA',3,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',28,'QUANTITA OMAGGI',3,'QTAOMA',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',29,'QUANTITA PERDITA DI TRASPORTO',3,'QTAPRT',0,0,0,0,0,0,0,0,0,0,'',1,1,5,11,2,0,'S9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',30,'PREZZO UNITARIO',3,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('LPVENZ','01',44,'PREZZO UNITARIO CONFEZIONE MISTA',3,'PRZCFM',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('LPVENZ','01',52,'PREZZO COMPONENTE CONFEZIONE MISTA',3,'PRZCMP',0,0,0,0,0,0,0,0,0,0,'',1,0,7,14,2,5,'9(11)V99 COMP-3','9(8)V9(5) COMP-3',0,'',0,0,'' )
,('LPVENZ','01',56,'SCONTI COMMERCIALI',3,'SCONTI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENZ','01',57,'SCONTO COMMERCIALE',4,'SCONTO',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',4,'',0,0,'' )
,('LPVENZ','01',58,'PROVVIGIONE AGENTE',3,'PPRAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LPVENZ','01',59,'ULTIMO COMPONENTE CONFEZIONE (X/ )',3,'FLGULT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVENZ','01',60,'ULTIMO COMPONENTE TIPO "2" (X/ )',3,'FLGUL2',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVENZ','01',61,'IMPORTO TOTALE RIGA (USATO POCO)',3,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,6,12,0,2,'S9(11) COMP-3','S9(9)V99 COMP-3',0,'',0,0,'' )
,('LPVENZ','01',63,'TIPO CONFEZIONE MISTA (C/X)',3,'TIPCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVENZ','01',64,'TABELLA RECIPIENTI MULTIPLI',3,'TABREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENZ','01',65,'ELEMENTO RECIPIENTE',4,'ELEREC',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',4,'',0,0,'' )
,('LPVENZ','01',66,'CODICE RECIPIENTE',5,'CODREC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,6,0,0,'XX COMP-X','',0,'',0,0,'' )
,('LPVENZ','01',67,'NUMERO RECIPIENTI',5,'NUMREC',0,0,0,0,0,0,0,0,0,0,'',1,0,1,3,0,0,'X COMP-X','',0,'',0,0,'' )
,('LPVENZ','01',68,'QTA TAGLIO SFUSI',3,'QTATAG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,4,1,0,'99V9 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',69,'QUANTITA'' CONSEGNATA VUOTI',3,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',70,'QUANTITA'' RESA VUOTI',3,'QTARES',0,0,0,0,0,0,0,0,0,0,'',1,0,5,10,2,0,'9(7)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',71,'CODICE MANIPOLAZIONI COMMERCIALIZZAZIONE',3,'MANCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LPVENZ','01',72,'QUANTITA'' PER CALCOLO IMPORTO',3,'QTAIMP',0,0,0,0,0,0,0,0,0,0,'',1,1,8,10,2,0,'S9(6)V99','',0,'',0,0,'' )
,('LPVENZ','01',73,'PREZZO PER CALCOLO IMPORTO',3,'PREIMP',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,5,0,'S9(6)V9(5)','',0,'',0,0,'' )
,('LPVENZ','01',74,'ACCUMULO PUNTI FIDELITY (MERCE E SCONTO)',3,'PUNTIF',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,2,0,'S9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',75,'ESCLUSO DA PUNTI FIDELITY CARD (S)',3,'NO-PUN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LPVENZ','01',76,'ATTRIBUTI STATISTICI',3,'TABATT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENZ','01',77,'CODICE ATTRIBUTO',4,'CODATT',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',10,'',0,0,'' )
,('LPVENZ','01',78,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,44,44,0,0,'X(44)','',0,'',0,0,'' )
,('LPVENZ','01',79,'ID PRODOTTO REGISTRO VITIVINICOLO',3,'IDPROD',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,0,'9(13)','',0,'',0,0,'' )
,('LPVENZ','01',80,'CAMPO AGGIUNTO PER ERRORE E NON USATO',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,13,13,0,0,'X(13)','',0,'',0,0,'' )
,('LPVENZ','01',81,'DESCRIZIONE ARTICOLO',2,'DESART',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LPVENZ','01',82,'DESCRIZIONE CONFEZIONE',2,'DESCFZ',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVENZ','01',83,'DESCRIZIONE IVA',2,'DESIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LPVENZ','01',84,'LOTTI MAGAZZINO SPEDITI',2,'LOTTIS',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LPVENZ','01',85,'LOTTO MAGAZZINO SPEDITO',3,'LOTTOS',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LPVENZ','01',86,'QUANTITA'' LOTTO MAGAZZINO SPEDITO',3,'QTALOT',0,0,0,0,0,0,0,0,0,0,'',1,0,6,12,2,0,'9(9)V99 COMP-3','',0,'',0,0,'' )
,('LPVENZ','01',87,'LOTTO TRACCIABILITA''',2,'LOTTOT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LQ0101','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LQ0101','01',2,'CHIAVE PRINCIPALE',2,'KEY001',1,3,4,2,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LQ0101','01',3,'NUMERO PROGRESSIVO',3,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LQ0101','01',4,'TIPO CONTO',2,'TIPCON',0,1,1,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LQ0101','01',7,'CODICE CONTO',2,'GCSCON',0,2,3,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LQ0101','01',8,'GRUPPO',3,'GRUCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LQ0101','01',9,'CONTO',3,'CONCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LQ0101','01',10,'SOTTOCONTO',3,'SOTCON',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LQ0101','01',11,'NUMERO REGISTRAZIONE CONTABILE',2,'NUMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LQ0101','01',12,'DATA REGISTRAZIONE',2,'DATREG',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LQ0101','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,'' )
,('LQ0101','01',14,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LQ0101','01',15,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LQ0101','01',16,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LQ0101','01',17,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LQ0101','01',18,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LQ0101','01',19,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LQ0101','01',20,'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,'' )
,('LQ0101','01',21,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LQ0101','01',22,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LQ0101','01',23,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LQ0101','01',24,'NUMERO PROTOCOLLO',2,'NRPROT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LQ0101','01',25,'IMPORTO MOVIMENTO DARE',2,'IMPDAR',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LQ0101','01',26,'IMPORTO MOVIMENTO AVERE',2,'IMPAVE',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LQ0101','01',27,'SALDO DARE',2,'SALDAR',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LQ0101','01',28,'SALDO AVERE',2,'SALAVE',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LQ0101','01',29,'CODICE VOCE BILANCIO RICLASSIFICATO',2,'CODVOC',0,0,2,1,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LQ0101','01',30,'TIPO VOCE',2,'TIPVOC',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LQ0101','01',31,'QUI SEMPRE 1',2,'VOCDIV',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LQ0101','01',32,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LQESIT','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LQESIT','01',2,'FLAG ESITO',2,'FESITO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LQESIT','01',9,'DESCRIZIONE ESTESA ESITO',2,'DESITO',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LQORDC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LQORDC','01',2,'NUMERO ORDINE',2,'NUMORD',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LQORDC','01',3,'RAGIONE SOCIALE',2,'RAGSOC',0,0,0,0,0,0,0,0,0,0,'',4,0,50,50,0,0,'X(50)','',0,'',0,0,'' )
,('LQORDC','01',4,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LQORDC','01',5,'NUMERO PALETTE',2,'PALLET',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LQORDC','01',6,'NUMERO BAIA',2,'NRBAIA',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LQORDC','01',7,'DATA PRODUZIONE',2,'DTAPRO',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LQORDC','01',8,'FORZA BAIA ANCHE SE OCCUPATA (S/ )',2,'FORZAB',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LQORDC','01',9,'TABELLA UTILIZZO TRASLI',2,'TRASLI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LQORDC','01',10,'UTILIZZARE TRASLO S/N',3,'TRASLO',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',10,'',0,0,'' )
,('LR0010','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR0010','01',2,'CODICE FORNITORE',2,'CODFOR',1,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR0010','01',3,'DATA DOCUMENTO',2,'DATDOC',2,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LR0010','01',4,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR0010','01',5,'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,'' )
,('LR0010','01',6,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR0010','01',7,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR0010','01',8,'NUMERO REGISTRAZIONE CONTABILE',2,'NUMREG',3,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LR0010','01',9,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LR0010','01',10,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LR0010','01',11,'IMPORTO RITENUTA',2,'IMPRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LR0010','01',12,'DA VERSARE S/N',2,'FLGVER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LR0010','01',13,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LR0020','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR0020','01',2,'CODICE FORNITORE',2,'CODFOR',1,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR0020','01',3,'DATA DOCUMENTO',2,'DATDOC',2,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LR0020','01',4,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR0020','01',5,'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,'' )
,('LR0020','01',6,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR0020','01',7,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR0020','01',8,'NUMERO DOCUMENTO',2,'NUMDOC',3,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LR0020','01',9,'NUMERO REGISTRAZIONE CONTABILE',2,'NUMREG',4,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LR0020','01',10,'IMPORTO DOCUMENTO',2,'IMPDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('LR0020','01',11,'IMPORTO RITENUTA',2,'IMPRIT',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('LR0020','01',12,'DA VERSARE S/N',2,'FLGVER',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LR1201','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR1201','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,'' )
,('LR1201','01',3,'DATA CONFERIMENTO',3,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LR1201','01',4,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR1201','01',5,'ANNO CONFERIMENTO',4,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LR1201','01',6,'MESE CONFERIMENTO',4,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR1201','01',7,'GIORNO CONFERIMENTO',4,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR1201','01',8,'QUANTITA'' CONFERITA',2,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',0,'',0,0,'' )
,('LR1201','01',9,'QUANTITA'' ECCEDENTE',2,'QTAECC',0,0,0,0,0,0,0,0,0,0,'',1,0,8,9,2,0,'9(6)V99','',0,'',0,0,'' )
,('LR1201','01',10,'IMPORTO PENALE',2,'IMPPEN',0,0,0,0,0,0,0,0,0,0,'',1,0,9,9,0,2,'9(9)','9(7)V99',0,'',0,0,'' )
,('LR1201','01',11,'QUANTITA'' MINIMA',2,'QTAMIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LR1201','01',12,'QUANTITA'' MASSIMA',2,'QTAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LR120X','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR120X','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR120X','01',3,'DATA INIZIO VALIDITA''',3,'DATLIM',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LR120X','01',4,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR120X','01',5,'ANNO LIMITE',4,'AAALIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LR120X','01',6,'MESE LIMITE',4,'MMMLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR120X','01',7,'GIORNO LIMITE',4,'GGGLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR120X','01',8,'PERC. MIN',2,'PERINI',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('LR120X','01',9,'PERC. FIN',2,'PERFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,4,1,0,'99V9','',0,'',0,0,'' )
,('LR120X','01',10,'CONFERIMENTO LIBERO FINO A QUOTE',2,'QUOLIB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LR3815','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR3815','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR3815','01',3,'ANNO FATTURA',3,'ANNFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LR3815','01',4,'TIPO DOCUMENTO',3,'TIPDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LR3815','01',5,'NUMERO REGISTRO',3,'NUMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR3815','01',6,'NUMERO IVA',3,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR3815','01',7,'NUMERO RIGA',3,'NUMRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LR3815','01',8,'CODICE ARTICOLO',2,'CODART',0,0,0,0,0,0,0,0,0,0,'',4,0,18,18,0,0,'X(18)','',0,'',0,0,'' )
,('LR3815','01',9,'QUANTITA''',2,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR3815','01',10,'PREZZO',2,'PREZZO',0,0,0,0,0,0,0,0,0,0,'',1,1,10,12,5,0,'S9(5)V9(5)','',0,'',0,0,'' )
,('LR3815','01',11,'IMPORTO RIGA',2,'IMPORT',0,0,0,0,0,0,0,0,0,0,'',1,1,13,15,2,0,'S9(11)V99','',0,'',0,0,'' )
,('LR3815','01',12,'SCONTO 1',2,'SCONT1',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LR3815','01',13,'SCONTO 2',2,'SCONT2',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LR3815','01',14,'SCONTO 3',2,'SCONT3',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LR3815','01',15,'SCONTO 4',2,'SCONT4',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LR5803','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR5803','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR5803','01',3,'CODICE CONFERENTE',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR5803','01',4,'DATA CONFERIMENTO',3,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LR5803','01',5,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR5803','01',6,'ANNO',4,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LR5803','01',7,'MESE',4,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR5803','01',8,'GIORNO',4,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR5803','01',9,'NUMERO PRENOTAZIONE',2,'NUMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR5803','01',10,'QTA PRENOTATA BIANCA MANUALE',2,'PREBMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',11,'QTA PRENOTATA BIANCA MECCANICA',2,'PREBME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',12,'QTA PRENOTATA ROSSA MANUALE',2,'PRERMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',13,'QTA PRENOTATA ROSSA MACCANICA',2,'PRERME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',14,'QTA CONFERITA BIANCA MANUALE',2,'CONBMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',15,'QTA CONFERITA BIANCA MECCANICA',2,'CONBME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',16,'QTA CONFERITA ROSSA MANUALE',2,'CONRMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',17,'QTA CONFERITA ROSSA MACCANICA',2,'CONRME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',18,'QTA DIFFERENZA BIANCA MANUALE',2,'DIFBMA',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LR5803','01',19,'QTA DIFFERENZA BIANCA MECCANICA',2,'DIFBME',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR5803','01',20,'QTA DIFFERENZA ROSSA MANUALE',2,'DIFRMA',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR5803','01',21,'QTA DIFFERENZA ROSSA MECCANICA',2,'DIFRME',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR5803','01',22,'QTA LIBERA BIANCA MANUALE',2,'PREBLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',23,'QTA LIBERA ROSSA MANUALE',2,'PRERLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',24,'QTA CONFERITA BIANCA MANUALE LIBERA',2,'CONBLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',25,'QTA CONFERITA ROSSA MANUALE LIBERA',2,'CONRLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR5803','01',26,'QTA DIFFERENZA LIBERA BIANCA MANUALE',2,'DIFBLI',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR5803','01',27,'QTA DIFFERENZA LIBERA ROSSA MANUALE',2,'DIFRLI',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR7611','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR7611','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR7611','01',3,'CODICE CONFERENTE',3,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR7611','01',4,'DATA CONFERIMENTO',3,'DATCON',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LR7611','01',5,'NUMERO PRENOTAZIONE',2,'NUMPRE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR7611','01',6,'QTA PRENOTATA BIANCA MANUALE',2,'PREBMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',7,'QTA PRENOTATA BIANCA MECCANICA',2,'PREBME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',8,'QTA PRENOTATA ROSSA MANUALE',2,'PRERMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',9,'QTA PRENOTATA ROSSA MACCANICA',2,'PRERME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',10,'QTA CONFERITA BIANCA MANUALE',2,'CONBMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',11,'QTA CONFERITA BIANCA MECCANICA',2,'CONBME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',12,'QTA CONFERITA ROSSA MANUALE',2,'CONRMA',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',13,'QTA CONFERITA ROSSA MACCANICA',2,'CONRME',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',14,'QTA DIFFERENZA BIANCA MANUALE',2,'DIFBMA',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR7611','01',15,'QTA DIFFERENZA BIANCA MECCANICA',2,'DIFBME',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR7611','01',16,'QTA DIFFERENZA ROSSA MANUALE',2,'DIFRMA',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR7611','01',17,'QTA DIFFERENZA ROSSA MECCANICA',2,'DIFRME',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR7611','01',18,'QTA LIBERA BIANCA MANUALE',2,'PREBLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',19,'QTA LIBERA ROSSA MANUALE',2,'PRERLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',20,'QTA CONFERITA BIANCA MANUALE LIBERA',2,'CONBLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',21,'QTA CONFERITA ROSSA MANUALE LIBERA',2,'CONRLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR7611','01',22,'QTA DIFFERENZA LIBERA BIANCA MANUALE',2,'DIFBLI',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR7611','01',23,'QTA DIFFERENZA LIBERA ROSSA MANUALE',2,'DIFRLI',0,0,0,0,0,0,0,0,0,0,'',1,1,11,13,2,0,'S9(9)V99','',0,'',0,0,'' )
,('LR7803','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR7803','01',2,'CODICE COMUNE',2,'CODCOM',1,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR7803','01',3,'SEZIONE',2,'SEZION',2,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LR7803','01',4,'FOGLIO',2,'FOGLIO',3,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LR7803','01',5,'PERCENTUALE RIDUZIONE RISPETTO ALLA RESA',2,'PERRID',0,0,0,0,0,0,0,0,0,0,'',1,0,5,6,2,0,'999V99','',0,'',0,0,'' )
,('LR7803','01',6,'NUMERO PROGRESSIVO PER PAGINAZIONE',2,'NUMPRO',0,1,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LR7803','01',7,'DESCRIZIONE COMUNE',2,'DESCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LR78C1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR78C1','01',2,'CODICE SOCIO',2,'CODSOC',1,4,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR78C1','01',3,'CODICE VITIGNO',2,'CODVIT',2,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LR78C1','01',4,'COMPLEMENTO GG TOTALI CONFERIMENTO',2,'COMGGC',0,2,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LR78C1','01',5,'PROPRITA'' IN BASE ALLA PRECOCITA''',2,'PRIORI',0,3,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LR78C1','01',6,'ASSEGNA DA INIZIO/FINE VENDEMMIA (I/F)',2,'TIPASS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LR78C1','01',7,'RESIDUO QUINTALI PRODUZIONE STIMATI',2,'RESQLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR78C2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR78C2','01',2,'DATA CONFERIMENTO',2,'DTACON',1,2,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LR78C2','01',3,'CODICE VITIGNO',2,'CODVIT',2,1,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LR78C2','01',4,'RESIDUO QUINTALI RICEVIBILI',2,'RESQLI',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR78VS','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LR78VS','01',2,'CODICE SOCIO',2,'CODSOC',1,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LR78VS','01',3,'CODICE VITIGNO',2,'CODVIT',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LR78VS','01',4,'QUINTALI PRODUZIONE STIMATI TELO',2,'CATTEL',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR78VS','01',5,'QUINTALI ASSEGNATI TELO',2,'ASSTEL',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR78VS','01',6,'QUINTALI PRODUZIONE STIMATI MECCANICA',2,'CATMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LR78VS','01',7,'QUINTALI ASSEGNATI MECCANICA',2,'ASSMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LREDD1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREDD1','01',2,'NUMERO VOCE SOLO PER ORDINARLE NELL''HELP',2,'NUMERO',1,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9999','',0,'',0,0,'' )
,('LREDD1','01',3,'CODICE OPZIONE RAGGRUPPAMENTO',2,'CODRAG',0,1,0,0,0,0,0,0,0,0,'',4,0,16,16,0,0,'X(16)','',0,'',0,0,'' )
,('LREDD1','01',4,'DESCRIZIONE OPZIONE RAGGRUPPAMENTO',2,'DESRAG',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LREGC1','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGC1','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC1','01',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',5,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',6,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',7,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC1','01',8,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC1','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',10,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',11,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',12,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',13,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC1','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',15,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',16,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',17,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',18,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',19,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC1','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',21,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',22,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',23,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',24,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LREGC1','01',25,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGC1','01',26,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGC1','01',27,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',28,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',32,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC1','01',33,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC1','01',34,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',35,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',36,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',40,'NUMERO INTERNO SCADENZE',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGC1','01',41,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LREGC1','01',42,'AREA GENERALE',2,'RIGNOI',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',43,'CODICE PAGAMENTO',3,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LREGC1','01',44,'DATA INIZIO CALCOLO SCADENZA',3,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC1','01',45,'REDEFINES',3,'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
('LREGC1','01',46,'ANNO INIZIO CALCOLO SCADENZA',4,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',47,'MESE INIZIO CALCOLO SCADENZA',4,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',48,'GIORNO INIZIO CALCOLO SCADENZA',4,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',49,'CODICE BANCA (ABI)',3,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LREGC1','01',50,'CODICE BANCA (CAB)',3,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LREGC1','01',51,'DATA SCADENZA MASSIMA',3,'DATMAX',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC1','01',52,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',53,'ANNO SCADENZA MASSIMA',4,'AAAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',54,'MESE SCADENZA MASSIMA',4,'MMMMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',55,'GIORNO SCADENZA MASSIMA',4,'GGGMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',56,'DATA RIFERIMENTO (VALUTA LIBRETTI ECC)',3,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC1','01',57,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',58,'ANNO RIFERIMENTO',4,'AAARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',59,'MESE RIFERIMENTO',4,'MMMRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',60,'GIORNO RIFERIMENTO',4,'GGGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',61,'CODICE PARTITA',3,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',62,'ANNO PARTITA',4,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC1','01',63,'NUMERO PARTITA',4,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LREGC1','01',64,'REDEFINES',4,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',65,'NUMERO PARTITA PER CODICE SOCIO',5,'PARZZZ',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'Z(10)','',0,'',0,0,'' )
,('LREGC1','01',66,'CODICE AGENTE',3,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LREGC1','01',67,'CENTRO DI COSTO',3,'CENCOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC1','01',69,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LREGC1','01',70,'AREA IVA REDEFINES AREA GENERALE',2,'RIGIVA',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC1','01',71,'TIPO CODICE C/F/S/P',3,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',72,'CODICE CLIENTE/FORNITORE/SOCIO/PROD',3,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC1','01',73,'CODICE IVA',3,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LREGC1','01',74,'IMPONIBILE',3,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGC1','01',75,'TIPO REGISTRO',3,'TIPREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',76,'NUMERO REGISTRO',3,'NNRIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',77,'TIPO REGISTRO INTRA',3,'TIPINT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',78,'NUMERO REGISTRO INTRA',3,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',79,'NUMERO DOCUMENTO INTRA',3,'DOCINT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LREGC1','01',80,'NUMERO PROTOCOLLO INTRA',3,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGC1','01',81,'STAMPA REGISTRO IVA S/N',3,'STAREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',82,'PROGRESSIVO STAMPA REGISTRO IVA',3,'PROREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',83,'CHIUSURA IVA S/N',3,'CHIIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC1','01',84,'PROGRESSIVO CHIUSURA IVA',3,'PROIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC1','01',85,'FILLER',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,21,21,0,0,'X(21)','',0,'',0,0,'' )
,('LREGC2','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC2','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGC2','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC2','01',4,'PRIMS DESCRIZIONE',2,'DES001',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LREGC2','01',5,'SECONDA DESCRIZIONE',2,'DES002',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LREGC2','01',6,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LREGC3','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC3','01',2,'ANNO PARTITA',2,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC3','01',3,'NUMERO PARTITA',2,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LREGC3','01',4,'DARE PARTITA',2,'DARPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGC3','01',5,'AVERE PARTITA',2,'AVEPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGC3','01',6,'SALDO PARTITA',2,'SALPAR',0,0,0,0,0,0,0,0,0,0,'',1,1,13,14,0,2,'S9(13)','S9(11)V99',0,'',0,0,'' )
,('LREGC3','01',7,'TIPO SALDO D=DARE A=AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC3','01',8,'DATA SCADENZA',2,'DATSCA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC3','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC3','01',10,'ANNO SCADENZA',3,'AAASCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC3','01',11,'MESE SCADENZA',3,'MMMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC3','01',12,'GIORNO SCADENZA',3,'GGGSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC3','01',13,'IMPORTO SCADENZA DA PAGARE',2,'IMPRES',0,0,0,0,0,0,0,0,0,0,'',1,1,13,14,0,2,'S9(13)','S9(11)V99',0,'',0,0,'' )
,('LREGC3','01',14,'IMPORTO SCADENZA',2,'IMPSCA',0,0,0,0,0,0,0,0,0,0,'',1,1,13,14,0,2,'S9(13)','S9(11)V99',0,'',0,0,'' )
,('LREGC3','01',15,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC3','01',16,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGC4','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC4','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGC4','01',3,'DATA SCADENZA',2,'DATSCA',2,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC4','01',4,'PROGRESSIVO',2,'PROGRE',3,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC4','01',5,'IMPORTO SCADENZA',2,'IMPSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGC5','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGC5','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC5','01',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',5,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',6,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',7,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC5','01',8,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC5','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',10,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',11,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',12,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',13,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC5','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',15,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',16,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',17,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',18,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',19,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC5','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',21,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',22,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',23,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',24,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LREGC5','01',25,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGC5','01',26,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGC5','01',27,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',28,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',32,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC5','01',33,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC5','01',34,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',35,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',36,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',40,'NUMERO INTERNO SCADENZE',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LREGC5','01',42,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LREGC5','01',43,'DATA INIZIO CALCOLO SCADENZA',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC5','01',44,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',45,'ANNO INIZIO CALCOLO SCADENZA',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',46,'MESE INIZIO CALCOLO SCADENZA',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',47,'GIORNO INIZIO CALCOLO SCADENZA',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',48,'CODICE BANCA (ABI)',2,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LREGC5','01',49,'CODICE BANCA (CAB)',2,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LREGC5','01',50,'DATA SCADENZA MASSIMA',2,'DATMAX',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC5','01',51,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',52,'ANNO SCADENZA MASSIMA',3,'AAAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',53,'MESE SCADENZA MASSIMA',3,'MMMMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',54,'GIORNO SCADENZA MASSIMA',3,'GGGMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',55,'DATA RIFERIMENTO (VALUTA LIBRETTI ECC)',2,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGC5','01',56,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',57,'ANNO RIFERIMENTO',3,'AAARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',58,'MESE RIFERIMENTO',3,'MMMRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',59,'GIORNO RIFERIMENTO',3,'GGGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',60,'CODICE PARTITA',2,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',61,'ANNO PARTITA',3,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGC5','01',62,'NUMERO PARTITA',3,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LREGC5','01',63,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC5','01',64,'NUMERO PARTITA PER CODICE SOCIO',4,'PARZZZ',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'Z(10)','',0,'',0,0,'' )
,('LREGC5','01',65,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LREGC5','01',66,'CENTRO DI COSTO',2,'CENCOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC5','01',69,'TIPO CODICE C/F/S/P',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',70,'CODICE CLIENTE/FORNITORE/SOCIO/PROD',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGC5','01',71,'CODICE IVA',2,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LREGC5','01',72,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGC5','01',73,'TIPO REGISTRO',2,'TIPREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',74,'NUMERO REGISTRO',2,'NNRIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',75,'TIPO REGISTRO INTRA',2,'TIPINT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',76,'NUMERO REGISTRO INTRA',2,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',77,'NUMERO DOCUMENTO INTRA',2,'DOCINT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LREGC5','01',78,'NUMERO PROTOCOLLO INTRA',2,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGC5','01',79,'STAMPA REGISTRO IVA S/N',2,'STAREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',80,'PROGRESSIVO STAMPA REGISTRO IVA',2,'PROREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',81,'CHIUSURA IVA S/N',2,'CHIIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGC5','01',82,'PROGRESSIVO CHIUSURA IVA',2,'PROIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGC5','01',83,'FLAG RIGA OK',2,'FLGRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,1,1,0,0,'9','',0,'',0,0,'' )
,('LREGC5','01',86,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,76,76,0,0,'X(76)','',0,'',0,0,'' )
,('LREGC6','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGC6','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGC6','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC6','01',4,'PROGRESSIVO DESCRIZIONE',2,'PROGRE',3,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGC6','01',5,'PRIMS DESCRIZIONE',2,'DES001',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LREGC6','01',6,'SECONDA DESCRIZIONE',2,'DES002',0,0,0,0,0,0,0,0,0,0,'',4,0,30,30,0,0,'X(30)','',0,'',0,0,'' )
,('LREGC6','01',7,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,100,100,0,0,'X(100)','',0,'',0,0,'' )
,('LREGCC','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCC','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGCC','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGCC','01',4,'CODICE CENTRO DI COSTO',2,'CENCOS',3,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LREGCC','01',5,'PERCENTUALE SUDDIVISIONE (OBSOLETO)',2,'PEROLD',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCC','01',6,'NUMERO MESI',2,'NRMESI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCC','01',7,'MESE INIZIO',2,'MESINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCC','01',8,'DATA INIZIALE',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCC','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCC','01',10,'ANNO INIZIALE',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCC','01',11,'MESE INIZIALE',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCC','01',12,'GIORNO INIZIALE',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCC','01',13,'DATA FINALE',2,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCC','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCC','01',15,'ANNO FINALE',3,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCC','01',16,'MESE FINALE',3,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCC','01',17,'GIORNO FINALE',3,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCC','01',18,'PERCENTUALE SUDDIVISIONE',2,'PERDIV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LREGCC','01',19,'IMPORTO SUDDIVISO',2,'IMPDIV',0,0,0,0,0,0,0,0,0,0,'',1,0,13,14,2,0,'9(11)V99','',0,'',0,0,'' )
,('LREGCF','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCF','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,2,3,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGCF','01',3,'DATA REGISTRAZIONE',2,'DATREG',0,3,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCF','01',4,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCF','01',5,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCF','01',6,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCF','01',7,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCF','01',8,'CODICE SOCIO',2,'CODSOC',0,1,1,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGCF','01',9,'CODICE PRATICA',2,'CODPRA',0,0,2,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCF','01',10,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCF','01',11,'IMPORTO REGISTRAZIONE',2,'IMPREG',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LREGCF','01',12,'ELEMENTO FATTURA',2,'ELEFAT',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',10,'',0,0,'' )
,('LREGCF','01',13,'DATA FATTURA',3,'DATFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGCF','01',14,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCF','01',15,'ANNO FATTURA',4,'AAAFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCF','01',16,'MESE FATTURA',4,'MMMFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCF','01',17,'GIORNO FATTURA',4,'GGGFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCF','01',18,'IMPORTO FATTURA',3,'IMPFAT',0,0,0,0,0,0,0,0,0,0,'',1,0,11,12,2,0,'9(9)V99','',0,'',0,0,'' )
,('LREGCF','01',19,'FATTURA CONTABILIZZATA /S',3,'CONFAT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCF','01',20,'DATA CONTABILIZZAZIONE',3,'DATCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGCF','01',21,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCF','01',22,'ANNO CONTABILIZZAZIONE',4,'AAACON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCF','01',23,'MESE CONTABILIZZAZIONE',4,'MMMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCF','01',24,'GIORNO CONTABILIZZAZIONE',4,'GGGCON',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCF','01',25,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,120,120,0,0,'X(120)','',0,'',0,0,'' )
,('LREGCO','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',2,'NUMERO REGISTRAZIONE',2,'NUMREG',1,3,2,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGCO','01',3,'NUMERO RIGA REGISTRAZIONE',2,'NUMRIG',2,4,3,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGCO','01',4,'CODICE GRUPPO/CONTO/SOTTOCONTO',2,'CODPCO',0,1,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',5,'GRUPPO RIGA',3,'GRURIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',6,'CONTO RIGA',3,'CONRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',7,'SOTTOCONTO RIGA',3,'SOTRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGCO','01',8,'DATA REGISTRAZIONE',2,'DATREG',0,0,1,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LREGCO','01',9,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',10,'ANNO REGISTRAZIONE',3,'AAAREG',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',11,'MESE REGISTRAZIONE',3,'MMMREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',12,'GIORNO REGISTRAZIONE',3,'GGGREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',13,'DATA COMPETENZA',2,'DATCOM',0,2,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCO','01',14,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',15,'ANNO COMPETENZA',3,'AAACOM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',16,'MESE COMPETENZA',3,'MMMCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',17,'GIORNO COMPETENZA',3,'GGGCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',18,'CODICE CAUSALE',2,'CODCAU',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',19,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCO','01',20,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',21,'ANNO DOCUMENTO',3,'AAADOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',22,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',23,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',24,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LREGCO','01',25,'NUMERO PROTOCOLLO',2,'NUMPRO',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGCO','01',26,'IMPORTO RIGA',2,'IMPRIG',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGCO','01',27,'DARE/AVERE',2,'DARAVE',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',28,'PROVENIENZA',2,'PROVEN',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',32,'NUMERO RIGA GIORNALE',2,'NUMGIO',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGCO','01',33,'NUMERO RIGA REGISTRO IVA',2,'NUMIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGCO','01',34,'CHIUSURA CONTABILE S/N',2,'CHICON',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',35,'PROGRESSIVO CHIUSURA',2,'PROCHI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',36,'TIPO RIGA',2,'TIPRIG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',40,'NUMERO INTERNO SCADENZE',2,'NUMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGCO','01',42,'CODICE PAGAMENTO',2,'CODPAG',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LREGCO','01',43,'DATA INIZIO CALCOLO SCADENZA',2,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCO','01',44,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',45,'ANNO INIZIO CALCOLO SCADENZA',3,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',46,'MESE INIZIO CALCOLO SCADENZA',3,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',47,'GIORNO INIZIO CALCOLO SCADENZA',3,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',48,'CODICE BANCA (ABI)',2,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LREGCO','01',49,'CODICE BANCA (CAB)',2,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LREGCO','01',50,'DATA SCADENZA MASSIMA',2,'DATMAX',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCO','01',51,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',52,'ANNO SCADENZA MASSIMA',3,'AAAMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',53,'MESE SCADENZA MASSIMA',3,'MMMMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',54,'GIORNO SCADENZA MASSIMA',3,'GGGMAX',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',55,'DATA RIFERIMENTO (VALUTA LIBRETTI ECC)',2,'DATRIF',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LREGCO','01',56,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',57,'ANNO RIFERIMENTO',3,'AAARIF',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',58,'MESE RIFERIMENTO',3,'MMMRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',59,'GIORNO RIFERIMENTO',3,'GGGRIF',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',60,'CODICE PARTITA',2,'CODPAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',61,'ANNO PARTITA',3,'ANNPAR',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',62,'NUMERO PARTITA',3,'NUMPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'X(10)','',0,'',0,0,'' )
,('LREGCO','01',63,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',64,'NUMERO PARTITA PER CODICE SOCIO',4,'PARZZZ',0,0,0,0,0,0,0,0,0,0,'',4,0,10,10,0,0,'Z(10)','',0,'',0,0,'' )
,('LREGCO','01',65,'CODICE AGENTE',2,'CODAGE',0,0,0,0,0,0,0,0,0,0,'',1,0,3,5,0,0,'9(5) COMP-3','',0,'',0,0,'' )
,('LREGCO','01',66,'CENTRO DI COSTO',2,'CENCOS',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LREGCO','01',69,'TIPO CODICE C/F/S/P',2,'TIPCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',70,'CODICE CLIENTE/FORNITORE/SOCIO/PROD',2,'CODICE',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGCO','01',71,'CODICE IVA',2,'CODIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,3,3,0,0,'XXX','',0,'',0,0,'' )
,('LREGCO','01',72,'IMPONIBILE',2,'IMPONI',0,0,0,0,0,0,0,0,0,0,'',1,0,13,13,0,2,'9(13)','9(11)V99',0,'',0,0,'' )
,('LREGCO','01',73,'TIPO REGISTRO',2,'TIPREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',74,'NUMERO REGISTRO',2,'NNRIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',75,'TIPO REGISTRO INTRA',2,'TIPINT',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',76,'NUMERO REGISTRO INTRA',2,'NUMINT',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',77,'NUMERO DOCUMENTO INTRA',2,'DOCINT',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LREGCO','01',78,'NUMERO PROTOCOLLO INTRA',2,'PROINT',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LREGCO','01',79,'STAMPA REGISTRO IVA S/N',2,'STAREG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',80,'PROGRESSIVO STAMPA REGISTRO IVA',2,'PROREG',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',81,'CHIUSURA IVA S/N',2,'CHIIVA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',82,'PROGRESSIVO CHIUSURA IVA',2,'PROIVA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',83,'CODICE A BARRE DOCUMENTALE',2,'BARCOD',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LREGCO','01',84,'TIPO DOCUMENTO DOCUMENTALE',2,'DOCDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',86,'FATTURA ACQUISTO IN SOSPESO S/N',2,'FATSOS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',87,'DATI CODICE IBAN',2,'CODIBA',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',88,'CODICE ISO (SEMPRE IT)',3,'CODISO',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LREGCO','01',89,'CODICE CIN EURO',3,'CINEUR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',90,'CODICE CIN ITALIA',3,'CINITA',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LREGCO','01',91,'NUMERO DI CONTO CORRENTE',3,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',4,0,12,12,0,0,'X(12)','',0,'',0,0,'' )
,('LREGCO','01',92,'NUMERO DICHIARAZIONE INTENTO',2,'NUMDII',0,0,0,0,0,0,0,0,0,0,'',1,0,12,12,0,0,'9(12)','',0,'',0,0,'' )
,('LREGCO','01',93,'PERIODO LIQUIDAZIONE IVA',2,'PERLIV',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LREGCO','01',94,'REDEFINES',2,'ANMLIV',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LREGCO','01',95,'ANNO',3,'AAALIV',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LREGCO','01',96,'MESE',3,'MMMLIV',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LREGCO','01',97,'PROGRESSIVO ARCHIVIO AFATF1 (FATT.ACQ)',2,'NUMSDI',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LREGCO','01',98,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,15,15,0,0,'X(15)','',0,'',0,0,'' )
,('LRGG02','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG02','01',2,'PROGRESSIVO',2,'NUMERO',1,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LRGG02','01',3,'DATA SCADENZA',2,'DATSCA',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRGG02','01',4,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG02','01',5,'ANNO SCADENZA',3,'AAASCA',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LRGG02','01',6,'MESE SCADENZA',3,'MMMSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRGG02','01',7,'GIORNO SCADENZA',3,'GGGSCA',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRGG02','01',8,'NUMERO DOCUMENTO',2,'NUMDOC',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',0,'',0,0,'' )
,('LRGG02','01',9,'DATA DOCUMENTO',2,'DATDOC',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRGG02','01',10,'REDEFINES',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG02','01',11,'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,'' )
,('LRGG02','01',12,'MESE DOCUMENTO',3,'MMMDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRGG02','01',13,'GIORNO DOCUMENTO',3,'GGGDOC',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRGG02','01',14,'NUMERO EFFETTO IN PRIMANOTA',2,'NUMPRN',0,0,0,0,0,0,0,0,0,0,'',1,0,10,10,0,0,'9(10)','',0,'',0,0,'' )
,('LRGG02','01',15,'PROGRESSIVO EFFETTO IN PRIMANOTA',2,'PROPRN',0,0,0,0,0,0,0,0,0,0,'',1,0,3,3,0,0,'999','',0,'',0,0,'' )
,('LRGG02','01',16,'CODICE CLIENTE',2,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LRGG02','01',17,'RAGIONE SOCIALE CLIENTE',2,'DESCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LRGG02','01',18,'CODICE ABI BANCA DI APPOGGIO',2,'CODABI',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LRGG02','01',19,'CODICE CAB BANCA DI APPOGGIO',2,'CODCAB',0,0,0,0,0,0,0,0,0,0,'',1,0,5,5,0,0,'9(5)','',0,'',0,0,'' )
,('LRGG02','01',20,'DESCRIZIONE BANCA DI APPOGGIO',2,'DESBAN',0,0,0,0,0,0,0,0,0,0,'',4,0,20,20,0,0,'X(20)','',0,'',0,0,'' )
go
INSERT INTO dbo.ZFILE3_01 VALUES
('LRGG02','01',21,'IMPORTO EFFETTO',2,'IMPEFF',0,0,0,0,0,0,0,0,0,0,'',1,0,11,11,0,2,'9(11)','9(9)V99',0,'',0,0,'' )
,('LRGG02','01',22,'EFFETTO DA METTERE IN DISTINTA S/N',2,'FLGDIS',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LRGG02','01',23,'RS = EFFETTO DA RIPRESA DI SALDO',2,'RIPSAL',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LRGG02','01',24,'FILLER',2,'FILLER',0,0,0,0,0,0,0,0,0,0,'',4,0,2,2,0,0,'XX','',0,'',0,0,'' )
,('LRGG05','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG05','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG05','01',3,'CODICE CLIENTE',3,'CODCLI',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LRGG05','01',4,'DESCRIZIONE CLIENTE',2,'DESCLI',0,0,0,0,0,0,0,0,0,0,'',4,0,40,40,0,0,'X(40)','',0,'',0,0,'' )
,('LRGG05','01',5,'DATA SOTTOSCRIZIONE',2,'DATSOT',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRGG05','01',6,'CODICE SEQUENZA',2,'TIPSEQ',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LRGG05','01',7,'CARATTERE AGGIUNTO',2,'CARAGG',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LRGG08','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG08','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,'' )
,('LRGG08','01',3,'CODICE UVA DA SCARTARE',3,'CODUVA',0,0,0,0,0,0,0,0,0,0,'',4,0,4,4,0,0,'X(4)','',0,'',0,0,'' )
,('LRGG08','01',4,'DATA INIZIALE',3,'DATINI',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRGG08','01',5,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG08','01',6,'ANNO INIZIALE',4,'AAAINI',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LRGG08','01',7,'MESE INIZIALE',4,'MMMINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRGG08','01',8,'GIORNO INIZIALE',4,'GGGINI',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRGG08','01',9,'DATA FINALE',3,'DATFIN',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRGG08','01',10,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRGG08','01',11,'ANNO FINALE',4,'AAAFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LRGG08','01',12,'MESE FINALE',4,'MMMFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRGG08','01',13,'GIORNO FINALE',4,'GGGFIN',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU007','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU007','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU007','01',3,'DATA LIMITE',3,'DATLIM',0,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRU007','01',4,'REDEFINES',3,'FILLER',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU007','01',5,'ANNO LIMITE',4,'AAALIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LRU007','01',6,'MESE LIMITE',4,'MMMLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU007','01',7,'GIORNO LIMITE',4,'GGGLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU007','01',8,'GRADO',3,'GRAMAS',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU007','01',9,'MASSA VOLUMICA',2,'MASVOL',0,0,0,0,0,0,0,0,0,0,'',1,0,6,7,4,0,'99V9(4)','',0,'',0,0,'' )
,('LRU008','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU008','01',2,'DATA LIMITE VALIDITA''',2,'DATLIM',1,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRU008','01',3,'REDEFINES',2,'AAMMGG',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU008','01',4,'ANNO LIMITE',3,'AAALIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LRU008','01',5,'MESE LIMITE',3,'MMMLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU008','01',6,'GIORNO LIMITE',3,'GGGLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU008','01',7,'PERCENTUALE ROD',2,'PERROD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU008','01',8,'PERCENTUALE VINACCE',2,'PERVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU008','01',9,'PERCENTUALE ROD MECCANICA',2,'PERROM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU008','01',10,'PERCENTUALE VINACCE MECCANICA',2,'PERVIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU009','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU009','01',2,'DATA LIMITE VALIDITA''',2,'DATLIM',1,0,0,0,0,0,0,0,0,0,'',5,0,8,8,0,0,'D8','',0,'',0,0,'' )
,('LRU009','01',3,'REDEFINES',2,'AAMMGG',0,0,0,0,0,0,0,0,0,0,'S',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU009','01',4,'ANNO LIMITE',3,'AAALIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,4,0,0,'9(4)','',0,'',0,0,'' )
,('LRU009','01',5,'MESE LIMITE',3,'MMMLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU009','01',6,'GIORNO LIMITE',3,'GGGLIM',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU009','01',7,'PERCENTUALE ROD',2,'PERROD',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU009','01',8,'PERCENTUALE VINACCE',2,'PERVIN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU009','01',9,'PERCENTUALE ROD MECCANICA',2,'PERROM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU009','01',10,'PERCENTUALE VINACCE MECCANICA',2,'PERVIM',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU010','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU010','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU010','01',3,'CODICE RAGRUPPAMENTO',3,'CODRAG',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LRU010','01',4,'% MECCANICA (0=VENDEMMIATA A MANO)',3,'PERMEC',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU010','01',5,'TIPO COMMITTENTE',3,'TIPCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LRU010','01',6,'CODICE COMMITTENTE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LRU010','01',7,'DATI UVE VENDUTE',2,'DTAVEN',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU010','01',8,'KG VENDUTI',3,'QTAVEN',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',9,'MONTEGRADI VENDUTO',3,'MONVEN',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,4,0,'S9(9)V9(4) COMP-3','',0,'',0,0,'' )
,('LRU010','01',10,'GRADO VENDUTO',3,'GRDVEN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU010','01',11,'DATI UVE CONFERITE',2,'DTACON',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU010','01',12,'KG CONFERITI',3,'QTACON',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',13,'MONTEGRADI CONFERITO',3,'MONCON',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,4,0,'S9(9)V9(4) COMP-3','',0,'',0,0,'' )
,('LRU010','01',14,'GRADO CONFERITO',3,'GRDCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU010','01',15,'DATI UVE ACQUISTATE',2,'DTAACQ',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU010','01',16,'KG ACQUISTATI',3,'QTAACQ',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',17,'MONTEGRADI ACQUISTATI',3,'MONACQ',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,4,0,'S9(9)V9(4) COMP-3','',0,'',0,0,'' )
,('LRU010','01',18,'GRADO ACQUISTATO',3,'GRDACQ',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU010','01',19,'TABELLA CARICHI',2,'ELECAR',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',4,'',0,0,'' )
,('LRU010','01',20,'CODICE RAGGRUPPAMENTO CARICO',3,'RAGCAR',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LRU010','01',21,'QUANTITA CARICO',3,'QTACAR',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',22,'QUANTITA UVA ESCLUSA',3,'UVAESC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',23,'QUANTITA MOSTO ESCLUSO',3,'MOSESC',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',24,'QUANTITA VINACCE EXTRA',3,'VEXTRA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',25,'QUANTITA RASPI EXTRA',3,'REXTRA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',26,'GRADO FORZATO',3,'GRAMAN',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU010','01',27,'QUANTITA'' MOSTO DA LAVORARE',3,'QTAMAA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',28,'METODO PRATICHE ENOLOGICHE ACIDIFICAZ.',3,'METODO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LRU010','01',29,'PRODOTTO AGGIUNTO ACID/ARMC',3,'IDPMAA',0,0,0,0,0,0,0,0,0,0,'',1,0,7,13,0,0,'9(13) COMP-3','',0,'',0,0,'' )
,('LRU010','01',30,'QUANTITA AGGIUNTA ACID/ARMC',3,'QTAPAA',0,0,0,0,0,0,0,0,0,0,'',1,1,6,13,3,0,'S9(8)V999 COMP-3','',0,'',0,0,'' )
,('LRU010','01',31,'GIORNI AGGIUNTIVI ACID/ARMC/AARD',3,'GGACAR',0,0,0,0,0,0,0,0,0,0,'',1,0,2,2,0,0,'99','',0,'',0,0,'' )
,('LRU010','01',32,'VASCHE ACIDIFICAZIONE',3,'VASCHE',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU010','01',33,'VASCA PARTENZA',4,'VASPAR',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',6,'',0,0,'' )
,('LRU010','01',34,'VASCA ARRIVO',4,'VASARR',0,0,0,0,0,0,0,0,0,0,'',4,0,8,8,0,0,'X(8)','',6,'',0,0,'' )
,('LRU010','01',35,'FLAG MANTENERE MOSTO ACIDIFICATO (X)',3,'FLGMAM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LRU011','01',1,'RECORD',1,'',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU011','01',2,'CHIAVE',2,'KEY001',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',0,'',0,0,'' )
,('LRU011','01',3,'NUMERO CONFERIMENTO (ZERO=UVE PROPRIE)',3,'NUMCON',0,0,0,0,0,0,0,0,0,0,'',1,0,8,8,0,0,'9(8)','',0,'',0,0,'' )
,('LRU011','01',4,'CODICE RAGGRUPPAMENTO CONFERITO',3,'CODRAG',0,0,0,0,0,0,0,0,0,0,'',4,0,5,5,0,0,'X(5)','',0,'',0,0,'' )
,('LRU011','01',5,'TIPO COMMITTENTE',3,'TIPCOM',0,0,0,0,0,0,0,0,0,0,'',4,0,1,1,0,0,'X','',0,'',0,0,'' )
,('LRU011','01',6,'CODICE COMMITTENTE',3,'CODCOM',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LRU011','01',7,'PERCENTUALE VENDEMMIA MECCANICA',3,'PERCME',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
,('LRU011','01',8,'ESONERO DEROGA PER UVE PROPRIE',2,'CODESO',0,0,0,0,0,0,0,0,0,0,'',4,0,6,6,0,0,'X(6)','',0,'',0,0,'' )
,('LRU011','01',9,'CODICE SOCIO (ZERO=UVE PROPRIE)',2,'CODSOC',0,0,0,0,0,0,0,0,0,0,'',1,0,6,6,0,0,'9(6)','',0,'',0,0,'' )
,('LRU011','01',10,'KG CONFERITI',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,'' )
,('LRU011','01',11,'MONTEGRADI CONFERITO',2,'MONCON',0,0,0,0,0,0,0,0,0,0,'',1,1,7,15,4,0,'S9(9)V9(4) COMP-3','',0,'',0,0,'' )
,('LRU011','01',12,'GRADO CONFERITO',2,'GRDCON',0,0,0,0,0,0,0,0,0,0,'',1,0,4,5,2,0,'99V99','',0,'',0,0,'' )
go
