QTP Error - Bracketed options are not enclosed in one of (), {}, [], or <>.

Pickering, John (NORBORD) John.Pickering@norbord.com
Thu, 13 Jan 2005 12:45:32 -0500


Stefan

Now I'm really sure you need to look at how you started Qtp.

I can generate your error with the following:

:qtp "cc=junk"

instead of the correct:

:qtp "cc=(junk)"

Please check how you're starting Qtp.

Regards,
JWP

-----Original Message-----
From: Stefan Thibeault [mailto:StefanT@peerless-clothing.com]
Sent: Thursday, January 13, 2005 12:17 PM
To: powerh-l@lists.sowder.com
Subject: QTP Error - Bracketed options are not enclosed in one of (),
{}, [], or <>.


Hello,

I made a change to a select statement in a QTP (PowerHouse  8.19.C4)
and got the following error:

Executing request ONE ...
----------------------------------------------------------------------------
---
The permanent subfile will be overwritten.
   File:  WDC1015
----------------------------------------------------------------------------
---
Bracketed options are not enclosed in one of (), {}, [], or <>.


RUN QTP.CURRENT.COGNOS;INFO="";  XL=" *PHLIBXL  *ORDBA
ORACLEXL.PUB.ORACLEM"
Program terminated in an error state. (CIERR 976)

I change this select from

SELECT IF EMP-STATUS = "AF"

to

SELECT IF EMP-STATUS = "AF" AND ( &
	(LEAVE-DATE-LEFT(1) GT 0  AND LEAVE-DATE-RET(1) EQ 0) OR &
	(LEAVE-DATE-LEFT(2) GT 0  AND LEAVE-DATE-RET(2) EQ 0) OR &
	(LEAVE-DATE-LEFT(3) GT 0  AND LEAVE-DATE-RET(3) EQ 0) OR &
	(LEAVE-DATE-LEFT(4) GT 0  AND LEAVE-DATE-RET(4) EQ 0) OR &
	(LEAVE-DATE-LEFT(5) GT 0  AND LEAVE-DATE-RET(5) EQ 0) OR &
	(LEAVE-DATE-LEFT(6) GT 0  AND LEAVE-DATE-RET(6) EQ 0) OR &
	(LEAVE-DATE-LEFT(7) GT 0  AND LEAVE-DATE-RET(7) EQ 0) OR &
	(LEAVE-DATE-LEFT(8) GT 0  AND LEAVE-DATE-RET(8) EQ 0) ) 

Does anyone have any ideas?


Thanks,

Stefan