Focal Point
[SOLVED] getting the define expression and variables from SYSCOLUM table

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8377078096

October 24, 2018, 08:57 AM
Siva1925
[SOLVED] getting the define expression and variables from SYSCOLUM table
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,
October 24, 2018, 09:03 AM
BabakNYC
  
TABLE FILE SYSCOLUM
PRINT DEFTEXT                         
WHERE DEFINE EQ 'Y'
END


Variables are in VAR_NAME and VAR_PROMPT.


WebFOCUS 8206, Unix, Windows
October 24, 2018, 09:28 AM
Siva1925
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
October 24, 2018, 10:04 AM
BabakNYC
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
October 24, 2018, 10:09 AM
Siva1925
No This is not working.
I am getting the same error.
I am using 8105M
October 24, 2018, 10:16 AM
Clif
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
October 24, 2018, 01:20 PM
Siva1925
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.
October 24, 2018, 01:39 PM
FP Mod Chuck
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
October 24, 2018, 01:56 PM
Siva1925
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,
October 24, 2018, 05:14 PM
FP Mod Chuck
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
October 25, 2018, 10:32 AM
Siva1925
How can i bring variables in the masterfiles in my report with 8105.Is there any other way?
October 25, 2018, 01:19 PM
Hallway
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:
 
 
 
 
October 26, 2018, 10:05 AM
Siva1925
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.
October 26, 2018, 10:20 AM
BabakNYC
?FF SYSCOLUM will give you the list of all the columns you could use including SEGNAME.


WebFOCUS 8206, Unix, Windows
October 26, 2018, 10:27 AM
Siva1925
There is a field SEGNAME in SYSCOLUMN. It gives the segment name.