concepts:scan-file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
concepts:scan-file [2019/10/14 22:43] – Add Hyphen dcumming | 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 [[: | + | A Scan-File is a listing of [[: |
The TapeTrack Scan-File Format allows you to specify lists of TapeTrack compatible Barcodes, along with comments and Barcode defaults. | The TapeTrack Scan-File Format allows you to specify lists of TapeTrack compatible Barcodes, along with comments and Barcode defaults. | ||
- | Environmental Variables will also be resolved before processing any Barcode | + | [[variable: |
The syntax supports: | The syntax supports: | ||
- | * Barcodes: that are to be parsed according to TapeTrack Barcode | + | * [[concepts: |
- | * Customer-ID/ | + | * [[object: |
* Comments: that are to be ignored by any processing logic (any line starting with a #). | * Comments: that are to be ignored by any processing logic (any line starting with a #). | ||
- | ==== Scan-File ==== | + | ===== Scan-File ===== |
+ | |||
+ | Scan files can either be [[: | ||
+ | |||
+ | ==== Direct Input ==== | ||
{{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.1571093012.txt.gz · Last modified: 2025/01/21 22:07 (external edit)