From: zhang3stone on
Hi Guys:

This is a section of code come from a book.

ROC MEANS DATA=JES.Results_1 NOPRINT;
VAR Defects Resistance Fail;
OUTPUT OUT=Tab_3
N(Defects)=N
SUM(Defects) = N_DEF
MEAN(Defects) = M_Def
MEAN(Resistance) = M_Res
SUM(Fail) = N_Fail
MEAN(Fail) = P_Fail;
FORMAT M_Def P_Fail 6.2;
RUN;

The Format statment at last line but one mean to format the var M_Def
and P_Fail that exist in the output data set Tab_3. When submit the
code, However, SAS give the warning of
WARNING: Variable M_DEF not found in data set JES.RESULTS_1.
WARNING: Variable P_FAIL not found in data set JES.RESULTS_1.
although this statment has worked on the output data set.

My question is that how could I specify the Format statment for the
output dataset only and remove the warning.