/* Datasets to draw values from*/
%DO i=1 %TO &NUMITEM;
/* Assign new macro variables as global*/
/* Gets entire row of data*/
/* Grabs specific value for threshold from that row*/
/* Transferring value to global macro, and checking via log;*/
%LET itemorder&i. = &&item&i.;
%PUT itemorder&i. &&itemorder&i.;
/* Close dataset used in program;*/
Just to let others who might be curious know that I have found out why I was getting "OUT OF RANGE WARNING"
The section of the code that was referring to another file had the wrong name for the variable.