Copy Views, Macros, and Stored Procedures Using DSA | Teradata Data Mover - About Copying Views, Macros, and Stored Procedures Using DSA - Teradata Data Mover

Teradata® Data Mover User Guide

Product
Teradata Data Mover
Release Number
17.12
Published
January 2022
Language
English (United States)
Last Update
2022-01-18
dita:mapPath
ptl1635805434108.ditamap
dita:ditavalPath
mpm1591127278842.ditaval
dita:id
B035-4101
lifecycle
previous
Product Category
Analytical Ecosystem

In Data Mover, you can copy views, macros, and stored procedures definition, and create those objects on the target system using DSA. It does not required the underlying dependent object of the copied objects in the target system. You can also use SQL instead of DSA, but it requires the underlying dependent object of the copied objects in the target system.

To copy these objects using DSA, specify the force_utility element value as dsa in the job. For example:
<dmCreate> 
...
   <force_utility>dsa</force_utility>
...
   <views>
        <view selection="included">
            <name>view1</name>
            <database>database1</database>
        </view>
   </views>
   <macros>
	<macro selection="included"> 
		<name>macro1</name>  
		<database>database1</database> 
	</macro> 
   </macros>
   <stored_procedures>
        <stored_procedure selection="included">
            <name>storedprocedure1</name>
            <database>database1</database>
        </stored_procedure>
   </stored_procedures>
...
</dmCreate>

If you do not specify the force_utility element value, then it uses SQL for copying objects.