Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
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
Go
New
Search
Notify
Tools
Reply
  
[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: 162 | Registered: October 25, 2017Reply With QuoteReport 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: 1708 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport 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: 162 | Registered: October 25, 2017Reply With QuoteReport 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: 1708 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Platinum Member
posted Hide Post
No This is not working.
I am getting the same error.
I am using 8105M
 
Posts: 162 | Registered: October 25, 2017Reply With QuoteReport 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.
 
Posts: 386 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport 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: 162 | Registered: October 25, 2017Reply With QuoteReport 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: 1667 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport 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: 162 | Registered: October 25, 2017Reply With QuoteReport 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: 1667 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport 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: 162 | Registered: October 25, 2017Reply With QuoteReport 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
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 489 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport 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: 162 | Registered: October 25, 2017Reply With QuoteReport 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: 1708 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Platinum Member
posted Hide Post
There is a field SEGNAME in SYSCOLUMN. It gives the segment name.
 
Posts: 162 | Registered: October 25, 2017Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.