Wiki

Clone wiki

OYSTER / SCAN

(Direction, CharType, Length, Casing, Order) - a new hash algorithm that was created for OYSTER and introduced in v3.3 along with the UDI. It examines the value string either from left-to-right or from right-to-left (Direction) searching for the type of characters specified (CharType). As characters are found they are extracted to form the hash value until the requested number of characters (Length) has been found, or until the end of the value string is encountered. If the number of characters found is less than the number requested, the hash value is padded with asterisk (*) to meet the Length request. Note: If the length is given as 0 (zero), all characters of the specified character type will be extracted. The Casing and Order parameters designate operations to be performed on the hash value after the characters have been extracted. The Casing parameter allows the user to specify whether the letters in the hash value are to be converted to uppercase or left as is. The Order parameter allows the user to specify the reordering of the characters in the hash value.

  • Parameters
  • Direction
    • Acceptable Values
      • LR - scan string left-to-right
      • RL - scan string right-to-left
  • CharType

    • Acceptable Values
      • ALL - extract all characters
      • NONBLANK - extract only non-blank characters
      • ALPHA - extract only letter and digit characters
      • LETTER - extract only letters of the English alphabet
      • DIGIT - extract only digits 0-9
  • Length

    • Acceptable Values
      • An integer between 0 and 30
      • If Length=0, all characters of the specified type will be extracted
  • Casing

    • Acceptable Values
      • ToUpper - all letters in the hash should be converted to upper casing.
      • KeepCase - all letters in the hash should keep original casing.
  • Order

    • Acceptable Values
      • SameOrder - keep original order in which the charecters were extracted.
      • L2HKeepDup - reorder the hash characters from lowest to highest values. Keep any dup characters.
      • L2HDropDup - reorder the hash characters from lowest to highest values. Drop any duplicate characters from the hash.

Updated