You can also use the EXPORT and IMPORT commands. If you use IXF data format and use the REPLACE_CREATE option with the IMPORT, the table will be created if it does not already exist and the primary keys and indexes will be recreated the same as the source table (unlike CREATE TABLE LIKE ...). The only thing not created are the foreign keys (which is obvious since the other tables may not exist).
If you are IMPORTing a file with a lot of rows, be sure to use the COMMITCOUNT option (1000 is fine) to do intermediate commits to avoid filling up the log.