Hi Jeff,<br><br>It doesn't work. I believe that PH creates a son process so I can't read the value of TVAR_NUM_REC.<br><br>I've been trying to do it with SETSYSTEMVAL() but I can'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 <<a href="mailto:wonicon@optusnet.com.au">wonicon@optusnet.com.au</a>>:</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 'wc -l SFOTX001 | read TVAR_NUM_REC unwanted' 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>>Hi all,<br>><br>>I'm migrating from HP3000 / Mpe to Hp9000 / Hp-Ux, and I need to
<br>>know how to obtain the number of records of a subfile after the<br>>execution of a QTP.<br>><br>>In our HP3000, I used:<br>><br>>RUN COMMAND 'SETVAR TVAR_NUM_REC,FINFO("SFOTX001","EOF")' NOWARN ON
<br>>ERROR CONTINUE<br>><br>>and I read with a GETSYSTEVAL the value of TVAR_NUM_REC to obtain<br>>the number of records of the subfile SFOTX001 generated by the QTP.<br>><br>>How can I read the result of 'more SFOTX001| wc -l' in QDESIGN?
<br>><br>>Thank you,<br>><br>>Daniel Rodriguez<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<br>><a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br>>Unsubscribe: &quot;unsubscribe &lt;password&gt;&quot; in message
<br>>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 'site:<a href="http://lists.sowder.com">lists.sowder.com</a> powerh-l' to your search terms to search<br>>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: &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 &lt;password&gt;&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 'site:<a href="http://lists.sowder.com">lists.sowder.com</a> powerh-l' to your search terms to search the list archive at Google.<br></blockquote></div><br>