SETSYSTEMVAL in QTP

Deskin, Bob Bob.Deskin@Cognos.COM
Tue, 13 Jul 1999 14:36:07 -0400


The difference is in how the DEFINE is evaluated. In QUIZ the DEFINE is
evaluated as the ACCESS is processed, but in QUICK and QTP it is evaluated
when referenced. What you need to do is force a reference as in (note the
SELECT)

> ACCESS WPS-CODE-TBL
> SET INPUT LIMIT 1
> DEFINE JUNK = 1 IF SETSYSTEMVAL("MY-SYMBOL","SET IN QTP")
> SELECT IF JUNK = 1
> GO

-----Original Message-----
From: Terry Pickering [mailto:pickering@myself.com]
Sent: Tuesday, July 13, 1999 2:35 PM
To: powerh-l@lists.swau.edu
Subject: SETSYSTEMVAL in QTP


Why can you not set a system logical (Alpha System, 710F4) using the
SETSYSTEMVAL in QTP? It appears to work fine with QUIZ and QUICK, but not
QTP. There is nothing in the QTP manual that says it won't work, but only
gives examples of setting it with QUIZ and QUICK. No syntax error occurs. 

Consider the following:



Prod > SHOW LOG MY-SYMBOL
%SHOW-S-NOTRAN, no translation for logical name MY-SYMBOL
Prod > QUIZ

Q U I Z   (7.10.F4)
Copyright 1996 COGNOS INC. (ALPHA)
Licensed PH-AXP-RUNTIME for customer: 5062940001 EUGENE SCHOOL DISTRICT AXP

> USE TPSET1
> SET VERIFY
> DEFINE JUNK = 1 IF SETSYSTEMVAL("MY-SYMBOL","SET IN QUIZ")
> GO

Records selected: 0

> EXIT
Prod > SHOW LOG MY-SYMBOL
   "MY-SYMBOL" = "SET IN QUIZ" (LNM$PROCESS_TABLE)
Prod > DEASSIGN MY-SYMBOL
Prod > SHOW LOG MY-SYMBOL
%SHOW-S-NOTRAN, no translation for logical name MY-SYMBOL



Prod > QTP

Q T P   (7.10.F4)
Copyright 1996 COGNOS INC. (ALPHA)
Licensed PH-AXP-RUNTIME for customer: 5062940001 EUGENE SCHOOL DISTRICT AXP

> USE TPSET1
> ACCESS WPS-CODE-TBL
> SET INPUT LIMIT 1
> DEFINE JUNK = 1 IF SETSYSTEMVAL("MY-SYMBOL","SET IN QTP")
> GO

Executing request 1 ...
*W* Input limit has been exceeded.

Records read:
 WPS-CODE-TBL                              2

Transactions processed:                    1

Finished.
> EXIT
Prod > SHOW LOG MY-SYMBOL
%SHOW-S-NOTRAN, no translation for logical name MY-SYMBOL
Prod > 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Terry Pickering        Consultant Extraordinare
Monday and Friday        Tuesday - Thursday
Portland                 Eugene
(503) 245-7178           (541) 687-3416
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.