I'm using Proc GPLOT to produce graphs that end up in the ODS PDF destination. The program worked fine under 9.1.3 but is not working under 9.2.
MPRINT(DOD): DATA b;
MPRINT(DOD): length color $5 function $4;
MPRINT(DOD): retain xsys '1' ysys '2' when 'a';
MPRINT(DOD): function='move';
MPRINT(DOD): x=.15;
MPRINT(DOD): y=20;
MPRINT(DOD): output;
MPRINT(DOD): function='draw';
MPRINT(DOD): x=100;
MPRINT(DOD): y=20;
MPRINT(DOD): color='white';
MPRINT(DOD): output;
MPRINT(DOD): function='move';
MPRINT(DOD): x=.15;
MPRINT(DOD): y=40;
MPRINT(DOD): output;
MPRINT(DOD): function='draw';
MPRINT(DOD): x=100;
MPRINT(DOD): y=40;
MPRINT(DOD): color='white';
MPRINT(DOD): output;
MPRINT(DOD): function='move';
MPRINT(DOD): x=.15;
MPRINT(DOD): y=60;
MPRINT(DOD): output;
MPRINT(DOD): function='draw';
MPRINT(DOD): x=100;
MPRINT(DOD): y=60;
MPRINT(DOD): goptions reSET=global gunit=pct noborder colors=(black green red blue) cBack=white ftitle="Times New Roman"
ftext="Times New Roman" htitle=14pt htext=13pt hsize=4.0 vsize=3.5 horigin=0 vorigin=6.1 dev=SASPRTM target=SASPRTM;
MPRINT(DOD): pattern1 color=charcoal;
MPRINT(DOD): axis1 label = ('Duty Status' ) value=(h=4.5 tick=1 'Return to Duty' justify=c 'with no' justify=c 'limitation'
tick=2 'Return to Duty' justify=c 'with limitation' tick=3 'Not Returned' justify=c 'to Duty');
MPRINT(DOD): axis2 label = (angle=90 "Percent of Injured Airmen") major=none minor=none;
MPRINT(DOD): title height=15pt lspace = 6 "Air Force";
MPRINT(DOD): ods pdf startpage=never;
MPRINT(DOD): PROC gchart DATA=page4_top;
MPRINT(DOD): vbar disp / freq=count type=pct raxis=axis2 anno=b raxis = 0 to 100 by 20 maxis=axis1 width = 15 levels=3 space=3
MIDPOINTS='anolimit' 'bwhlimit' 'cquarter' noframe ;
MPRINT(DOD): where loc_name="airforce";
MPRINT(DOD): RUN;
WARNING: The left vertical axis labeled PERCENT could not be fit as specified. The axis values will overwrite.
NOTE: ERROR DETECTED IN ANNOTATE= DATASET WORK.B.
NOTE: PROBLEM IN OBSERVATION 1 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
NOTE: PROBLEM IN OBSERVATION 2 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
NOTE: PROBLEM IN OBSERVATION 3 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
NOTE: PROBLEM IN OBSERVATION 4 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
NOTE: PROBLEM IN OBSERVATION 5 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
NOTE: PROBLEM IN OBSERVATION 6 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
The SAS System
NOTE: PROBLEM IN OBSERVATION 7 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
NOTE: PROBLEM IN OBSERVATION 8 -
DATA SYSTEM REQUESTED, BUT VALUE IS NOT ON GRAPH 'RESPONSE'
WARNING: Invalid color name or too many colors for device. Colors will be remapped.
MPRINT(DOD): quit;
NOTE: There were 3 observations read from the data set WORK.PAGE4_TOP.
WHERE loc_name='airforce';
NOTE: There were 8 observations read from the data set WORK.B.
Work.B:
color function xsys ysys when x y
move 1 2 a 0.1 20
white draw 1 2 a 100 20
white move 1 2 a 0.1 40
white draw 1 2 a 100 40
white move 1 2 a 0.1 60
white draw 1 2 a 100 60
white move 1 2 a 0.1 80
white draw 1 2 a 100 80
page 4 top:
Service loc_name disp Count
F airforce anolimit 19589
F airforce bwhlimit 5000
F airforce cquarter 454
Message was edited by: JCS