The snrfck basic command requires only the -i option to read the redirection file, validate each line, and flag the first incorrect line it encounters.
snrfck -ic:\cfg\testfile
Next, assume the redirection file contains duplicate entries.
requested_service |
user_id |
application_ name |
assigned_service |
---|---|---|---|
AS400 |
Bob |
isql |
as1 |
AS400 |
* |
isql |
as2 |
AS400 |
Bob |
isql |
as2 |
AS400 |
* |
Omni |
omniA |
AS400 |
* |
Power Builder |
powerB |
DB2 |
* |
Omni |
db2omni |
DB2 |
* |
* |
db2gen |
<tab> |
* |
* |
as2 |
c:\cfg\testfile: line3: duplicate/ambiguous row
If the file does not contain errors, the rows are sorted in the order used in the redirection operation and printed to the current window. The snrfck utility adds line numbers for clarity.