Focal Point
[SOLVED] MRE Domain Name in an amper variable -- Any way to get the long name?

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

July 02, 2009, 03:21 PM
John_Edwards
[SOLVED] MRE Domain Name in an amper variable -- Any way to get the long name?
The title pretty much says it. I want to pivot on the long name of the domain in my Maintain code. &IBIMR_domain gives me the short version, is there an amper variable for the long version? I know there is for the focexec so I'm hoping there is for the domain as well.

Thanks in advance!

J.

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



July 02, 2009, 04:16 PM
GamP
I don't think there is.
Maybe you could code somewhere in your mre-fex where you want this variable a '-? &' statement to see what variables are available to you at that point. Otherwise you would have to access the mre admin htm file and find out from there what the long name is.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
July 02, 2009, 05:43 PM
Tom Flynn
John,

Execute from WEBFOCUS76/utilities/mrextract.bat

This will create 5 txt files, 1 being IBIMRDOM.TXT

Content example from my LocalHost:

 
"testingl/testingl.htm","none","Testing_Long_Name"
"tomtestv/tomtestv.htm","none","TomTest"


The 3rd column is your Long Name. You can write a master to read.

The mrextract.bat file can be executed at night and the output routed to an area a fex, can read it in, do a MATCH and output an amper...

You may need to add

<set> IBIMR_domain (pass)


to your Custom Settings to do the MATCH with the 1st column, the short name...

HTH

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
July 03, 2009, 10:24 AM
John_Edwards
Thanks guys. I think for the moment I'll just formalize the short names and go with them. Each short domain name will need to have a specific string of five characters I can pivot off of so that I can have three left for Dev, QA, and Prd.

It will work, just won't be as manageable in the maintenance phase.

J.