BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
DrAbhijeetSafai
Lapis Lazuli | Level 10

Dear All,

 

Greetings!

 

I am seeing above warning for a graph. I am not able to understand what exact changes I should make in the programme to remove this warning. 

 

Following line is available in the programme:

ods graphics / width=1575 height=650 attrpriority=none;

 

I have tried using papersize = (40in 20in); etc. as mentioned by Ksharp in this thread, but I am not able to remove the warning. I request to kindly help. Thanks in advance.

 

Thanking you,

Yours sincerely,

 

- Dr. Abhijeet Safai

 

Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real
1 ACCEPTED SOLUTION

Accepted Solutions
DrAbhijeetSafai
Lapis Lazuli | Level 10

The problem is solved. What solved the problem is change of width and height at ods graphics options.

 

Earlier it was - ods graphics / width=1575 height=650 attrpriority=none;

 

which I changed to - ods graphics / width=900 height=450 attrpriority=none;

 

And that solved the problem. The warning is removed.

 

Thank you.

 

- Dr. Abhijeet Safai

Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real

View solution in original post

5 REPLIES 5
ballardw
Super User

I strongly suggest using a unit whenever addressing the width or height of a graphics element.

And I avoid PX as a unit, which it seems that  your system is using as a default, as there is no standard size for a pixel. So you never quite know what the translation between pixels to MM, CM or IN definitions of a printed page.

 

PAPERSIZE would mostly be appropriate to output destinations that emulate print output such as PDF or RTF. Depending on your currently open ODS destinations it would not effect destinations like HTML. I think that you want to set the Papersize before an ODS destination statement for consistent use.

DrAbhijeetSafai
Lapis Lazuli | Level 10

Thanks @ballardw  for rightly suggesting to use papersize option before ODS destination statement. That has allowed me to see that whatever I am doing is taking effect. However, I am still struggling to remove the warning. I will keep working on this and will you know once I am able to remove the warning.

 

In the meanwhile, if you or others wants to suggest me some other way to remove the warning, they are welcome. 

Thank you.

 

- Dr. Abhijeet Safai

Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real
DrAbhijeetSafai
Lapis Lazuli | Level 10

The problem is solved. What solved the problem is change of width and height at ods graphics options.

 

Earlier it was - ods graphics / width=1575 height=650 attrpriority=none;

 

which I changed to - ods graphics / width=900 height=450 attrpriority=none;

 

And that solved the problem. The warning is removed.

 

Thank you.

 

- Dr. Abhijeet Safai

Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real
Ksharp
Super User

You need put the following statement at top of your code.

 

ods _all_ close;
DrAbhijeetSafai
Lapis Lazuli | Level 10

Thanks @Ksharp for your response!

While

ods _all_ close;

is not there, but there is 

ods listing close;

and that is doing the work I think. However, I have also added ods _all_ close; now.

 

Thanks once again @Ksharp 

 

- Dr. Abhijeet Safai

Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 5 replies
  • 978 views
  • 1 like
  • 3 in conversation