Lets say the file is call yourfile and is in library yourlib The file contails 4 fields, field1 field2 field3 field4 where field 2 is the key field then the SQL would be something like insert into yourlib/yourfile a select b.field1, '1234', b.field2, b.field3, b.field4 from yourlib/yourfile b where.......; then you insert whatever you want in the ......

Reply With Quote