Highlighted
Absent Member.
Absent Member.
968 views

can't open message file '/opt/ microfocus/cobol/rts.msg'

I was trying to run a batch script and got the below error.

 

Can't open message file '/opt/microfocus/cobol/rts.msg'

Defaulting  to English Messages

Execution error: file ''

error code: 187, pc=0, call=1, seg=0

187   error message text not found

 

Can someone please help in understanding the above error.

 

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: can't open message file '/opt/ microfocus/cobol/rts.msg'

Does /opt/microfocus/cobol/rts.msg exist?

If so, it's probably a file-permissions issue. If you have sufficient access to change the file's permissions, make it readable by everyone (chmod a+r /opt/microfocus/cobol/rts.msg).

If it doesn't exist, then probably the environment value COBDIR is not set, or is set to the wrong value, or is not exported. It should be set to your COBOL installation directory, and exported to the environment of your script. You can set and export it in the script itself, or make sure it's in the environment of the shell when you execute the script.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.