MPE/iX - CI Programming for Stability

July 18, 2008 HP World '01 22
Recommendations
Define your own variables to not appears as HP variables and
chose unique names, e.g. I, J, K, NAME, TEMP are not meaningful
names for any variable which survives the scope of its creation.
NUM_CUSTOMERS, PAYROLL_FILENAME, etc. are more
descriptive names.
Dont define parameters with the same names as your variables and
vice-versa -- just not worth the extra confusion.
In general dont use HPAUTOCONT since it can mask errors in your
script/UDC.
Be careful using the date/time variables. Remember your script
could be running when the clock just passes midnight, or the month
or year just advances.
Use formatted vs. numeric variables. E.g. HPUSERCAPF is preferred
to HPUSERCAP.
Use HPFILE to avoid hard-coding the name of your script.
Use HPINTERACTIVE to avoid prompting in a job.