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] how to create a new FOC datasource?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] how to create a new FOC datasource?
 Login/Join
 
Member
posted
Hello,

Like the webfocus example FOC datasource CAR under the \ibisamp, I want to create a test FOC datasource for my personal use.

Can someone tell me how to create a FOC datasource file like CAR example?

Thanks,
William

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


webfocus 5.3
WebFOCUS 7.1.x
WebFOCUS 7.6.x
WebFOCUS 7.7.x
Unix
Excel / HTML / PDF
 
Posts: 17 | Registered: February 06, 2009Report This Post
Expert
posted Hide Post
The question is: how are you going to get data into it?

There are two basic ways to do this.

Write a report against a file that has data that you want to populate the new file and hold the output in FOCUS format. E.g.

APP HOLD dirname
TABLE FILE CAR
PRINT SALES RETAIL_COST DELEAR_COST
BY COUNTRY
BY CAR
BY MODEL
ON TABLE HOLD AS CARFOC FORMAT FOCUS INDEX COUNTRY
END


This creates both the .mas and .foc files in the 'dirname' directory.

Another way is to use the synonym editor to create the master for your FOCUS file. You might want to add the DATASET parameter. Then issue a CREATE FILE against the master to physically create the file.

You now have to figure out how to load it. You can use a FIXFORM MODIFY or a MAINTAIN procedure to do this. There are also other ways.

This is only to help you get started. You need some training and you need to do a little reading. Good luck.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
quote:
WFRS

Thanks!

This is exactly what I want to know.


webfocus 5.3
WebFOCUS 7.1.x
WebFOCUS 7.6.x
WebFOCUS 7.7.x
Unix
Excel / HTML / PDF
 
Posts: 17 | Registered: February 06, 2009Report This Post
Virtuoso
posted Hide Post
Or you can do this

APP FI MASTER DISK YOURNAME.MAS
-RUN
-WRITE MASTER FILENAME=YOURNAME, SUFFIX=FOC
-WRITE MASTER SEGNAME=ONE, SEGTYPE=S1
-WRITE MASTER FIELDNAME=FIELD0    ,ALIAS=    ,USAGE=A2 ,$
-WRITE MASTER FIELDNAME=FIELD1    ,ALIAS=    ,USAGE=P6.4 ,$
-WRITE MASTER FIELDNAME=FIELD2    ,ALIAS=    ,USAGE=P4.2 ,$
CREATE FILE YOURNAME
MODIFY FILE YOURNAME
FREEFORM FIELD0 FIELD1 FIELD2
DATA
'A1',0.0027,0.57,$
'A2',0.0041,0.58,$
'B1',0.0058,0.59,$
'B2',0.0080,0.60,$
'B3',0.0106,0.61,$
'C1',0.0138,0.62,$
END
-RUN


If you run this it creates a FOCFILE with fields you can create yourself filled with your data.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
Hi Frank,

I tested your code, it's great!

But I need to add the DATASET parameter to make it work (to generate the FOC data file) on our environment.

Thanks,


webfocus 5.3
WebFOCUS 7.1.x
WebFOCUS 7.6.x
WebFOCUS 7.7.x
Unix
Excel / HTML / PDF
 
Posts: 17 | Registered: February 06, 2009Report 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] how to create a new FOC datasource?

Copyright © 1996-2020 Information Builders