DUPLICATES
Detects, reports and optionally removes duplicate transactions from interchange files.
Syntax
$ cardak help duplicates
usage: cardak duplicates [<flags>] <files>...
Find identical records inside the same file
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-v, --verbose Add more information displayed on some commands.
--mono Supress color on output.
--ignore Try to ignore some errors and continue processing the file
-W, --width Ignore small terminal width check and force execution
-z, --silent Suppress all output (banner, headers, summary) except the results. Specially useful for DESCRIBE command piped to a search
utility like fzf
-T, --file-type=FILE-TYPE Filter by file type when supplying several files. File types are represented by a single letter as: I-IPM files, M-MPE files
Args:
<files> File names to analyze
Description
This command searches for duplicate records inside IPM files.
Two records are considered as duplicates when they contain the same information in their fields except for DE71 (the record number), as the same record can be present in different parts of the file with different record numbers while having the same content.
It is possible that when modifying data from a file (for example importing records) or because of errors when generating the files, some records are included more than once in the same file. This command allows to detect those cases so it can be convenient to include it before sending it to their destinations to avoid rejections.
Example
