Hi Jeff,<br><br>It doesn&#39;t work. I believe that PH creates a son process so I can&#39;t read the value of TVAR_NUM_REC.<br><br>I&#39;ve been trying to do it with SETSYSTEMVAL() but I can&#39;t find a way to do it.<br><br>
Thanks,<br><br>Daniel Rodriguez<br><br><br><br><div><span class="gmail_quote">2007/9/20, Jeff Hoffman &lt;<a href="mailto:wonicon@optusnet.com.au">wonicon@optusnet.com.au</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>A unix command that should work is:<br><br>wc -l SFOTX001 | read TVAR_NUM_REC unwanted<br><br>so you could try<br>RUN COMMAND &#39;wc -l SFOTX001 | read TVAR_NUM_REC unwanted&#39; NOWARN ON<br>ERROR CONTINUE<br>
<br>I am not quite sure if unix creates this in a son process and gets<br>lost after returning from the son process.<br><br>Jeff<br><br>At 08:47 PM 18/09/2007, you wrote:<br>&gt;Hi all,<br>&gt;<br>&gt;I&#39;m migrating from HP3000 / Mpe to Hp9000 / Hp-Ux, and I need to
<br>&gt;know how to obtain the number of records of a subfile after the<br>&gt;execution of a QTP.<br>&gt;<br>&gt;In our HP3000, I used:<br>&gt;<br>&gt;RUN COMMAND &#39;SETVAR TVAR_NUM_REC,FINFO(&quot;SFOTX001&quot;,&quot;EOF&quot;)&#39; NOWARN ON
<br>&gt;ERROR CONTINUE<br>&gt;<br>&gt;and I read with a GETSYSTEVAL the value of TVAR_NUM_REC to obtain<br>&gt;the number of records of the subfile SFOTX001 generated by the QTP.<br>&gt;<br>&gt;How can I read the result of&nbsp;&nbsp;&#39;more SFOTX001| wc -l&#39; in QDESIGN?
<br>&gt;<br>&gt;Thank you,<br>&gt;<br>&gt;Daniel Rodriguez<br>&gt;<br>&gt;--<br>&gt;= = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>&gt;Mailing list: <a href="mailto:powerh-l@lists.sowder.com">powerh-l@lists.sowder.com
</a><br>&gt;Subscribe: &amp;quot;subscribe&amp;quot; in message body to<br>&gt;<a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br>&gt;Unsubscribe: &amp;quot;unsubscribe &amp;lt;password&amp;gt;&amp;quot; in message
<br>&gt;body to <a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br>&gt;<a href="http://lists.sowder.com/mailman/listinfo/powerh-l">http://lists.sowder.com/mailman/listinfo/powerh-l
</a><br>&gt;This list is closed, thus to post to the list you must be a subscriber.<br>&gt;Add &#39;site:<a href="http://lists.sowder.com">lists.sowder.com</a> powerh-l&#39; to your search terms to search<br>&gt;the list archive at Google.
<br><br>--<br>= = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>Mailing list: <a href="mailto:powerh-l@lists.sowder.com">powerh-l@lists.sowder.com</a><br>Subscribe: &amp;quot;subscribe&amp;quot; in message body to 
<a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br>Unsubscribe: &amp;quot;unsubscribe &amp;lt;password&amp;gt;&amp;quot; in message body to <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>Add &#39;site:<a href="http://lists.sowder.com">lists.sowder.com</a> powerh-l&#39; to your search terms to search the list archive at Google.<br></blockquote></div><br>