<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks a bunch David, this is very suitable.<BR> <BR>
<HR id=stopSpelling>
Subject: RE: Environment variables<BR>Date: Wed, 1 Jul 2009 15:41:28 +0100<BR>From: David.Jackson@obs-logistics.com<BR>To: kbarrett00@hotmail.com; powerh-l@lists.sowder.com<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;}
.ExternalClass BODY.EC_hmmessage
{font-family:Verdana;font-size:10pt;}
</STYLE>
<DIV dir=ltr align=left><SPAN class=EC_372263214-01072009><FONT color=#0000ff face=Arial>Karen,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_372263214-01072009><FONT color=#0000ff face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_372263214-01072009><FONT color=#0000ff face=Arial>The QTP command you want is setsystemval("VARIABLENAME","VALUE")</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_372263214-01072009><FONT color=#0000ff face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_372263214-01072009><FONT color=#0000ff face=Arial>Both the variable name and the value are strings and must be in the quotes, you might need to do some fiddling around because it has to be part of a conditional test and all the examples given in the Powerhouse manuals are in qdesign.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_372263214-01072009><FONT color=#0000ff face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_372263214-01072009><B><FONT size=5 face=BellGothic-Black><FONT size=5 face=BellGothic-Black>
<P align=left>SETSYSTEMVAL (MPE/iX, UNIX, and Windows)</P></B></FONT></FONT><FONT size=2 face=SabonLTStd-Roman><FONT size=2 face=SabonLTStd-Roman>
<P align=left>For SETSYSTEMVAL (</FONT></FONT><B><FONT size=2 face=SabonLTStd-Bold><FONT size=2 face=SabonLTStd-Bold>OpenVMS</B></FONT></FONT><FONT size=2 face=SabonLTStd-Roman><FONT size=2 face=SabonLTStd-Roman>), see </FONT></FONT><FONT size=2 face=SabonLTStd-Roman><FONT size=2 face=SabonLTStd-Roman><FONT size=2 face=SabonLTStd-Roman>(p. 449)</FONT></FONT></FONT><FONT size=2 face=SabonLTStd-Roman><FONT size=2 face=SabonLTStd-Roman>.</P>
<P align=left>Assigns operating system values.</P></FONT></FONT><FONT size=4 face=BellGothic-Black><FONT size=4 face=BellGothic-Black>
<P align=left><FONT color=#0000ff size=2 face=Arial></FONT> </P></FONT></FONT><FONT size=1 face=CourierNew><FONT size=1 face=CourierNew><FONT color=#0000ff size=2 face=Arial><B><FONT size=3 face=BellGothic-Black><FONT size=3 face=BellGothic-Black>
<P align=left><FONT color=#000000>UNIX, Windows</FONT></P></B></FONT></FONT><FONT size=1 face=CourierNew><FONT size=1 face=CourierNew>
<P align=left><FONT color=#000000></FONT> </P>
<P align=left><FONT color=#000000>TEMP RUN_REQ CHAR*1</FONT></P>
<P align=left><FONT color=#000000>...</FONT></P>
<P align=left><FONT color=#000000>> PROCEDURE DESIGNER 1</FONT></P>
<P align=left><FONT color=#000000>> BEGIN</FONT></P>
<P align=left><FONT color=#000000>> ACCEPT RUN_REQ</FONT></P></FONT></FONT><B><FONT size=1 face=CourierNew,Bold><FONT size=1 face=CourierNew,Bold>
<P align=left><FONT color=#000000>> IF NOT SETSYSTEMVAL("QTP_PARMS", ("RUN" + RUN_REQ ))</FONT></P></B></FONT></FONT><FONT size=1 face=CourierNew><FONT size=1 face=CourierNew>
<P align=left><FONT color=#000000>> THEN ERROR "Could not set environment variable"</FONT></P>
<FONT color=#000000>> ELSE RUN COMMAND "qtp auto=$QTP_PARMS</FONT><BR></FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left>
<P align=left><SPAN style="FONT-FAMILY: 'Bookman Old Style'; FONT-SIZE: 10pt">Regards</SPAN> </P>
<P style="MARGIN-LEFT: 36pt"><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">David Jackson</SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt"> </SPAN><BR><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt">Technical Consultant</SPAN> </P>
<P style="MARGIN-LEFT: 72pt"><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt" lang=EN-GB>OBS Logistics Limited, <SPAN class=EC_GramE>The</SPAN> Oracle Building, Oracle Drive, Blythe Valley Park, Shirley, Solihull, B90 8AD</SPAN></P>
<P style="MARGIN-LEFT: 72pt"><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt" lang=EN-GB></SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt" lang=EN-GB>Tel: +44 (0)121 506 9773</SPAN><SPAN lang=EN-GB><BR></SPAN><SPAN class=EC_SpellE><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt" lang=EN-GB>EMail</SPAN></SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt" lang=EN-GB>:<U> <SPAN style="COLOR: blue">David.Jackson@obs-logistics.com</SPAN></U><SPAN class=EC_GramE> </SPAN></SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 7.5pt" lang=EN-GB>Web:</SPAN><U><SPAN lang=EN-GB> </SPAN></U><U><SPAN style="FONT-FAMILY: Arial; COLOR: blue; FONT-SIZE: 7.5pt" lang=EN-GB><A title=http://www.openbusinesssolutions.com/ href="http://www.obs-logistics.com/">http://www.obs-logistics.com</A></SPAN></U><SPAN lang=EN-GB> </SPAN></P></DIV>
<DIV> </DIV><BR>
<DIV dir=ltr lang=en-us class=EC_OutlookMessageHeader align=left>
<HR>
<FONT size=2 face=Tahoma><B>From:</B> powerh-l-bounces+d.jackson=obs-logistics.com@lists.sowder.com [mailto:powerh-l-bounces+d.jackson=obs-logistics.com@lists.sowder.com] <B>On Behalf Of </B>Karen Barrett<BR><B>Sent:</B> 01 July 2009 05:41<BR><B>To:</B> PowerhouseList Post<BR><B>Subject:</B> Environment variables<BR></FONT><BR></DIV>
<DIV></DIV>Hi All,<BR> <BR>Here is what I would like to do -<BR> <BR>Run QTP inside a shell loop, if records updated then set a Unix environment variable to some value. In my shell script, I will check to see if "updated" and quit or loop again.<BR> <BR>Thoughts?<BR> <BR>Karen Barrett<BR><BR>
<HR>
<FONT color=black size=1 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 8pt">OBS Logistics Limited is a limited company. Registered in England No 02439258. Registered Office: 140 Buckingham Palace Road, London SW1W 9SA.<BR><BR></SPAN></FONT><br /><hr />Windows Live™ SkyDrive™: Get 25 GB of free online storage. <a href='http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009' target='_new'>Get it on your BlackBerry or iPhone.</a></body>
</html>