Number of records of a subfile in Qdesgin/UNIX?
Daniel Rodríguez
reasegurator at gmail.com
Thu Sep 20 02:24:59 CDT 2007
Hi Jeff,
It doesn't work. I believe that PH creates a son process so I can't read the
value of TVAR_NUM_REC.
I've been trying to do it with SETSYSTEMVAL() but I can't find a way to do
it.
Thanks,
Daniel Rodriguez
2007/9/20, Jeff Hoffman <wonicon at optusnet.com.au>:
>
> 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.
>
> --
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20070920/55626b5d/attachment.html
More information about the powerh-l
mailing list