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] Viewing Master File Description

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Viewing Master File Description
 Login/Join
 
Member
posted
Is there a simple command (like ?FF) that outputs the description of the master file, including field names, aliases, formats, etc.?

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.2.06, Windows
 
Posts: 22 | Registered: July 18, 2019Report This Post
Virtuoso
posted Hide Post
jitz83od

?FF car does exactly what you are asking for, field name, alias and format


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
Expert
posted Hide Post
Also SYSTABLE and SYSCOLUM can show the masters table level info and column level info.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Ok. I was also wanting to look at information about the table suffix and indexes in a format similar to the way we often see master file descriptions displayed. I guess I can also TABLE the results of CHECK FILE to retrieve this information.

I am curious, though, if there is a command that returns the information to display like this:

FILENAME=EMPDATA, SUFFIX=FOC, MFD_PROFILE=baseapp/DDBAEMP,$
VARIABLE NAME = Emptitle, USAGE=A30, DEFAULT=EMPID,$
SEGMENT=EMPDATA,SEGTYPE=S0, $
FIELDNAME=PIN , ALIAS=ID, USAGE=A9, INDEX=I, TITLE='&&Emptitle',$
FIELDNAME=LASTNAME, ALIAS=LN, FORMAT=A15, $
FIELDNAME=FIRSTNAME, ALIAS=FN, FORMAT=A10, $
FIELDNAME=MIDINITIAL, ALIAS=MI, FORMAT=A1, $
FIELDNAME=DIV, ALIAS=CDIV, FORMAT=A4, $
FIELDNAME=DEPT, ALIAS=CDEPT, FORMAT=A20, $
FIELDNAME=JOBCLASS, ALIAS=CJCLAS, FORMAT=A8, $
FIELDNAME=TITLE, ALIAS=CFUNC, FORMAT=A20, $
FIELDNAME=SALARY, ALIAS=CSAL, FORMAT=D12.2M, $
FIELDNAME=HIREDATE, ALIAS=HDAT, FORMAT=YMD, $


WebFOCUS 8.2.06, Windows
 
Posts: 22 | Registered: July 18, 2019Report This Post
Virtuoso
posted Hide Post
There is no command that does that but you can create a report using SYSCOLUM as the source and replicate this look.

Is this for your users to see the contents or what is the requirement to view it like this?


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
Master
posted Hide Post
I would open the master in the text editor, to view its contents.

Just for curiosity...
-DEFAULTH &LINEREAD ='DUMMY'
-* Assign Car Master to a logical fileaname.  
FILEDEF TESTME DISK IBISAMP/EMPDATA.MAS (LRECL 70
-RUN
-* Read through the file and print each line.  
-REPEAT ENDOFLOOP 200 TIMES
-READ TESTME &LINEREAD.A70.
-IF &IORETURN NE 0 GOTO ENDOFREAD;
-TYPE &LINEREAD
-ENDOFLOOP
-*
-ENDOFREAD  

...gives...
 FILENAME=EMPDATA, SUFFIX=FOC
 SEGNAME=EMPDATA,  SEGTYPE=S1
 FIELDNAME=PIN,          ALIAS=ID,       FORMAT=A9,  INDEX=I,    $
 FIELDNAME=LASTNAME,     ALIAS=LN,       FORMAT=A15,             $
 FIELDNAME=FIRSTNAME,    ALIAS=FN,       FORMAT=A10,             $
 FIELDNAME=MIDINITIAL,   ALIAS=MI,       FORMAT=A1,              $
 FIELDNAME=DIV,          ALIAS=CDIV,     FORMAT=A4,              $
 FIELDNAME=DEPT,         ALIAS=CDEPT,    FORMAT=A20,             $
 FIELDNAME=JOBCLASS,     ALIAS=CJCLAS,   FORMAT=A8,              $
 FIELDNAME=TITLE,        ALIAS=CFUNC,    FORMAT=A20,             $
 FIELDNAME=SALARY,       ALIAS=CSAL,     FORMAT=D12.2M,          $
 FIELDNAME=HIREDATE,     ALIAS=HDAT,     FORMAT=YMD,             $
 $
 DEFINE AREA/A13=DECODE DIV (NE 'NORTH EASTERN' SE 'SOUTH EASTERN'
 CE 'CENTRAL' WE 'WESTERN' CORP 'CORPORATE' ELSE 'INVALID AREA');$   




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
Good One Very clever!


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
Member
posted Hide Post
Agreed. Very clever, David! Thank you!

Chuck, there isn't a need for users to see things this way per se. We are currently migrating some of our programs from FOCUS for AS400 to WebFOCUS, and this is the way master file descriptions are displayed in the old system. It's just for ease of comparison between the two platforms and to help us learn how things work together and are different as we make the transition.

Thanks for your help!


WebFOCUS 8.2.06, Windows
 
Posts: 22 | Registered: July 18, 2019Report This Post
Member
posted Hide Post
You may need to substitute filedef & alter the size of line, depending on your environment/coding technique.
This approach is from a method to extract filedef'd configuration files on a server, such as edaserve, etc.

    DYNAM ALLOC FI MFD DA MASTER.DATA(MFD) SHR REU
    TABLEF FILE MFD PRINT LINE
    END

    LINE
    ----
    FILENAME=MFD,SUFFIX=FIX,$
    SEGNAME=ONE,SEGTYPE=S0,$
    FIELD=LINE, ,A80,A80,$

    NUMBER OF RECORDS IN TABLE= 3 LINES= 3

This message has been edited. Last edited by: Pete Conlin,


3.x-8.x,z/OS
 
Posts: 1 | Registered: September 17, 2019Report 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] Viewing Master File Description

Copyright © 1996-2020 Information Builders