caibirdcnb 发表于 2011-9-18 13:00 
bobguy,非常感谢!
我是新手,我理解你的code是会产生A5-A7这3个全局变量。但请问接下来怎么给A5-A7赋值, ...
See if the following pgm is helpful.
data test;
do x=-4 to 4 by 0.1;
pdf1=pdf('normal',x);
pdf2=pdf('normal',x, 0.2, 1.2);
cdf1=cdf('normal',x);
cdf2=cdf('normal',x, 0.2, 1.2);
output;
end;
run;
title "normal pdf and cdf";
proc sgplot data=test ;
series x=x y=pdf1 / LINEATTRS=solid (color=red);
series x=x y=pdf2 / LINEATTRS=solid (color=blue);
series x=x y=cdf1/ y2axis LINEATTRS=solid (color=red);
series x=x y=cdf2/ y2axis LINEATTRS=solid (color=blue);;
run;
quit;