QTP Timing Levels: AT INITIAL and AT FINAL
Murray Scholz
murray.scholz at abri.une.edu.au
Wed Aug 1 22:32:58 CDT 2007
Hello Vamsi,
Yes, they each add one record only (and potentially could contain data
from the 1st and last record construct, rather than simply literals as
in my example.
Often used with something like
access A link to B
define my-header char*30 = "This is a header record"
define data-rec char*30 = fld-1 of A + fld-2 of A + fld-1 of B
define my-footer char*30 = "This is the footer"
subfile xyz keep noappend include data-rec
subfile xyz alias xyz-header append at initial include my-header
subfile xyz alias xyz-footer append at final include my-footer
>>>>>>>>>>>>>>>>>>>
You'll end up with a subfile..
This is a header record
<data>
<data> ..... etc
This is the footer
This might help explain things for you.
Regards
Murray Scholz
Agricultural Business Research Institute
University of New England
Armidale NSW 2351 Australia
Email murray.scholz at abri.une.edu.au
vamsi krishna wrote:
> Hello Guys,
>
> I just had a small confusion regarding the Control Breaks used to add
> initialize and finalize the record buffer for output statements.
>
> For example:
>
> ACC A LINK TO B
> ; which selects many records
> define a1 char*6="Cognos"
> define b1 char*20="Powerhouse"
> define my-record char*26=a1+b1
>
> subfile xyz keep noappend at initial include my-record
>
> I saw this statement will add only one record to the subfile.
> Does that mean "AT FINAL" and "AT INITIAL" allows to add only one
> record at the output phase? and How exactly it works?
>
> Please help.
>
> Thanks and Regards,
> Vamsi
>
>
> --
> "Nothing is impossible as impossible itself says i m possible"
More information about the powerh-l
mailing list