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
  
Folc$hold issue
 Login/Join
 
<Janani>
posted
HI,

Iam trying to copy the User specific .mas and .foc files to a specific location. Is there any way to derive the path alone that is (APP HOLD DIR's path) dynamically instead of using APP HOLD DIR.

For example:

-UNIX cp A B /opt/webfocus/qa/ibi/apps/holddir

where

A&B->are the file names
location: /opt/webfocus/qa/ibi/apps/holddir

But this location is variable that is when iam moving the code to different
regions, the location changes to

/opt/webfocus/uat/ibi/apps/holddir

/opt/webfocus/xat/ibi/apps/holddir

Hence can this path be derived dynamically? Also the regions i need to move the
code to has the same hostname.I have tried using EDAPATH as well as USERPATH to derive the path but still its working.
 
Reply With QuoteReport This Post
Expert
posted Hide Post
This sort of variable can be set in the site.wfs file as it's per installation.

Use the search facility above right to search for "site.wfs" to find earlier discussions.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5616 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
You can also try APP MAP and APP COPY commands with Dialogue Manager variables.


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, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
Another option is to have an INCLUDE in each environment (dev, test, uat, qa, etc.) that sets the value of these types of variables. Then, you just bring in the INCLUDE as needed in your Fex. Once you have all environments covered, you rarely need to change these INCLUDEs.


Diptesh
WF 7.1.7 - AIX, MVS
 
Posts: 79 | Location: Warren, NJ, USA | Registered: October 25, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
dipesh, i have that covered here. I use a -include to a configuration file that covers all the environments, and if there is a change it is rather simple rather than having to look all over the system for it.

ira
wf 538 aix 533


aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0
 
Posts: 195 | Registered: October 27, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
quote:
/opt/webfocus/uat/ibi/apps/holddir

/opt/webfocus/xat/ibi/apps/holddir


If each environment that you are using uses the above folder locations as you specified then the APP ROOT would by /opt/webfocus/uat/ibi/apps on one environment and /opt/webfocus/xat/ibi/apps on the other.

Since holddir is under the apps folder (same location under the APP ROOT) then this is not an issue and you do not have to setup another variable.

Simply state APP HOLD HOLDDIR in your program (though I don't suggest this since multiple requests at the same from the same server time would start writing over each other) and your good to go.



Windows: WF 7.6.2: SQL Server 2008 R2
 
Posts: 86 | Location: Chicago | Registered: August 03, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 


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