If 
k is missing, less than zero, or greater than
                  the number of values, the result is a missing value and _ERROR_ is
                  set to 1. Otherwise, if 
k is
                  greater than the number of non-missing values, the result is a missing
                  value but _ERROR_ is not set to 1.