Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Focus File
 Login/Join
 
Member
posted
Hi,

How can I just refresh focus file and not master file.We created new dimensions on master file and every time the focus file is refreshed the new master is created.

Please let me know.

Thank you
RK

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


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
 
Posts: 29 | Registered: August 12, 2009Reply With QuoteReport This Post
Expert
posted Hide Post
You can, but you have to be careful.

I can think of two options.

1. Delete and load the new records into the FOCUS file

2. HOLD as different name and use the USE command to point your master to the generated FOCUS file. This may not work , depending on the changes you have done to the master.


You may also be able to add the extra lines of master file under program control as well.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6272 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Member
posted Hide Post
Thanks Waz, I will try that update to you.


WebFOCUS 8.1.05
Excel, PDF, Pivot, HTML
Windows
 
Posts: 29 | Registered: August 12, 2009Reply With QuoteReport This Post
Expert
posted Hide Post
Alternatively use APP HOLDMETA to an app folder lower down in your PATH, so that your new synonym is created lower down in the path so that the synonym you want to be used is the first found.

Just be very careful that the synonym is compatible!!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5684 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I assume you are creating the Focus file via HOLD FORMAT FOCUS -- which will indeed replace the .mas file along with the .foc file -- and you have added information into the .mas file (joins, defines, titles, whatever) that you wish to preserve across such refreshes.

You can either [1] save the enhanced .mas under another name (an "alternate master file") , and use USE to point to the focus file [ that's essentially WAZ's second approach ];
or, [2] create a Business View synonym that points to the HOLD file.

The former operates without looking at the .mas that the HOLD refreshes, and so will likely break if you make any change to your TABLE HOLD request.
The latter operates through the underlying file's .mas, so it can survive some such changes.

Either solution is keeps all the filenames distinct, as opposed to Tony's suggestion.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Jack,

I think the Business View synonym is a great idea.

Good One


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6272 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Guru
posted Hide Post
Have you tried to open the .mas file in edit mode, run the refresh, and then do a save on the .mas file that is open?


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Reply With QuoteReport This Post
Master
posted Hide Post
Why not use the Modify syntax?

You can use the CREATE command to truncate the table, and then load it all using modify. This way your never changing your master and you don't need to use tricks.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 


Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.