technote:rename_volumes
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| technote:rename_volumes [2021/08/05 01:14] – created Scott Cunliffe | technote:rename_volumes [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Renaming | + | ====== Renaming Volume-ID' |
| Renaming a batch of Volumes can be completed in one process using a configuration file, definition file, Volume List and [[cli: | Renaming a batch of Volumes can be completed in one process using a configuration file, definition file, Volume List and [[cli: | ||
| Line 13: | Line 13: | ||
| Adding L5 suffix to all Volumes in the input file volumes.txt for Customer US04, Media LTO. | Adding L5 suffix to all Volumes in the input file volumes.txt for Customer US04, Media LTO. | ||
| - | ==== Volume File ==== | + | ==== Volume |
| volumes.txt | volumes.txt | ||
| < | < | ||
| - | 100001L5 | + | 100001 |
| - | 100002L5 | + | 100002 |
| - | 100003L5 | + | 100003 |
| - | 100004L5 | + | 100004 |
| - | 100005L5 | + | 100005 |
| - | 100006L5 | + | 100006 |
| - | 100007L5 | + | 100007 |
| - | 100008L5 | + | 100008 |
| - | 100009L5 | + | 100009 |
| - | 100010L5 | + | 100010 |
| </ | </ | ||
| + | ==== Definition File ==== | ||
| + | rename.ttidef | ||
| + | |||
| + | < | ||
| + | # Set volume input file | ||
| + | SetFile(" | ||
| + | |||
| + | # Set Customer and Media values | ||
| + | SetLiteral(CUSTOMER, | ||
| + | SetLiteral(MEDIA, | ||
| + | |||
| + | # Extract barcode | ||
| + | Extract(BARCODE, | ||
| + | </ | ||
| + | |||
| + | ==== Configuration File ==== | ||
| + | |||
| + | rename.cfg | ||
| + | |||
| + | Compare all Volumes to Scan file. | ||
| + | |||
| + | If present in the Scan file (scanfile=true) then process that Volume (skip=false) | ||
| + | |||
| + | If not present in the Scan file discard Volume (skip=true) | ||
| + | |||
| + | < | ||
| + | traversal = | ||
| + | { | ||
| + | | ||
| + | | ||
| + | ( | ||
| + | { | ||
| + | | ||
| + | media = | ||
| + | ( | ||
| + | { | ||
| + | | ||
| + | | ||
| + | ( | ||
| + | { | ||
| + | id=" | ||
| + | scanfile=true; | ||
| + | skip=false; | ||
| + | }, | ||
| + | { | ||
| + | id=" | ||
| + | skip=true; | ||
| + | } | ||
| + | ); | ||
| + | } | ||
| + | ); | ||
| + | } | ||
| + | ); | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | ==== Batch File ==== | ||
| + | |||
| + | Run TMSS10VolumeRename in test mode. Test mode allows you to execute TMSS10VolumeRename without making any alterations to the database to check the output is as expected. | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | |||
| + | < | ||
| + | TMSS10VolumeRename -S user: | ||
| + | </ | ||
| + | |||
| + | Adding the '' | ||
| + | |||
| + | < | ||
| + | TMSS10VolumeRename -S user: | ||
| + | </ | ||
| + | |||
| + | === Standard Output === | ||
| + | |||
| + | Test Mode - rename_out.txt | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | | ||
| + | | ||
| + | Production Time: Thursday, August 05, 2021 - 10:48:36 (AUS Eastern Standard Time) | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | 1 1 100001 | ||
| + | 2 2 100002 | ||
| + | 3 3 100003 | ||
| + | 4 4 100004 | ||
| + | 5 5 100005 | ||
| + | 6 6 100006 | ||
| + | 7 7 100007 | ||
| + | 8 8 100008 | ||
| + | 9 9 100009 | ||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | Production Time: Thursday, August 05, 2021 - 10:48:36 (AUS Eastern Standard Time) | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | 1 US04.LTO.100001 | ||
| + | 2 US04.LTO.100002 | ||
| + | 3 US04.LTO.100003 | ||
| + | 4 US04.LTO.100004 | ||
| + | 5 US04.LTO.100005 | ||
| + | 6 US04.LTO.100006 | ||
| + | 7 US04.LTO.100007 | ||
| + | 8 US04.LTO.100008 | ||
| + | 9 US04.LTO.100007 | ||
| + | 10 US04.LTO.100008 | ||
| + | | ||
| + | |||
| + | </ | ||
| + | |||
| + | Live Mode - rename_out.txt | ||
| + | |||
| + | < | ||
| + | |||
| + | | ||
| + | | ||
| + | Production Time: Thursday, August 05, 2021 - 10:48:36 (AUS Eastern Standard Time) | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | 1 1 100001 | ||
| + | 2 2 100002 | ||
| + | 3 3 100003 | ||
| + | 4 4 100004 | ||
| + | 5 5 100005 | ||
| + | 6 6 100006 | ||
| + | 7 7 100007 | ||
| + | 8 8 100008 | ||
| + | 9 9 100009 | ||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | Production Time: Thursday, August 05, 2021 - 10:48:36 (AUS Eastern Standard Time) | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | 1 US04.LTO.100001 | ||
| + | 2 US04.LTO.100002 | ||
| + | 3 US04.LTO.100003 | ||
| + | 4 US04.LTO.100004 | ||
| + | 5 US04.LTO.100005 | ||
| + | 6 US04.LTO.100006 | ||
| + | 7 US04.LTO.100007 | ||
| + | 8 US04.LTO.100008 | ||
| + | 9 US04.LTO.100007 | ||
| + | 10 US04.LTO.100008 | ||
| + | | ||
| + | |||
| + | </ | ||
| + | |||
| + | {{tag> technote cli rename config}} | ||
technote/rename_volumes.1628126052.txt.gz · Last modified: 2025/01/21 22:07 (external edit)
