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.
This is the best I could do. The internal table systable does not list the segment name and the database name is part of the table name.
TABLE FILE SYSTABLE BY SYSTABLE.SYSTABLE.NAME AS 'Master File' BY LOWEST SYSTABLE.SYSTABLE.REALNAME AS 'Table Name' BY SYSTABLE.SYSTABLE.SERVER AS 'Connection' WHERE SYSTABLE.SYSTABLE.NAME EQ '&NAME.(FIND SYSTABLE.SYSTABLE.NAME IN SYSTABLE).NAME:.'; ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET ASNAMES ON ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLEMBEDIMG ON ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005
This is the best I could do. The internal table systable does not list the segment name and the database name is part of the table name.
TABLE FILE SYSTABLE BY SYSTABLE.SYSTABLE.NAME AS 'Master File' BY LOWEST SYSTABLE.SYSTABLE.REALNAME AS 'Table Name' BY SYSTABLE.SYSTABLE.SERVER AS 'Connection' WHERE SYSTABLE.SYSTABLE.NAME EQ '&NAME.(FIND SYSTABLE.SYSTABLE.NAME IN SYSTABLE).NAME:.'; ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET ASNAMES ON ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLEMBEDIMG ON ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
Hi Chuck,
The above mentioned code is returned always single record. But, clustered table details are not able to retrieve. could you please suggest.
Originally posted by Danny-SRL: Veeramani Are you still trying to retrieve from the acx file? If so, did you try my suggestion?
Hi Danny,
As per my requirement, I want to go-through all access files from all domains under reporting server. Hence, I couldn't able to create a common master file to read the table name detail values.
-SET &ECHO=ALL;
-* Veeramani
-DEFAULT &APPDISK='C:', &TDISK='D:'
-* Get the names of the apps
APP LIST HOLD
FILEDEF APPS DISK FOCAPPL.FTM
-RUN
TABLE FILE APPS
PRINT APPNAME
ON TABLE HOLD AS APPFILES FORMAT ALPHA
END
-RUN
-SET &NUMAPPS=&LINES;
-REPEAT #GETAPPS FOR &I FROM 1 TO &NUMAPPS;
-* Read each app
-READFILE APPFILES
-* For each app create a file containing all the files in the app
!DIR &APPDISK|\wf82\ibi\apps\&APPNAME /b > &TDISK|\TEMP\AFILES.FTM
-*-RUN
-* Extract all names of acx files and save this list in a file (ACXFILES)
FILEDEF AFILES DISK &TDISK|\TEMP\AFILES.FTM
TABLE FILE AFILES
PRINT FILNAME
WHERE FILNAME CONTAINS '.ACX' OR '.acx';
ON TABLE HOLD AS ACXFILES
END
-RUN
-SET &NUMACX=&LINES;
-REPEAT #GETACX FOR &X FROM 1 TO &NUMACX;
-* Read each acx file
-READFILE ACXFILES
-* Create FILEDEF string
-SET &ACXF=&APPNAME || '/' || &FILNAME;
-* Report from acx file containing connection
FILEDEF ACX DISK &ACXF
TABLE FILE ACX
"&ACXF"
PRINT SEGNAME DBNAME TBNAME CONNECTION
WHERE CONNECTION NE ' ';
END
-#GETACX
-CLOSE ACXFILES
-#GETAPPS
Good luck!
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