We are running with AREV 3.12 applications. Where can I find information on the READ_ENV function/subroutine?
I've found the object code in SYSOBJ and it's not listed in the VOC so I assume it's an AREV system program. We've found where it's called from within our application login process. It gets the contents of a DOS enviroment variable, in our case the user's network user name.
I'd like to know more about this function because we may need to modify our program that calls this function. Because our network login scripts have recently changed and a couple of our users are have some minor problems in loging into one of our AREV applications. We may not be able to have the network script changed back.
Thanks,
Michael Slack
It is not in my Arev3.12. Sounds like it could be one of steve smith's utilities…but his web site is not comming up http://www.state-of-the-art.com.au/
Hello Berry:
Ya, it's a real possibility that this function is not an AREV built function. Since it's from before my time at this job, I wasn't sure where it came from. I'll have to keep looking in some of the recesses of our applications on the off chance of finding the source code. Or I might get lucky and someone out there may know something about it and can point me in the right direction.Thanks,
Michael Slack
Check the first byte of the object - it is likely assembler and it is probably either a function that is passed the name of the environment variable to return or a subroutine that takes the name in parameter one and returns the result in parameter two - but surely you can see this in your own code?
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
Check sysobj for $GETENV.
This is the of Steve Smith's function, at least the version of it that we have.
Maybe someone in the past put a wrapper around Steve's function and name it 'READ_ENV' on your system?
Somebody must know something about it…
nope .. read_env is a RTI routine ..
Yes, I've seen the code that calls READ_ENV and it's does pass in to arugments. One of the arguments is a DOS variable name. The other argument sends back the value in that DOS variable name (as far as I can tell so far).
I was hoping to learn more about the function before playing with it. At this point, I would assume that I should be able to pass any DOS variable and get the value back. My problem is I don't like assuming. My other problem is that if my assumptions are right, it seems straight forward but I've never needed to play with DOS enviroment variables before so I a bit hessitant. Maybe I just need to jump in with both feet and see what hapens.
Thanks,
Michael Slack
Hello:
In that case, can you tell me where I might find a little more information on that function?Thanks,
Michael Slack
I found an assembler routine named DOSENV in my ARev 3.12.
You have to initialize the variable for assembler routines. Returns CHAR(0) delimited.
Usage: ENVSTR="; CALL DOSENV( ENVSTR); CONVERT CHAR(0) TP @FM IN ENVSTR
There was no READ_ENV.
It is possible that your READ_ENV operates in the same manner as this.
Dave
I don't believe there ever has been any doc on it .. it was a 'rti' only type routine.
getenv is a freebie