MPE CI Programming for 7.5
July 22, 2008
Page 26
hp e3000
strategy
variable scoping
• all CI variables are job/session global, except the following:
HPAUTOCONT, HPCMDTRACE, HPERRDUMP, HPERRSTOLIST, HPMSGFENCE,
which are local to an instance of the CI
• thus it is easy to set “persistent” variables via a logon UDC
• need care in name of UDC and script “local” variables to not collide with
existing job/session variables
• _scriptName_varname -- for all script variable names. Use:deletevar
_scriptName_@ at end of script
• Can create unique variable names by using !HPPIN, !HPCIDEPTH,
!HPUSERCMDEPTH as part of the name, e.g.
:setvar _script_xyz_!hppin , value
• save original value of some “environment” variables
• :setvar _script_savemsgfence hpmsgfence
:setvar hpmsgfence 2