[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] Dynamic hint error
- Subject: [sqr-users] Dynamic hint error
- From: "世哲黄
" <eric.s.huang@gmail.com>
- Date: Wed, 20 Sep 2006 16:19:38 +1000
- Delivery-date: Wed, 20 Sep 2006 02:21:49 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;h=received:message-id:date:from:to:subject:mime-version:content-type;b=aE0O1QFmtBtVcC8akvEO+Ab2vzyxDbn+dr3xY2CAqT3FTs/ErBhPMGYUmFrnyd8dXJdQSnPHIGhJTqgPWYY4oxNoSNRRpha/13KPydr1Tx+9VfBiyaoJlAF+V/YPgkK5HcoM0cFG8T2cnNLJgrFSonvfhJ+hrKyK3nQStDZRCZg=
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
Hi,
I am trying to use a dynamic hint in my SQR like this:
if ($bill = 'S' or $bill = 'A')
let $hint = ' /*+ full(SFL)*/)'
else
let $hint = ''
end-if
begin-select on-error=ERROR-DISPLAY
[$hint] &hint=char
SF.EXT_ORG_ID
SF.CONTRACT_NUM
SF.EMPLID
FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL
WHERE SF.BUSINESS_UNIT = $business_unit
AND SF.BUSINESS_UNIT = SFL.BUSINESS_UNIT
AND SF.ITEM_NBR = SFL.ITEM_NBR
AND SFL.BILLING_FLAG <> 'Y'
end-select
When I set "bill = S or A" and run this SQR, it comes out an error:
"DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing expression"
otherwise, it runs successfully.
Does anybody help me out of it? Thanks a lot.
Cheers
Eric
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users