OpenVMS has a consistant calling standard enabling any language that conforms to that standard to call other modules written in any other language that also conforms.
One major piece of glue, and one of the nicest things about programming on OpenVMS is that the condition values returned from a conforming module must use a standard to indicate success or failure.
Learn this standard, and it can be applied to every API that the operating system supplies.
To summarise, each conforming module returns a 32 bit unsigned integer as an indication of its overall status. The low three bits of this integer indicate the severity of the status:
To determine the success of failure of a call, the calling program mearly performs a low bit test on the returned condition code. Success and informational are treated as success, and warning, error, and fatal are treated as failure.
Further information on the calling standard and condition values may be obtained from "The OpenVMS Calling Standard", an HTML version of the document.
Programmers can define their own condition codes. A compilable language is available to perform this task. Further information on this can be found in this manual.
Posted at November 21, 2002 9:48 AMComments are closed