INSERT INTO SUPERMAG.SADOCDEFAULTS ( DOCTYPE, LOCATION, NUMBERSIZE, NAMEPREFIX )
SELECT SUPERMAG.SSDOCTYPES.DOCTYPE, SUPERMAG.SMSTORELOCATIONS.ID,10, TO_CHAR(SUPERMAG.SMSTORELOCATIONS.id || to_char('01'))
FROM SUPERMAG.SMSTORELOCATIONS, SUPERMAG.SSDOCTYPES;