We used to have a variable, displayable using either “-? &” or “-? &&”, which contains the environment, prod or dev, before we went to the latest 8202M. The question is: How do we get it back?
I can use &EXCELSERVURL even though it doesn't show up in “-? &”, it's available.This message has been edited. Last edited by: Doug,
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
July 10, 2018, 06:29 PM
Hallway
quote:
either “-? &” or “-? &&”
Those still work in my 8202M environment. However, they seem incomplete. So I have created a fex to query the sysset master file.
TABLE FILE sysset
PRINT
SETVALTYPE
SETMAXLEN AS 'Max,Length/,Value'
SETFPROMPT AS 'From,PROMPT'
SETFTAB AS 'From,TABLE'
SETFPARMS AS 'From,PARAMS'
VALUE AS 'Available,Values'
VALDESC
CURR_VALUE
IS_DEFAULT
BY SETNAME
BY SETDESC
BY SERVDESC
WHERE SETNAME CONTAINS '&';
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET BYDISPLAY OFF
ON TABLE SET NODATA ''
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,$
TYPE=REPORT, LINES-PER-PAGE=UNLIMITED, $
ENDSTYLE
END
Although, this list still seems incomplete.
For example &DATEHHMIA is not included in that query, but if you have this code:
-TYPE &|DATEHHIA: &DATEHHIA
It will return the time of day in AM/PM format.This message has been edited. Last edited by: Hallway,
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
July 11, 2018, 03:33 AM
Efrem
What's your GEN # of 8202M.
I tried it in an 8202M Gen that I have an it seems to work fine.
Thanks to both of you. &EXCELSERVURL shows "SET EXCELSERVURL=http://MyEnvironment:8080/ibi_apps" which I can use to determine 'where I am'.
July 13, 2018, 04:33 PM
Doug
There's at least two options.\
1) We can use "-SET &HOSTNAME=FGETENV(20,'COMPUTERNAME',20,A20);" with caution. That is, keep track of where it's used as WebFOCUS is moved to another server and the hostname changes?
2) The use of "&EXCELSERVURL" as mentioned earlier. But, that comes with the risk of it being blanked out to 'fix' some Excel issues.
July 28, 2018, 06:54 AM
Don Garland
-SET &HOSTNAME=FGETENV(20,'COMPUTERNAME',20,A20);" works in 8202 but not in 8009.