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.
ALL 'test1.net','test2.net' ADRPTHTML OTHSYSsms (FOC1400) SQLCODE IS 102 (HEX: 00000066) XOPEN: 42000 : Microsoft OLE DB Provider for SQL Server: [42000] Incorrect syntax near : 'test1'. [42000] Statement(s) could not be prepared. [] Deferred prepar : e could not be completed. L (FOC1405) SQL PREPARE ERROR. (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT BYPASSING TO END OF COMMAND ------------------------------------------------
I am thinking this happening becuase of the '.' inthe value of the variable. I dont know how to avoid. I spent couple of hours on this , i did not found any solution. Help is appreciated.
thanks RekhaThis message has been edited. Last edited by: Kerry,
THIS IS THE PART OF THE sql QUERY THAT NEEDS TO BE PREPARED THE VALUES 'TEST1.NET' AND 'TEST2.NET' WILL BE PASSED TO THE COLUMN DOMAIN THE TABLE LIKE THIS--
So my understanding is: you have a list of constant values you want to pass to an SQL "IN" structure to be probed against a table column. Is that correct?
You may use the sample code below which uses the CAR table:
-SET &PW1='''JAPAN'',''ENGLAND''';
SQL
select country, car, model, bodytype, seats
from car
where country in (&PW1)
order by country, car
;
END
My sample above assumed you were using SQL passthru to get your data. If you are using a straight TABLE FILE command however, your condition should be adjusted a bit since you will be using a structure like
WHILE column EQ val1 OR val2 [OR ...]
which gets automagically translated to an IN structure when resolved into SQL.
-SET &PW1='''JAPAN'' OR ''ENGLAND''';
TABLE FILE CAR
PRINT MODEL
BODYTYPE
SEATS
BY COUNTRY
BY CAR
WHERE COUNTRY EQ &PW1
END