This is an old revision of the document!
AddTranslation
Translate the value of a field based upon the current value of the field.
Phase
This instruction is used by the TapeTrack Import Engine.
Syntax
AddTranslation(field, filter, translation);
string field; string filter; string translation;
| field | The field to be translated. |
| filter | A filter to compare against the current field value. |
| translation | The new value of the field. This can either be a new literal value, or the original value with a prefix or suffix. |
Example
AddTranslation: Append L3 to each VOLUME field if the value starts with a zero. <sxh>AddTranslation(VOLUME, “0*”, “*L3”);</sxh>
Example
AddTranslation: Truncate a VOLUME field to 6 characters when the Volume-ID starts with an A. <sxh>AddTranslation(VOLUME, “A*”, “~~~~~~”);</sxh>
Example
**AddTranslation: Remove the first 3 characters from a Volume-ID A12345678 and add suffix L4 <sxh>AddTranslation(VOLUME, “A*”, “^^^~~~~~~L4”);</sxh>
