Copies an SPD Server table.
Valid in: | SPD Server |
Explicit SQL pass-through facility | |
Requirements: | When tables are copied between domains, the source and destination domains must have the same backup setting. That is, both domains must have either BACKUP=YES or BACKUP=NO in their definition. When domains have different backup settings, you must use PROC COPY to copy a table between the domains. |
The COPY TABLE statement requires local direct access to the source and destination tables from the machine that the server is running on. SPD Server does not support the COPY TABLE statement for use with tables in a Hadoop domain. |
specifies the name of the new server table.
specifies the name of the source server table.
optional: sorts the data in the new table by one or more columns, setting the data in the columns in ascending or descending order.
optional: suppresses creation of indexes.
execute(copy table t_new from t_old) by sasspds; execute(copy table t2_new from t2_old without indexes) by sasspds;
execute(copy table t_new from t_old order by x, y desc, z asc) by sasspds;