我的测试程序如下:
goptions reset=all cback=white
ftext='宋体' ftitle='宋体' hsize=7 vsize=4 dev=bmp gsfname=grfout gsfmode=replace;
options symbolgen mlogic mprint;
data a;
infile 'c:\sas.dat';
input sg tz;
run;
title '身高,体重(shengao,tizhong)';
proc reg data = a graphics;
model sg = tz;
plot sg * tz;
run;作者: shiyiming 时间: 2003-12-3 16:15
其中log:
54 goptions reset=all cback=white
55 ftext='宋体' ftitle='宋体' hsize=7 vsize=4 dev=bmp gsfname=grfout gsfmode=replace;
NOTE: No units specified for the HSIZE option. INCHES will be used.
NOTE: No units specified for the VSIZE option. INCHES will be used.
56 options symbolgen mlogic mprint;
NOTE: The PROCEDURE REG used 6 minutes 21.2 seconds.
57 data a;
58 infile 'c:\sas.dat';
59 input sg tz;
60 run;
NOTE: The infile 'c:\sas.dat' is:
FILENAME=c:\sas.dat,
RECFM=V,LRECL=256
NOTE: 3 records were read from the infile 'c:\sas.dat'.
The minimum record length was 9.
The maximum record length was 9.
NOTE: The data set WORK.A has 3 observations and 2 variables.
NOTE: The DATA statement used 0.46 seconds.
61 title '身高,体重(shengao,tizhong)';
62 proc reg data = a graphics;
63 model sg = tz;
64 plot sg * tz;
65 run;
NOTE: 3 observations read.
NOTE: 3 observations used in computations.
NOTE: The window system or device has set the XMAX value of the device BMP to 7.08 inches.
NOTE: The window system or device has set the YMAX value of the device BMP to 4.06 inches.
WARNING: [color=red:b1fe1][b:b1fe1]Font 宋体 could not be found[/b:b1fe1][/color:b1fe1].
Font SIMPLEX substituted for font 宋体.
NOTE: Graph's name, REG, changed to REG2. REG is already used or not a valid SAS name.
结果如图
[img:b1fe1]http://home1.photostation.epson.com.cn/sessions/11392105927/2506440.jpg[/img:b1fe1]作者: shiyiming 时间: 2003-12-3 16:21
我执行了你的程序,只是修改了一下生成数据的部分:
data a(rename=(height=sg weight=tz));
set sashelp.class(keep=height weight);
run;
fonts.sc2里的内容如下(name,type,description,update)
WINANSI DEVMAP WINDOWS ANSI CHARACTER SET 04/25/96
WINOEM DEVMAP IBM CHARACTER PAGE 850 04/25/96
ARABIC FONT OBSOLETE PROP SANS FILLED * 04/25/96
...................................................(还有很多字体,在这里忽略)