Tech Doc Search Tech Support User Forums WebFOCUS Newsletter Summit Education

IB - Developer Center    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] MRE: Global Set Commands
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] MRE: Global Set Commands
 Login/Join
 
Master
posted
I've tried to find the answer for myself, but have so far been unable.

I have been asked to globally apply SET commands (i.e. SET ASNAMES=ON, SET EMPTYREPORT=ON, etc). The intention would be that by default, procedures would have these commands set, but be overridable on an individual basis by simply putting SET ASNAMES=OFF (for example) in the fex. Furthermore, this should be able to be applied to a single config file, setting, etc and cascade downward to all domains (without editing each procedure to add an include, for example).

I have heard this described as 'setting a global variable' but I'm not exactly sure that's the right term.

Any ideas? THANKS!

- ABT

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


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
You can set these parameters globally by putting them in the server profile, edasprof.prf. You can edit this file from the server console, usually http://servername:8121.

You will find this file under the Workspace pulldown, Configuration/Configuration Files/Server Profiles/Server Profile. You must be an admin to do this.

Short of that, you can edit the file by hand. It is located here: /.../ibi/srv76/wfs/etc

Note that slash direction is dependent upon your operating system.


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
Master
posted Hide Post
Thanks Ginny, I think this is just what I'm looking for.

In that file I see "SET SMARTMODE = ON". My assumption is that my additions follow the same (normal) syntax (i.e. SET ASNAMES=ON)? Also, does it matter where I put my additions top/bottom?

Awaiting access to development server to test. Oddly, I can make the change in Prod, but not Dev. They must not trust me. Confused

Smiler

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
Yes, you can add the SET commands at the top or bottom of the file, using normal WebFOCUS syntax.

Remember that these commands will run for every fex, but it is a good idea to do this. These are the commands I set:

SET CENT-ZERO  = ON
SET PAGE       = NOLEAD
SET HOLDLIST   = PRINTONLY
SET HOLDFORMAT = ALPHA
SET ASNAMES    = ON
SET COUNTWIDTH = ON


Francis

I have been working with Information Builders products since 1991, so I believe I have enough experience to allow myself the opportunity to provide my opinion in the hope that it helps build a better product.

Production: WF 7.7.05M / Sandbox: WF 8.0.08, MRE, BI Dashboard, Self Service, Dev Studio, Apache Tomcat/6.0.20, MS IIS 7, Oracle, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2000, PDF
An old coder will never let you down
 
Posts: 8701 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Master
posted Hide Post
Thanks Francis, I'll keep those in mind during my journey into WebFocus.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
FYI

Trying not to confuse you, but these settings are not variables, they are evironment settings.

Variables start with & and global ones start with &&, and they are set with -SET.


Waz...

Prod:WebFOCUS 7.6.6Upgrade:WebFOCUS 7.7.05MOS:UnixOutputs:PDF, CSV, Excel, TXT, XML, HTML
In Focus since 1984
Know The Code
 
Posts: 4403 | Location: Sydney, Great Southern Land | Registered: October 31, 2006Reply With QuoteReport This Post
Master
posted Hide Post
@Waz

Thanks for the confirmation. I knew 'variable' didn't seem like the right term for this.


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Reply With QuoteReport This Post
  Powered by Social Strata  
 

IB - Developer Center    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] MRE: Global Set Commands

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