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     [CLOSED] INDEX question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] INDEX question
 Login/Join
 
Member
posted
Hi all,

I have a doubt regarding how to identify the key or index by looking at the MASTER file.

FILENAME=LMAST,SUFFIX=FOC
SEGNAME=LDATA,SEGTYPE=SH1,$
FIELD=LNO , , I8 ,INDEX=I,$
FIELD=RHD_KEY , , A14,INDEX=I,$
FIELD=L_STATUS , , A1 ,$


SEGNAME=RHDXRF,SEGTYPE=KU,PARENT=LDATA,CRFILE=LMAST,
CRKEY=RHD_KEY,CRSEGNAME=LDATA
FIELD=XLNO , , I8 ,INDEX=I,$ FIELD=RHD_KEY , , A14,INDEX=I,$
FIELD=XL_STATUS , , A1 ,$

Given above is the MASTER file of the FOCUS database LMAST. Here is RHD_KEY part of index as it has INDEX=I written in the field defenition. But SEGTYPE=SH1 for the segment LDATA, which means LNO is the only key for LDATA segment. I am confused because of the conflicting SEGTYPE and INDEX components.

Also, please help me understand the second segment RHDXRF. It has a SEGTYPE of KU, what does it mean?

I am a beginner in FOCUS, any help would be appreciated.

This message has been edited. Last edited by: Kerry,


FCOUS 7.6.1
Z/OS
use focus in report generaton as well as in online screens
 
Posts: 6 | Location: India | Registered: February 25, 2009Report This Post
Virtuoso
posted Hide Post
quote:

FILENAME=LMAST,SUFFIX=FOC
SEGNAME=LDATA,SEGTYPE=SH1,$
FIELD=LNO , , I8 ,INDEX=I,$
FIELD=RHD_KEY , , A14,INDEX=I,$
FIELD=L_STATUS , , A1 ,$

SEGNAME=RHDXRF,SEGTYPE=KU,PARENT=LDATA,CRFILE=LMAST,
CRKEY=RHD_KEY,CRSEGNAME=LDATA
FIELD=XLNO , , I8 ,INDEX=I,$
FIELD=RHD_KEY , , A14,INDEX=I,$
FIELD=XL_STATUS , , A1 ,$


Remya,

First of all, I suggest you read thoroughly the documentation of File Definitions:
Describing Data With WebFOCUS Language

Now for your question:
1. Your file is a FOCUS file
2. SEGTYPE=SH1 says that the segment LDATA is stored sorted Hi-to-Lo on the values of the first field LNO
3. LNO is also described as an INDEX, meaning that you can JOIN to this field
4. RHD_KEY is also an INDEX
5. Segment LDATA has a child segment RHDXRF which is stored in file LMAST, meaning that the segment points to itself. KU means that the relationship is 1-to-1.
6. The segments are linked by the RHD_KEY field
7. In the child segment, the fields LNO and L_STATUS are renamed with the X letter prefixed

I would be interested to know the reason for this recursion.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     [CLOSED] INDEX question

Copyright © 1996-2020 Information Builders