Synopsis
In calling the VALUE() built-in function, you supplied an environment name that was not a legal name, such as an empty string. bad name is what you supplied.
\par Reginald supports environment names of "SYSTEM", "OS2ENVIRONMENT", or "ENVIRONMENT" to query/set environment variables from the operating system. The Windows version also supports "WIN32" to query/set/create/delete registry keys.
Cause
You wanted to specify your environment name directly to VALUE(), but you forgot to put quotes around it. Therefore, Reginald assumes that it is the name of a variable which contains the real environment name. This is likely the case if bad name is not what you intended.
Cure
If you're directly supplying your environment name as a literal string, put quotes around it.
Cause
You stored the environment name in a variable, and then when passing that, you put the name of that variable in quotes, thus mistakenly passing the variable's name rather than the environment name. This is likely the case if bad name is your variable name.
Cure
Do not put your variable name in quotes.
Cause
You specified a variable name, but that variable was never assigned any value. Therefore, its default value is its name in capital letters. This is likely the case if bad name is your variable name in capital letters.
Cure
Make sure that you assign the environment name to the variable before calling VALUE(). You can trap the NOVALUE condition to catch errors of this nature.
Cause
You misspelled the environment name. Check that bad name is exactly what you wanted, without any spelling errors.
Cure
Learn to spell, trade-school dropout.