@TableName return the source and target table names for relational source and target instances as string values. Use these variables with any function that accepts string datatypes.
The variable name depends on the source or target instance name. For example, for a source instance named “Customers,” the built-in variable name is $PMCustomers@TableName. If the relational source or target is part of a mapplet within a mapping, the built-in variable name includes the mapplet name:
$PM
<MappletName>
.
<SourceName>
@TableName
$PM
<MappletName>
.
<TargetName>
@TableName
Use $PM
<SourceName>
@TableName and $PM
<TargetName>
@TableName in a mapping or a mapplet. For example, in a mapping that contains multiple relational sources, you can use $PM
<SourceName>
@TableName in the output port of an Expression transformation to write the source table name for each row to the target. You can also use these variables in input fields that accept mapping variables.