Name: kelbell Date: May 11, 2005 at 04:33:18 Pacific Subject: OpenVMS Environment RTL Routine OS: OpenVMS CPU/Ram: Alpha
Comment:
The lexical function f$environment has the ability to return the current command procedure that is executing. I need to do that from a program, but I haven't been able to find the corresponding RTL routine. Any ideas?
There is no standard user available way to do it directly, this info is in DCL-space, and needs CMEXEC privilege to access (and linking with /SYSEXE). An example of such a program from Tom Wade posted on comp.os.vms is on my server: http://wwwvms.mppmu.mpg.de/vmssig/src/mar/GET-COMMAND-PROC.MAR
For normal user access, I suggest to define a global symbol inside the DCL procedure, which then can be translated inside the program (by means of LIB$GET_SYMBOL or getenv()).
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE