Number of records of a subfile in Qdesgin/UNIX?

Jeff Hoffman wonicon at optusnet.com.au
Wed Sep 19 19:59:24 CDT 2007


Hi

A unix command that should work is:

wc -l SFOTX001 | read TVAR_NUM_REC unwanted

so you could try
RUN COMMAND 'wc -l SFOTX001 | read TVAR_NUM_REC unwanted' NOWARN ON 
ERROR CONTINUE

I am not quite sure if unix creates this in a son process and gets 
lost after returning from the son process.

Jeff

At 08:47 PM 18/09/2007, you wrote:
>Hi all,
>
>I'm migrating from HP3000 / Mpe to Hp9000 / Hp-Ux, and I need to 
>know how to obtain the number of records of a subfile after the 
>execution of a QTP.
>
>In our HP3000, I used:
>
>RUN COMMAND 'SETVAR TVAR_NUM_REC,FINFO("SFOTX001","EOF")' NOWARN ON 
>ERROR CONTINUE
>
>and I read with a GETSYSTEVAL the value of TVAR_NUM_REC to obtain 
>the number of records of the subfile SFOTX001 generated by the QTP.
>
>How can I read the result of  'more SFOTX001| wc -l' in QDESIGN?
>
>Thank you,
>
>Daniel Rodriguez
>
>--
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l at lists.sowder.com
>Subscribe: "subscribe" in message body to 
>powerh-l-request at lists.sowder.com
>Unsubscribe: "unsubscribe <password>" in message 
>body to powerh-l-request at lists.sowder.com
>http://lists.sowder.com/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>Add 'site:lists.sowder.com powerh-l' to your search terms to search 
>the list archive at Google.



More information about the powerh-l mailing list