<div><br></div><div><span>Nope. the blank line is actually not needed, since there are exactly as many individual values supplied as are prompted.</span><div><br></div><div>Simplifying, the following does not work:</div>
<div><br></div><div>Created a batch file, xyz.bat, and tried it:</div><div><br></div><blockquote><div><font face="courier new, monospace">C:\FOAMbin&gt;type xyz.bat</font></div><div><font face="courier new, monospace">QTP</font></div>


<div><font face="courier new, monospace">; comment</font></div><div><font face="courier new, monospace">E</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">C:\FOAMbin&gt;xyz.bat</font></div>


<div style="color:rgb(80,0,80)"><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">C:\FOAMbin&gt;QTP</font></div><div><font face="courier new, monospace">IBM(R) Cognos(R) PowerHouse(R) 4GL  8.41G - QTP</font></div>


<div><font face="courier new, monospace">(C) Copyright IBM Corp. 1982, 2010</font></div><div><font face="courier new, monospace"><br></font></div></div><div><font face="courier new, monospace">&gt; e  ; I am typing the &#39;e&#39; manually, since QTP is just waiting with a &#39;&gt;&#39; prompt</font></div>


<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">C:\FOAMbin&gt;comment</font></div><div><font face="courier new, monospace">&#39;comment&#39; is not recognized as an internal or external command,</font></div>


<div><font face="courier new, monospace">operable program or batch file.</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">C:\FOAMbin&gt;E</font></div><div><font face="courier new, monospace">&#39;E&#39; is not recognized as an internal or external command,</font></div>


<div><font face="courier new, monospace">operable program or batch file.</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">C:\FOAMbin&gt;</font></div></blockquote>


<div><span style="line-height:6px"><br></span></div><span><font color="#888888"><div>Michel</div><div><br></div><div><br></div></font></span></div><br><br><div class="gmail_quote">
On Thu, Jun 7, 2012 at 5:09 PM, ken weiland <span dir="ltr">&lt;<a href="mailto:ken_weiland@yahoo.com" target="_blank">ken_weiland@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
in your example you are doing the following<br>
I have done a lot of mbatch qtp and quiz files with no problems<br>
<br>
if seems you are calling a quiz routine inside a qtp routine<br>
then means you would need 2 exits are the end<br>
c:<br>
&gt; cd \foambin<br>
&gt; rem QTP auto=C:\FOAMbin\XFSPR20D &lt; %PHTEMP%\FFSPARAM.dat<br>
-- calling qtp at this point<br>
&gt; QTP<br>
&gt; execute C:\FOAMbin\XFSPR20D<br>
&gt; 02<br>
&gt; @<br>
&gt; @<br>
&gt; @<br>
&gt;<br>
-- calling quiz at this point but have not exited the qtp process<br>
&gt; execute C:\FOAMbin\XFSPR20Z<br>
<br>
this exits the quiz process that was started<br>
&gt; exit<br>
<br>
-- you are calling a quiz routine while still withing the qtp call<br>
&gt; QUIZ auto=C:\FOAMbin\XFSZR20Z<br>
-- your are now back to qtp routine<br>
<br>
-- question why are you running XFSPR20Z twice?<br>
<br>
<br>
let know if my thinking  is correct<br>
- you commented out the qtp auto that would have started qtp and shut it down after it ran<br>
 and now call qtp  manually<br>
thus you have to add an exit qtp<br>
<br>
it looks like the batch stream is not correct<br>
qtp auto...<br>
quiz auto ...<br>
<br>
or<br>
<br>
qtp<br>
 execute ....<br>
exit<br>
<br>
quiz<br>
 execute ...<br>
exit<br>
<br>
or<br>
<br>
qtp<br>
 execute .....<br>
<br>
 quiz<br>
 execute ....<br>
 exit<br>
<br>
exit<br>
<br>
<br>
<br>
<br>
<br>
<br><br></blockquote></div>