Focal Point
[SOLVED] MRE: Global Set Commands

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/317109373

February 18, 2010, 08:52 AM
ABT
[SOLVED] MRE: Global Set Commands
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
February 18, 2010, 09:19 AM
GinnyJakes
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
February 18, 2010, 10:07 AM
ABT
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
February 18, 2010, 10:10 AM
Francis Mariani
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


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 18, 2010, 10:27 AM
ABT
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
February 18, 2010, 03:14 PM
Waz
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.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 19, 2010, 08:49 AM
ABT
@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