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.
By referencing the SYSFILES table you can get info on .MAS
what i need to do is get the details of .FOC files instead is there a system table that has this info?This message has been edited. Last edited by: nubi,
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
i will give this a try, well once i understand everything it's doing, i get the concept but find i don't like including code i don't fully understand (makes things a 'mare to maintain!!)
Danny,
what im doing is trying to use the contents of a foc as a data source but want it to be controlled by &Variables..
i have set up a number of focs which are field lists of databases on various different connections and want to be able to get a list of all the focs ive done into a drop-down - without hardcoding anything
my solution was to run a query against a SYSFILES like table but get the FOC's out instead of the .MAS's.
I've got round it by using GETTOK on a SYSFILES path field but wanted something moe robust as that will probably fail if we create any subdirectories below those we currently use.
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
Nubi, If I get your meaning, you want a list of all the FOC files. Here is an idea:
-* File sysfocfiles.fex
SET HOLDLIST=PRINTONLY
-* Get a list of all masters
TABLE FILE SYSFILES
PRINT
FILENAME
-* I added this condition to retrieve only masters in one application directory
WHERE PHNAME CONTAINS 'srlsamp'
ON TABLE HOLD AS MAS FORMAT ALPHA
END
-RUN
-* Number of Master files
-SET &F=&RECORDS;
-* File to accumulate all the FOC files names
FILEDEF FOCS DISK FOCS.TXT (APPEND
-* Loop on all Master names
-REPEAT #GETFOCS FOR &I FROM 1 TO &F;
-READ MAS,&FN
-* Use CHECK FILE HOLD to get all the data on the file
CHECK FILE &FN HOLD
-* Find out if the file is FOC or not
TABLE FILE HOLD
PRINT FILENAME
IF SUFFIX EQ 'FOC'
-* If it is save that name in the FOCS.TXT file
ON TABLE SAVE AS FOCS
END
-#GETFOCS
-RUN
!TYPE FOCS.TXT
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
APP QUERY Folder1 Folder2 Folder3 HOLD
TABLE FILE FOCAPPQ
PRINT
FILENAME
WHERE FILENAME CONTAINS '.foc';
ON TABLE HOLD AS FOC_LIST
END
-RUN
DEFINE FILE FOC_LIST
FOC_NAME/A25 = GETTOK(FILENAME, 70, 1, '.', 25, FOC_NAME);
END
TABLE FILE FOC_LIST
PRINT
FOC_NAME
END
-EXIT
Works for me every time...
EDIT: I thought I would elaborate:
We have user profiles for everyone, we then FILEDEF DRIVE:/ibi/srv76/profiles/USERID.prf where, in USERID.prf, we have APP PATH appfolder1 appfolder2 etc and put the folder names in an AMPER, then do the above, with this actual code:
APP QUERY &FOLDERS.EVAL HOLD
This ONLY gives them access to files they should have access to; SYSFILES gives everything...
FYIThis message has been edited. Last edited by: Tom Flynn,
TABLE FILE SYSTABLE
PRINT NAME
WHERE TBTYPE EQ 'FOC'
END
It doesn't list the actual ".foc" files, but shows the masters in the path that are for FOCUS files. After all, the actual focus file does not have to be in the current path, but could be filedef'd or have the location specified in the master anywhere else on the drive or the network.
Windows: WF 7.6.2: SQL Server 2008 R2
Posts: 86 | Location: Chicago | Registered: August 03, 2007