As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
-SET &WHERE_DATE = IF &COMPARE EQ 'ON' THEN 'WHERE (DATE GE &STARTDATE AND DATE LE &ENDDATE) OR (DATE GE &STARTDATE2 AND DATE LE &ENDDATE2);' ELSE 'WHERE DATE GE &STARTDATE AND DATE LE &ENDDATE;';
However, with the single quotes, the varibles are being passed as literals and not replaced with the value sent from the procedure. I've toyed about with double-quote, some more singles, haven't figured it out yet.
Your help is appreciated.This message has been edited. Last edited by: Joe Beydoun,
version 8202M Reporting Server on Windows Server using DB2 Connect to access data from iseries.
You need to use the variables as fields and concatenate them to the string.
-SET &WHERE_DATE = IF &COMPARE EQ 'ON' THEN 'WHERE (DATE GE ' | &STARTDATE | ' AND DATE LE ' | &ENDDATE
- | ') OR (DATE GE ' | &STARTDATE2 | ' AND DATE LE ' | &ENDDATE2 | ');' ELSE 'WHERE DATE GE ' | &STARTDATE
- | ' AND DATE LE ' | &ENDDATE | ';';
The other option is to add .EVAL to the variables, but that can be dangerous, as if thevariable has an embedded quote, the line may fail.
Thx for the response, I tried concatenation earlier and got this result from the parser:
-SET &WHERE_DTEI = IF ON EQ 'ON' THEN 'WHERE (ZHEDTEI GE ' | 20101201 | ' AND ZHEDTEI LE ' | 20101203 - | ') OR (ZHEDTEI GE ' | 20101206 | ' AND ZHEDTEI LE ' | 20101207 | ');' ELSE 'WHERE ZHEDTEI GE ' | 20101201 - | ' AND ZHEDTEI LE ' | 20101203 | ';';
(FOC260) AN OPERATION IS MISSING AN ARGUMENT
version 8202M Reporting Server on Windows Server using DB2 Connect to access data from iseries.
-SET &WHERE_DATE = IF &COMPARE NE 'ON' THEN 'WHERE DATE GE ''&STARTDATE.EVAL'' AND DATE LE ''&ENDDATE.EVAL'';' -ELSE 'WHERE (DATE GE ''&STARTDATE.EVAL'' AND DATE LE ''&ENDDATE.EVAL'') OR (DATE GE ''&STARTDATE2.EVAL'' AND DATE LE ''&ENDDATE2.EVAL'');'; -TYPE &WHERE_DATE -EXIT