Seeing the past in QTP

Guy Werry guy.werry at hbms.ca
Tue May 23 13:56:01 CDT 2006


Richard,

You can also set up another file in the dictionary and use it as an AUDIT file.  This works best if you use the SAME data item names in the 'audit' file.

Here's a code snippet from a QTP program that updates an employee master file (EMPLOYEE-D):

OUTPUT AUDIT-EMP-D ADD  &
       IF ALTEREDRECORD OF EMPLOYEE-D OR NEWRECORD OF EMPLOYEE-D
 ITEM CHANGE-ID       FIN SIGNONUSER
 ITEM CHANGE-DT       FIN SYSDATE
 ITEM CHANGE-TIME     FIN SYSTIME
 ITEM RECORD-STATUS   FIN "C" IF ALTEREDRECORD OF EMPLOYEE-D &
                     ELSE "N" IF NEWRECORD     OF EMPLOYEE-D

This is a bit of work, but if timed correctly will give you what you need.

Guy L. Werry
Senior Systems Analyst
Hudson Bay Mining & Smelting Co., Limited. 

-----Original Message-----
From: powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com
[mailto:powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com]On Behalf Of
Pickering, John (NORBORD)
Sent: Tuesday, May 23, 2006 1:27 PM
To: 'Richard Witkopp'; 'powerh-l at lists.sowder.com'
Subject: RE: Seeing the past in QTP


How about:

temp t-save char*256 
item t-save = tru(t-save) + data-items of filename



-----Original Message-----
From: Richard Witkopp [mailto:RWitkopp at phxa.com]
Sent: Tuesday, May 23, 2006 2:18 PM
To: 'powerh-l at lists.sowder.com'
Subject: Seeing the past in QTP


How do I retain data from each record so that I can use it when reading
subsequent records? Essentially I want to have a temporary that eventually
contains a string that looks like this:
"data from 1st rec"  "data from 2nd rec"  "data from 3rd rec" ...

I'm an old crusty rusty Powerhoser that's been reincarnated, except for my
memory. I thought I had done this in the past, but I've forgotten many of
the quirks of Phouse.

NOTICE: The information contained in this e-mail and any attachments is
confidential and may be privileged or otherwise protected from disclosure.
This e-mail is intended solely for the use of the named addressee. Any other
use, printing, copying, disclosure or dissemination may be subject to legal
restriction. If you are not the intended recipient, please contact the
sender and delete all copies including any attachments.

-- 
-- 
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
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