10 Facts You Should Know about Special Values
October 26, 2011 Ted Holt
Imagine not being allowed to code *FIRST in the MBR parameter of the Override with Database File (OVRDBF) command. Horrible thought, isn’t it? Special values make commands more sensible and easy to use. Here are 10 facts every IBM i developer should know in order to effectively use special values in his own commands. 1. Special values are character strings that are incompatible with validity checking rules. In this example, BATCH requires a three-digit number, and *ALL does not fit that description. PARM KWD(BATCH) + TYPE(*DEC) LEN(3 0) + DFT(*ALL) + REL(*GT 0) + SPCVAL((*ALL -1)) + PROMPT('Batch number')</all> 2. |