
Chapter 10. Moving data to DB2 for z/OS 265
In this example, we nicknamed the source PAOLOR7.DEPT table in the z/OS database as
DBADMIN.DEPT390S. The target table PAOLOR2.DEPT was nicknamed as
DB2ADMIN.DEPT390T.
In the DB2 CLP in the client machine, issue these commands:
First, connect to the database in the client machine where the Federated Database is defined:
CONNECT TO SAMPAIX8
Then, issue the Insert with subselect command to transfer the data to the target:
INSERT INTO DB2ADMIN.DEPT390T
SELECT * FROM DB2ADMIN.DEPT390S
You can also specify the columns that you want to retrieve in your Select statement. The
subselect is like a regular SQL Select ...