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]A Quick question on renaming SEGMENT name in FOCUS file created

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]A Quick question on renaming SEGMENT name in FOCUS file created
 Login/Join
 
Platinum Member
posted
Hi,

I have created a FOCUS file and by default it gets the SEGMENT name as SEG01.Is there any way i can change the name of the SEGEMENT to another name.
I tried to open the file and in the properties i tried to change,but when is try to see the sample data it gives the error message "(FOC209) DATA VALUE EXCEEDS ITS LENGTH SPECIFICATION:"

Any help is highly appreciated.

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


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
Please share your master file (don't forget to use the code tag).


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
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
Are you using HOLD FORMAT FOCUS to create this file or are you using MODIFY to load it? If it's the latter, change the segname before you load.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
The real scenario is :
I have an excel file which i loaded and created a master file.For some security reasons,i am told not to use the excel file and create .mas.So i am trying to load it into FOCUS file using ON TABLE HOLD AS NAME FORMAT FOCUS as it is only few records.
This is what i do.
  
TABLE FILE DIM_POP_SUMMARY
PRINT 
*
ON TABLE HOLD AS DEMOFOCUS FORMAT FOCUS
END


DIM_POP_SUMMARY is the .mas file i created form excel.
Here is the .mas file created
 
FILENAME=DIM_POP_SUMMARY, SUFFIX=FOC     ,
 DATASET=hub/dim_pop_summary.foc, $
  SEGMENT=SEG01, SEGTYPE=S1,
    DESCRIPTION='POPULATION', $
    FIELDNAME=FOCLIST, ALIAS=E01, USAGE=I5, $
    FIELDNAME=YEAR1, ALIAS=E02, USAGE=I7,
      MISSING=ON,
      TITLE='YEAR',
      PROPERTY=MEASURE,  $
    FIELDNAME=POPULATION, ALIAS=E03, USAGE=I9,
      MISSING=ON,
      TITLE='POPULATION',
      PROPERTY=MEASURE,  $
    FIELDNAME=CITY_NAME, ALIAS=E04, USAGE=A19V,
      MISSING=ON,
      TITLE='CITY_NAME', $
 

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


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
ON TABLE HOLD FORMAT FOCUS effectively does this:
ON TABLE HOLD
.
.
.
MODIFY FILE DEMOFOCUS
FIXFORM FROM HOLD
DATA ON HOLD
END
  


You can do this yourself. The first time you create the FOCUS file, after changing the SEGNAME to whatever you want issue a CREATE FILE DEMOFOCUS. That'll create an empty FOCUS file with the SEGNAME=whatever. Then create the HOLD FILE without FORMAT FOCUS, -RUN and then do the MODIFY like I show above. See what happens.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Thanks BabakNYC.
I will try your solution.


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report 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]A Quick question on renaming SEGMENT name in FOCUS file created

Copyright © 1996-2020 Information Builders