Translate the value of a field based upon the current value of the field.
This instruction is used by the TapeTrack Import Engine.
AddTranslation(field, filter, translation);
Variable | Type | Description | Min Length | Max Length |
---|---|---|---|---|
field | String | The field to be translated. | 1 | 128 |
filter | String | A filter to compare against the current field value. | 1 | 256 |
translation | String | The new value of the field. This can either be a new literal value, or the original value with a prefix or suffix. | 1 | 256 |
Append L3 to each VOLUME field if the value starts with a zero.
AddTranslation(VOLUME, "0*", "*L3");
Truncate a VOLUME field to 6 characters when the Volume-ID starts with an A.
AddTranslation(VOLUME, "A*", "~~~~~~");
Remove the first 3 characters from a Volume-ID A12345678 and add suffix L4
AddTranslation(VOLUME, "A*", "^^^~~~~~~L4");