Focal Point
List All DB2 Columns Names on Webfocus MFD???

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

August 09, 2016, 06:49 AM
kt1
List All DB2 Columns Names on Webfocus MFD???
Hello,

I want to read a mainframe DB2 table that has 10 columns, but I only need to use two columns in my webfocexec.

Do I need to map all the columns in my Webfocus MFD or can I map just the columns I need in my Webfocexec.

Thanks!

Z/OS webfocus 7.7


WebFocus 532 soon to be 714 IBM OS/390
August 09, 2016, 07:29 AM
MartinY
You should map them all. Anyway, the tool does it for you.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
August 09, 2016, 08:13 AM
kt1
Is the full DB2 table mapping required. Will my focexec fail without all the columns in the MFD even though I don't reference them ??? Thanks]


WebFocus 532 soon to be 714 IBM OS/390
August 09, 2016, 09:01 AM
Francis Mariani
You don't need them all specified in the master - only the ones you know you will use.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 09, 2016, 09:32 AM
kt1
Problem solved. Thanks to all!!!


WebFocus 532 soon to be 714 IBM OS/390
August 09, 2016, 09:43 AM
Francis Mariani
You could also look into "Dynamic columns" when generating the metadata (mas and acx):

"To specify that the Master File created for the synonym should not contain column information, select the Dynamic columns check box.

If this option is selected, column data is retrieved dynamically from the data source at the time of the request."

Reference: Describing Data With Graphical Tools > Accessing Data and Creating Synonyms > Creating Synonyms in Developer Studio >


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server