SYSTEMVAL query

Edis, Bob bob.edis@fleetpride.com
Thu, 5 Apr 2001 09:57:41 -0500


Madeleine,

I concur with John P..  Try outputting the t_okay and t_home values to a
temp subfile.  This will cause the define for t_okay to be triggered.

In HP/UX you typically have to EXPORT a variable before it can be seen
globally, similar to a DEFINE/JOB in OpenVMS.  However I believe PowerHouse
handles this for you in the SETSYSTEMVAL() function.

Regards,
Blue

-----Original Message-----
From: Madeleine D. [mailto:mmdrake@bctonline.com]
Sent: Wednesday, April 04, 2001 3:48 PM
To: powerh-l@lists.swau.edu
Subject: SYSTEMVAL query


Has anyone experience with using SETSYSTEMVAL to setup an environment
variable in HP-UX/Oracle/PH8?  We need to read some tables in Quiz, set the
variables and then return to a script to retrieve the settings.

This is what we have tried in various forms:

DEF T_HOME CHAR*20 = BRIDGE_VALUE OF PARAMS
DEF T_OKAY CHAR*1 = "Y" IF SETSYSTEMVAL("SALHOME", T_HOME) ELSE "N"

No matter what, when we come out of Quiz, the var is blank, even though
T_OKAY ends up with a 'Y'.  If we try to read the variable in Quiz with a
GETSYSTEMVAL, we get '50236020', which is definitely not the value
retrieved (CHAR data in table).

We've reviewed the PH manuals in depth, and the OSAccess parameters are not
an issue.  We've also tried reading directly from the field in the table.
Same results.

Any help is much appreciated.

thanks
mmd


= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.