MPE/iX - CI Programming for Stability
July 18, 2008 HP World '01 68
Variable referencing
• two ways to reference a variable:
• explicit -- !varName
• implicit -- varName
• some CI commands expect variables (and expressions) as their
arguments, e.g.
• :CALC, :IF, :ELSEIF, :SETVAR, :WHILE
• use implicit referencing here, e.g.
:if (HPUSER = “MANAGER”) then
• most CI commands don’t expect variable names (e.g. BUILD, ECHO,
LISTF)
• use explicit referencing here, e.g.
:echo You are logged on as: !HPUSER.!HPACCOUNT
• note: all UDC/script parameters must be explicitly referenced
• all CI functions accept variable names, thus implicit referencing works
• :while JINFO (HPLASTJOB, “exists”) do… better than ...
:while JINFO (“!HPLASTJOB”, “exists”) do