Focal Point
[Solved] Global Variable

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

March 23, 2012, 01:48 PM
JOE
[Solved] Global Variable
Is there a way to assign a Global variable to a sql sqlmss name? We are moving data to a new prod server and want to make it easier to test on the sql dev server by switching the sql sqlmss name once instead of 100+ times.

 ENGINE SQLMSS SET DEFAULT_CONNECTION IVB
SQL SQLMSS 

IVB would be the name I would need to change from time to time when testing.

If so, where do you create global variables? Any examples?

Thanks for any assitance possible.

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


WebFocus 7.7.02 WinXP
March 24, 2012, 12:17 AM
JOE
Nevermind. I figured it out.


WebFocus 7.7.02 WinXP
March 25, 2012, 03:25 PM
Waz
Please post your solution, as it may help others.

Also edit your first post in the thread, and add [SOLVED] to the title.


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!

March 28, 2012, 11:10 AM
JOE
Thanks..I already did. I added this to the edaprof:

-SET @@SERV = 'IVB';


WebFocus 7.7.02 WinXP
March 28, 2012, 04:34 PM
Waz
Use && not @@


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!

March 29, 2012, 07:46 PM
JOE
Aha,yep. Got my programs mixed up.


WebFocus 7.7.02 WinXP
March 29, 2012, 07:56 PM
Waz
Feel your pain, going through similar issues.

Constantly typing -- in FOCUS and -* in SQL


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!

July 12, 2012, 07:37 PM
kmarshba
I'm a newbie to FOCUS and not quite getting the context in where to implement this. My scenario is the adapter to SQL Server Analysis Services 2008 forces the name of the adapter to be the name of the SSAS server. In order to promote from one environment to the other we'll have to edit all of the acx files. Is there a way to use a global variable or the "ENGINE..." statement above? If so, where do I place that command? I get that the global amper variable is set in EDASPROF but where is the ENGINE command being set? Thanks!

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


Server: 8009; Client: 8009 Refresh; OS: Windows Server 2008 R2 64-bit; Web Server: Tomcat; Output Formats: All