<div>Thanks Joe for all your tips.</div>
<div>&nbsp;</div>
<div>The same code was working well before.</div>
<div>Why should it suddenly stop? </div>
<div>I don't have the option to change the code now.</div>
<div>&nbsp;</div>
<div>Is there any PH configuration that might have affected the server?</div>
<div>Could any windows update cause this problem?</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>SYED.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/17/05, <b class="gmail_sendername">Joe Boyle</b> &lt;<a href="mailto:atla38@dsl.pipex.com">atla38@dsl.pipex.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">please ignore the %%1 part, that is true of the 'for' command only;<br>parameters in command files are %1 to %8 and not %%1 to %%8.
<br><br>Regards, Joe.<br><br><br>-----Original Message-----<br>From: powerh-l-bounces+atla38=<a href="mailto:dsl.pipex.com@lists.sowder.com">dsl.pipex.com@lists.sowder.com</a><br>[mailto:<a href="mailto:powerh-l-bounces+atla38=dsl.pipex.com@lists.sowder.com">
powerh-l-bounces+atla38=dsl.pipex.com@lists.sowder.com</a>] On Behalf Of<br>Joe Boyle<br>Sent: 17 December 2005 10:03<br>To: 'Syed Shahul Hameed Mustaffa'<br>Cc: 'PowerHouse List'<br>Subject: RE: Environment Variable question. QTP doesn't recognize
<br>env-variables<br><br>Another alternative approach is to use a command file as follows, this way<br>you can set the value locally before executing the qtp,<br><br>Doqtp.cmd<br>Set PSLOC2=%%1<br>qtp dict=D:\HERDSPRD\Dictionary\hms.pdc
<br>auto=D:\HERDSPRD\RemoteBuild\test.qtc<br>exit<br><br>the powerhouse/axiant syntax would go like that below,<br><br>let t_path = "string"<br>let t_run_command = "cmd /c d:\loc_path\ Doqtp.cmd " + t_path<br>run command t_run_command
<br><br>The value in t_path will be passed to the script as parameter i.e. %1 of<br>possible %1 to %8 parameters. If you run the script locally you have to use<br>%1 only, if in batch use %%1 i.e. two percent signs.<br><br>
<br>Regards, Joe.<br>________________________________________<br>From: powerh-l-bounces+atla38=<a href="mailto:dsl.pipex.com@lists.sowder.com">dsl.pipex.com@lists.sowder.com</a><br>[mailto:<a href="mailto:powerh-l-bounces+atla38=dsl.pipex.com@lists.sowder.com">
powerh-l-bounces+atla38=dsl.pipex.com@lists.sowder.com</a>] On Behalf Of<br>Syed Shahul Hameed Mustaffa<br>Sent: 17 December 2005 05:26<br>To: Joe Boyle; <a href="mailto:Ken@langendock.com">Ken@langendock.com</a><br>Cc: PowerHouse List
<br>Subject: Re: Environment Variable question. QTP doesn't recognize<br>env-variables<br><br>Thanks Joe, Ken.<br><br>Joe! I checked #set.. from QTP. It is picking up the correct value. However<br>when I attempt to run the qtp (cmd /c 
qtp.exe<br>dict=D:\HERDSPRD\Dictionary\hms.pdc auto=D:\HERDSPRD\RemoteBuild\test.qtc)<br>it fails with the following error message. But in development it is working<br>without any problem.<br><br>============ ERROR MESSAGE ======================
<br>Data access error.<br>File: $PSLOC2\alupdd<br>Action Taken: Run terminated.<br>-------------------------------------<br>No such file or directory (ERRNO 2)<br>File: $PSLOC2\alupdd<br>-------------------------------------
<br>Finished.<br>=================================================<br><br>Ken! This system environment variable is a permanant one (Created from<br>Windows MyComputer). The same code was working well before.<br><br><br>Regards,
<br>SYED.<br><br>On 12/16/05, Joe Boyle &lt;<a href="mailto:atla38@dsl.pipex.com">atla38@dsl.pipex.com</a>&gt; wrote:<br>Do you have embedded spaces in the path specified in your variable settings<br>?<br><br>If you go into qtp, and type '$set spsloc2' do you see the correct path
<br>displayed ?<br><br>do<br><br>Regards, Joe.<br>________________________________________<br>From: Syed Shahul Hameed Mustaffa [mailto: <a href="mailto:sshahulgm@gmail.com">sshahulgm@gmail.com</a>]<br>Sent: 16 December 2005 18:06
<br>To: PowerHouse List<br>Cc: Joe Boyle<br>Subject: Environment Variable question. QTP doesn't recongize env-variables<br><br>Dear Gurus,<br><br>Quick Intro: I've migrated a PH/MPEIX application to AXIANT4GL/PH4GL/WINDOWS
<br>(Thin Client).<br><br>I have qtps to load the MPEIX/PH data into the WINDOWS/PH.<br>I used environment variable to identify the location of the data files.<br><br>eg<br>set process<br>nolimit<br>request ONE<br>acc *$PSLOC2\alupdd alias PS_ALPRO_UPDATE_D
<br><br>BUILD SMALL_TABLES_1<br>;-------------------------------------<br>It was working well before. Last time I used these qtps to load my data.<br>Suddenly these qtps arenot working. Because PH doesn't recognize the<br>
environment variable.<br>I checked the environment variable. It is there and ok.<br>I recreated it and restarted the server too.<br>Still PH doesn't recognize the environment variable.<br>I tried changing the environment variable to another env-variable I'm using
<br>in other qtps. PH not recognizing this variable too.<br>I had to hardcode a path in all my data load qtps to make it work. (That<br>proves, there is nothing wrong with the data files).<br><br>What could have gone wrong?
<br>I'm using environment variables widely in my application.<br>If PH stops recognizing variables like this, it will be disaster.<br><br>Can anyone please help me in this? I'll appreciate.<br><br>Regards,<br>SYED<br><br>
<br><br><br><br>--<br>= = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>Mailing list: <a href="mailto:powerh-l@lists.sowder.com">powerh-l@lists.sowder.com</a><br>Subscribe: &quot;subscribe&quot; in message body to 
<a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br>Unsubscribe: &quot;unsubscribe &amp;lt;password&amp;gt;&quot; in message body to<br><a href="mailto:powerh-l-request@lists.sowder.com">
powerh-l-request@lists.sowder.com</a><br><a href="http://lists.sowder.com/mailman/listinfo/powerh-l">http://lists.sowder.com/mailman/listinfo/powerh-l</a><br>This list is closed, thus to post to the list you must be a subscriber.
<br><br></blockquote></div><br>