Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] FIND Command - Specific Location

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] FIND Command - Specific Location
 Login/Join
 
Platinum Member
posted
I have 2 CAR databases (same structure but different data) in different directories. I want to do the following:-

TABLE FILE CAR
PRINT MODEL
BY COUNTRY
BY CAR
WHERE COUNTRY EQ &CNTRY.(OR(FIND COUNTRY IN CAR)).Country:.;
ON TABLE PCHOLD FORMAT EXCEL
END
-RUN

Can the CAR file in the FIND statement be fully qualified to differentiate between my 2 CAR databases ?
I have tried PREPENDPATH etc. and it would seen to work but the PROMPT screen kicks in first before the correct CAR database has been determined.
Hope this makes sense.

This message has been edited. Last edited by: Ian Dalton,


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
I think that you must have different file's name to accomplish what you're attempting to.

Remember that the server path is read before your PREPENDPATH and I think that the auto-prompt is performed before the PREPENDPATH is evaluated.

So really think that you should have two different CAR file's name. And personally, I think that it's not a good idea to have twice the same name for a file...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
Hi Ian,

Have you tried prefixing the file name in the where clause?

WHERE COUNTRY EQ &CNTRY.(OR(FIND COUNTRY IN ibisamp/CAR)).Country:.;

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Hi Martin, Yes you have confirmed what I thought. Ideally would like 2 different file names but we can't for various reasons that I won't bore you with.
Ian


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Platinum Member
posted Hide Post
Hi Tony, Yes both Focus sources and I did try your suggestion ie. dir/CAR but it errors.
Ian


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
Hi Ian,

What is the error you have when trying dir/CAR, cause it works for me ?
TABLE FILE CAR
PRINT MODEL
 BY COUNTRY
 BY CAR
 WHERE COUNTRY EQ &CNTRY.(OR(FIND COUNTRY IN dir/CAR)).Country:.;
 ON TABLE PCHOLD FORMAT EXCEL
END
-RUN


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
Hi Ian,

As discussed, to get the prompting to function correctly I first copied the FOC to baseapp and then added an additional COUNTRY, CAR and MODEL combo (3RD WORLD,BLACKSMITH,HANDCART Wink) and then tested using IBISAMP or BASEAPP in the prompt. I only got the 3RD WORLD prompt when pointing at BASEAPP.

Good luck, see you next week at the User Group.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Thanks Tony and Martin.
Got it all working by putting dirname as a file qualifier AND ensuring master file is also copied into the directory too !


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] FIND Command - Specific Location

Copyright © 1996-2020 Information Builders