The two indexed file formats are not the same by default. The RM COBOL uses the RM File handler and the Visual COBOL product defaults to Micro Focus file handler.
If you wish to read RM files in a Visual COBOL program you have to specify the file as IDXFORMAT"21".
Please see the section here in the docs that covers RM compatibility issues and in particular RM File Handling.
Thanks.