BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
SASdevAnneMarie
Rhodochrosite | Level 12

Hello Experts,

 

I'm wondering whey the stats do not display correctly for the proc sgplot and ods pdf :

I use ods pdf style=Pearl;

SASdevAnneMarie_0-1771513993048.png

Thank you for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
MartinMincey
SAS Employee

Hello,

To see if this resolves the issue, near the top of the code (before the main ODS PDF FILE= statement in the code), add the following statements to the code:

 

options device=SASPRTC;

ods _ALL_ close; 

 

At this point, submit the modified code and let's see what happens. If this does not resolve the issue, please post the newly created SAS log and I will take a look at it. 

 

Regards, Martin
 ------------------------------
Martin Mincey
 
Sr Principal Technical Support Engineer
SAS/Viya Programming and OSL
SAS Technical Support

 

View solution in original post

4 REPLIES 4
MartinMincey
SAS Employee

Hello,

To see if this resolves the issue, near the top of the code (before the main ODS PDF FILE= statement in the code), add the following statements to the code:

 

options device=SASPRTC;

ods _ALL_ close; 

 

At this point, submit the modified code and let's see what happens. If this does not resolve the issue, please post the newly created SAS log and I will take a look at it. 

 

Regards, Martin
 ------------------------------
Martin Mincey
 
Sr Principal Technical Support Engineer
SAS/Viya Programming and OSL
SAS Technical Support

 

SASdevAnneMarie
Rhodochrosite | Level 12
Hello Martin,
Thank you very much! It works.
What "options device=SASPRTC" means?
sbxkoenk
SAS Super FREQ

SASPRTC

the PRT is for PRINTER and C is for COLOR.

 

  • SASPRTC (color)
  • SASPRTG (gray scale)
  • SASPRTM (monochrome)

SAS Help Center: Default Devices for ODS Destinations (see the "Default Device" and "Recommended Devices" columns)

SAS Help Center: Summary of Default Destinations, Styles, and Devices

 

  • device= can be put in an OPTIONS statement
  • device= can be put in a GOPTIONS statement (SAS/GRAPH)

Ciao,
Koen

SASdevAnneMarie
Rhodochrosite | Level 12
Thank you, Koen!

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore 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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 373 views
  • 2 likes
  • 3 in conversation