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
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
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.
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
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
You need put the following statement at top of your code.
ods _all_ close;
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
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.