public int get_BY(int INDEX, String code)
    {
        log.log(4, log_key, "call   get_BY, INDEX = ", new Integer(INDEX).toString(), "\n");
        for(;;INDEX++)
        {
            if ( (code.charAt(INDEX)     == 'D') &&
                 (code.charAt(INDEX + 1) == 'O') )
            {
                log.log(4, log_key, "return get_BY (DO found): -1\n");
                return -1;
            }
            else if ( (code.charAt(INDEX)     == 'B') &&
                      (code.charAt(INDEX + 1) == 'Y') )
            {
                log.log(4, log_key, "return get_BY , (BY found) INDEX = ", new Integer(INDEX).toString(), "\n");
                return INDEX;
            }
        }
    }