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] getting the define expression and variables from SYSCOLUM table

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] getting the define expression and variables from SYSCOLUM table
 Login/Join
 
Platinum Member
posted
Hi
I am trying to build a report for metadata dictionary to show all the masterfiles and their columns.I was able to do it using the SYSCOLUMN table.
-How can i show the define expressions in my report.
-How can is show variables in the masterfiles.

Thank you

WF8105M
Windows 10

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
  
TABLE FILE SYSCOLUM
PRINT DEFTEXT                         
WHERE DEFINE EQ 'Y'
END


Variables are in VAR_NAME and VAR_PROMPT.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Hi Babak,
Thank you.I got the define expressions.
But VAR_NAME and VAR_PROMPT didnt work.
It gives me
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: VAR_NAME
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: VAR_PROMPT
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
What version of WebFOCUS are you using? Does this work for you?
  
TABLE FILE SYSCOLUM
PRINT VAR_NAME VAR_PROMPT
END


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
No This is not working.
I am getting the same error.
I am using 8105M
 
Posts: 181 | Registered: October 25, 2017Report This Post
Guru
posted Hide Post
The synonym for SYSCOLUM virtual table is hierarchical and you can only report from one path at a time.

There are supplied stored procedures that you can run called SYSCOLS and SYSVARS that each create file with the same name in baseapp that contain information for columns and variables.

You can run these procedures by creating a stored procedure in then entering EX and the name and then Run. Or you could copy them from the Internal Directories to an Application directory where can customize them as needed.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Platinum Member
posted Hide Post
When i use EX SYSVARS i am getting the following error

Cannot include resource specified SYSVARS

Is there any specific privileges i need to run the store procedure.
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
Siva1925

I get the same error so I put the code standalone in a fex and it works..


-DEFAULTH &APPDIR=BASEAPP
-DEFAULTH &FILENAME=SYSVARS

SET 2PARTNAME=ON
ENGINE INT SET TABLESAMPLING_PERCENTAGE
ENGINE INT SET FCA ON

DEFINE FILE _edahome/catalog/syscolum
RUN_DATE/A24 TITLE 'Run Date'='&DATEYYMD' || ' &TOD';
END

TABLE FILE _edahome/catalog/syscolum
PRINT
HOST_NAME
RUN_DATE
TBCREATOR AS 'App Name'
TBNAME
VAR_DEFAULT
VAR_NAME
VAR_PROMPT
ON TABLE SET HOLDATTRS CUBE
ON TABLE SET HOLDLIST NOFOCLIST
ON TABLE SET EMPTYREPORT ON
ON TABLE SET SHORTPATH SQL
-* ON TABLE HOLD AS &APPDIR/&FILENAME CONNECTION '' FORMAT DFIX ENCLOSURE '''' HEADER YES DELIMITER ','
ON TABLE PCHOLD FORMAT HTML
HEADING
"Report &FOCFOCEXEC"
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, 2005Report This Post
Platinum Member
posted Hide Post
Hi Chuck,
What does the below code do.

SET 2PARTNAME=ON
ENGINE INT SET TABLESAMPLING_PERCENTAGE
ENGINE INT SET FCA ON

When i use it i am getting
FOC1350) ERROR IN SETTING INTERFACES ENVIRONMENT COMMAND.

This message has been edited. Last edited by: Siva1925,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
Siva

My bad, this code is for 8.2.04 and does not work with WF 8.1.05. I don't even see the equivalent fex in the 8.1.05 version.


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, 2005Report This Post
Platinum Member
posted Hide Post
How can i bring variables in the masterfiles in my report with 8105.Is there any other way?
 
Posts: 181 | Registered: October 25, 2017Report This Post
Master
posted Hide Post
Not sure if this will help or not, but here are the 8105M docs on Reporting Dynamically From System Tables

The actual master files for these are located in ..\ibi\srv81\home\catalog


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Platinum Member
posted Hide Post
Thanks Hallway for sharing the document.
Is there a way to show the segments in my report.
Like if my master is a cluster i want to show what segments are in that cluster.
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
?FF SYSCOLUM will give you the list of all the columns you could use including SEGNAME.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
There is a field SEGNAME in SYSCOLUMN. It gives the segment name.
 
Posts: 181 | Registered: October 25, 2017Report 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] getting the define expression and variables from SYSCOLUM table

Copyright © 1996-2020 Information Builders