BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
klongway
Calcite | Level 5

Hello,

 

I am trying to export results to a PDF but despite the results showing up in the results viewer in SAS, whenever I add the ods PDF code it ends up just giving me a PDF with the ENTIRE dataset.

 

I'm sure this is an easy fix but I'm not seeing it.

 

Sorry and thanks!!!

 

Code:

ods pdf file-"uniresults.pdf";

proc univariate data=file4;

var apple orange panda

run;

ods pdf close;

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Likely an issue with graphics then. If you don't need the graphics turn them off, otherwise you may have set something somewhere else that's causing issues. What about other destinations?
If it's a secure lab, like a Statistics Canada RDC, they actually explicitly turn this off so you cannot extract data this way. Only they can generate the output.

View solution in original post

4 REPLIES 4
Reeza
Super User
file- should be file=, equals instead of a dash.

Otherwise your code looks correct. If this is just a typo, please post your code and log.
klongway
Calcite | Level 5

Oh yes, just a typo

 

Code:

ods pdf file="uniresults.pdf";

proc univariate data=file4;

var apple orange panda

run;

ods pdf close;

 

Log:

everything runs fine till the last line which says

 

Error: Device is offline (in a dark brown color)

 

The computer I'm coding on isn't allowed to be hooked up to the internet (per the data security agreement)...:/

Reeza
Super User
Likely an issue with graphics then. If you don't need the graphics turn them off, otherwise you may have set something somewhere else that's causing issues. What about other destinations?
If it's a secure lab, like a Statistics Canada RDC, they actually explicitly turn this off so you cannot extract data this way. Only they can generate the output.
klongway
Calcite | Level 5

Thank you Reeza!!! My IT person just got back to me and said its the default. I just like the PDF for the formatting!

 

I wish I was somewhere so cool, I'm just a lowly grad student with a computer I've signed away by first born child on to use!!!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 842 views
  • 0 likes
  • 2 in conversation