BookmarkSubscribeRSS Feed
mconover
Quartz | Level 8

It runs fine (apparently according to the log) and outputs but the axis doesn't follow any of my specs.

CODING:

PROC GCHART DATA=WORK.MASTER_SET1;

  VBAR MAP_PN_1 / TYPE=PERCENT LEVELS=50;

  AXIS1 ORDER = (0 TO 25000 BY 5000)LABEL=(A=90 'X-AXIS');

RUN;

QUIT;

LOG WHEN I RUN IT:

470  TITLE "Distribution of Maternal Age at Time of Birth";

471  PROC SGPLOT DATA=WORK.MASTER_SET1;

472      HISTOGRAM MAP_PN_1 / SCALE=PERCENT;

473          XAXIS VALUES=(0 TO 25000 BY 250);

474          INSET "THIS IS THE INSET" / BORDER POSITION=topright;

475          XAXIS LABEL="Mean Average Payment per Patient for PN DRG ($)";

476  RUN;

NOTE: PROCEDURE SGPLOT used (Total process time):

      real time           0.36 seconds

      cpu time            0.15 seconds

NOTE: Listing image output written to SGPlot2.png.

NOTE: There were 4826 observations read from the data set WORK.MASTER_SET1.

477  QUIT;

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

Your log does not match your code. 

Doc_Duke
Rhodochrosite | Level 12

In SGPLOT, I think that you can only have one XAXIS statement.

In GCHART, I think that you need a space before the keyword LABEL.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 721 views
  • 0 likes
  • 2 in conversation