Fwd: environment variable handling under UNIX
EDISR@dteenergy.com
EDISR@dteenergy.com
07 Aug 98 14:31:18 -0400
Date: 06 Aug 98 13:47:04
From:"Robert Edis" <EDISR.DECO.COM>
To:ph_list
Subject:environment variable handling under UNIX
X-Orcl-Application:Location:110 NOC
X-Orcl-Application:Extension:6-1150
X-Orcl-Application:FAX:6-1155
MIME-Version: 1.0
Content-Transfer-Encoding:quoted-printable
Content-Type:text/plain; charset="iso-8859-1"
G'day all
We are converting are PowerHouse 6.10e1/VMS/Rdb system to PowerHouse
7.33/UNIX/Oracle 7.3.4. We currently use the GETSYSTEMVAL and SETSYSTEMVAL
in
many areas of our code and worked out long ago that to be reliable the value=
had to be a VMS Logical in at least the LNM$JOB table. Now we are moving to=
UNIX we have found that using an environment variable does not always work.
A
child process can 'see' a variable created by its parent but not the other
way
around.
Here are some examples of how we use logicals in VMS:
1.
QUICK screen calls a DCL script
DCL script runs a 3GL program that returns a result (exit(n))
DCL script creates a JOB logical based on result and exits back to the QUICK=
screen
QUICK screen then does a GETSYSTEMVAL to read the logical value.
2.
QTP request reads an input parameter and assigns value to a logical using
SETSYSTEMVAL
Subsequent requests (and maybe QUIZ reports too) use CHOOSE SYSTEMVAL ....
to
read the logical.
Now the question: does anybody out there know how we can successfully
reproduce this in a HP/UX environment where LOGICALs don't exist?
We have already thought of using temporary files to store the values but
this
will require a lot of rewriting and testing of code.
Your input will be much appreciated thanks
Robert Edis (Blue)
Technical Consultant
Michigan, USA
(VAX/VMS, ORACLE Rdb, PowerHouse 4GL)
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.