concepts:scan-file
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
concepts:scan-file [2018/03/19 02:52] – created Scott Cunliffe | concepts:scan-file [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Scan File ====== | + | ====== Scan-File ====== |
- | A scan file is a listing of volume ID's that, through TapeTrack parsing, is converted in to a Scan-map of fully qualified barcodes | + | A Scan-File |
+ | |||
+ | |||
+ | The TapeTrack Scan-File Format allows you to specify lists of TapeTrack compatible Barcodes, along with comments and Barcode defaults. | ||
+ | |||
+ | [[variable: | ||
+ | The syntax supports: | ||
+ | * [[concepts: | ||
+ | * [[object: | ||
+ | * Comments: that are to be ignored by any processing logic (any line starting with a #). | ||
+ | |||
+ | ===== Scan-File ===== | ||
+ | |||
+ | Scan files can either be [[: | ||
+ | |||
+ | ==== Direct Input ==== | ||
- | ==== Scan File ==== | ||
{{reports: | {{reports: | ||
+ | ==== Translated Input File ==== | ||
+ | |||
+ | Instead of passing a data file directly to the TapeTrack process as a scan file, a definition file is specified as the Scan file to interpret the input file for processing. | ||
+ | |||
+ | === Input File - input.csv === | ||
+ | |||
+ | < | ||
+ | |||
+ | TSMLIB_1, | ||
+ | TSMLIB_1, | ||
+ | TSMLIB_1, | ||
+ | TSMLIB_1, | ||
+ | TSMLIB_1, | ||
+ | TSMLIB_1, | ||
+ | TSMLIB_1, | ||
+ | TSMLIB_1, | ||
+ | </ | ||
+ | === Definition File === | ||
+ | < | ||
+ | # Set the input file | ||
+ | # | ||
+ | SetFile(" | ||
+ | # | ||
+ | # Set the Customer-ID and Media-ID | ||
+ | # | ||
+ | SetLiteral(CUSTOMER, | ||
+ | SetLiteral(MEDIA, | ||
+ | # | ||
+ | # Set the delimiter to a CSV | ||
+ | # | ||
+ | SetCSVDelimiter("," | ||
+ | # | ||
+ | # Extract the Volume-ID from the 2nd column | ||
+ | # | ||
+ | Extract(VOLUME, | ||
+ | # | ||
+ | # Add the suffix to the Volume-ID | ||
+ | # | ||
+ | AddTranslation(VOLUME, | ||
+ | </ |
concepts/scan-file.1521427939.txt.gz · Last modified: 2025/01/21 22:07 (external edit)