BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This paper on compatibility issues between 9.1.3 and 9.2 might be the place to start:
http://support.sas.com/resources/papers/proceedings10/035-2010.pdf

Otherwise, if you open a track with Tech Support, they can help you figure out exactly what the fix needs to be.

cynthia

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1258 views
  • 0 likes
  • 2 in conversation