Operating System - OpenVMS
1748216 Members
3178 Online
108759 Solutions
New Discussion юеВ

Re: Environment variable.

 
Mutturaj
Occasional Contributor

Environment variable.

Hello to forum,

We are running out executable on BASH cell.
Now I need to debug my program using the OPEN VMS debugger! For that I need to pass the certain environment variable like SHM, SCEDIR, LOGDIR. Since I cant start the debugger from the BASH cell! How do I make available of these variables to my program thru the debugger?

Thanking in advance.

Mutturaj
2 REPLIES 2
Hein van den Heuvel
Honored Contributor

Re: Environment variable.


Just DCL during debugging and then back to bah when ready for that?
I was tempted to ask 'What's the point in using a fancy shell if you do not know how to set environment variables', but I will not.

Hein.
Bojan Nemec
Honored Contributor

Re: Environment variable.

Mutturaj,

If you read environment variables with getenv(), I will try with DCL commands to define symbols:

$ SHM=""
$ SCEDIR=""
$ LOGDIR=""

or with logical names :

$ DEFINE SHM
$ DEFINE SCEDIR
$ DEFINE LOGDIR

This because the native VMS getenv() try to mimic the UNIX getenv () so that it first try to retrive the symbol and then the logical name.

Bojan