BookmarkSubscribeRSS Feed
dsbihill
Obsidian | Level 7

I can not get my proc gplot to eliminate the auto generated title so that i can replace it.

 

Current Output

 Capture.JPG

 

 

I am trying to replace the highlighted title with a custom title but my code doesnt seem to work like i think it is supposed to.

 

This is what I have right now

 

PROC GPLOT DATA = WORK.SORTTempTableSorted NOCACHE;

PLOT trans_qty * monyear Mfreq * monyear  / 
	des='APG = #Byval3, Usage Type = #Byval4'
	OVERLAY 
	VAXIS=AXIS1
	HAXIS=AXIS2
	FRAME
	LEGEND=LEGEND1;

	BY customer gd apg1 usage_type;

RUN; 

I cant figure out what I am doing wrong here.

Thank you

3 REPLIES 3
Reeza
Super User

The documentation for PROC GPLOT and Description option:

 

DESCRIPTION="description"

specifies a description of the output. The maximum length for description is 256 characters. The description does not appear in the output. The descriptive text is shown in each of the following:

  • the chart description for web output (depending on the device driver). See Chart Descriptions for Web Presentations for more information.
  • the Table of Contents that is generated when you use the CONTENTS= option in an ODS HTML statement, assuming that the output is generated while the contents page is open.
  • the description and the properties for the output in the Results window.
  • the description and properties for the catalog entry in the Explorer.
  • the Description field of the PROC GREPLAY window.
     
     
Reeza
Super User

Instead of description try the NOGTITLE option and then adding a custom title statement. 

DanH_sas
SAS Super FREQ

Use OPTIONS NOBYLINE to get rid of the original BY line, and put your description into a TITLE2 statement. That should do it for you.

 

Thanks!

Dan

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!

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.

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
  • 3 replies
  • 934 views
  • 2 likes
  • 3 in conversation