Where to find info on READ_ENV? (AREV Specific)
At 28 JUN 2005 02:39:04PM Michael Slack wrote:
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
At 29 JUN 2005 01:44AM Barry Stevens wrote:
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/
At 29 JUN 2005 10:21AM Michael Slack wrote:
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
At 29 JUN 2005 01:04PM support@sprezzatura.com wrote:
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?
support@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 29 JUN 2005 03:25PM R Johler wrote:
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?
At 29 JUN 2005 08:12PM Warren Auyong wrote:
Somebody must know something about it…
At 29 JUN 2005 08:19PM dsig _at_ sigafoos.org wrote:
nope .. read_env is a RTI routine ..
At 30 JUN 2005 10:19AM Michael Slack wrote:
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
At 30 JUN 2005 10:20AM Michael Slack wrote:
Hello:
In that case, can you tell me where I might find a little more information on that function?Thanks,
Michael Slack
At 30 JUN 2005 11:21AM Dave Harmacek wrote:
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
At 30 JUN 2005 11:12PM dsig _at_ sigafoos.org wrote:
I don't believe there ever has been any doc on it .. it was a 'rti' only type routine.
At 07 JUL 2005 01:25AM Warren Auyong wrote:
getenv is a freebie