HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

How to translate SMG error codes

 
SOLVED
Go to solution
Dan Herron
Advisor

How to translate SMG error codes

I have a BASIC program using SMG$ to do screen painting, etc. During execution I am receiving and error code 1212940 from SMG$READ_STRING.
How do I translate the error code into a meaningful error message so that I can understand what the potential problem is?

Thanks for your help,
Dan Herron
3 REPLIES
Volker Halle
Honored Contributor
Solution

Re: How to translate SMG error codes

Dan,

$ set mess SYS$COMMON:[SYSMSG]SHRIMGMSG.EXE
$ exit 1212940
%SMG-F-INVARG, invalid argument

See Ask The Wizard topc 5171

http://h71000.www7.hp.com/wizard/wiz_5171.html

for procedure MSGTXT.COM to search for message codes in all system message files.

Volker.
Dan Herron
Advisor

Re: How to translate SMG error codes

Thanks for your help!
Dan
Joseph Huber_1
Honored Contributor

Re: How to translate SMG error codes

And in addition, since You get the code inside a program:
if the program should not exit to DCL with the error code, there is the RTL routine LIB$SYS_GETMSG (or the underlying
SYS$GETMSG routine): which translates the code to the associated message for logging or display in a message window of the SMG program.
http://www.mpp.mpg.de/~huber