SAS html output frame is blank

Reply
New Contributor
Posts: 4

SAS html output frame is blank

 

When I run this code I get the frame as blank, I tried in chrome and explorer as well

 

 

ods html path='/folders/myfolders/Testfiles/'
body='htmltest.html'
contents='contents.html'
frame='testframe.html';

 

ods html body='first.html';
proc print data=work.otptest;

run;


ods HTML close;

Super User
Posts: 8,590

Re: SAS html output frame is blank

Posted in reply to RajashreeP

Omit the second ods html statement. You are sending your output to a file that is not part of the frameset.

 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
New Contributor
Posts: 4

Re: SAS html output frame is blank

Posted in reply to KurtBremser

Thank you for your response, I have tried this code and found no change in the output.I am using SAS University addition does this affect anything on my output.

 

Note: I can see the output of contents and body as well.frame.PNGbody.PNGcontent.PNG

 

 

 

data work.test;
set sashelp.cars;
if Make='Acura';
run;

ods html path='/folders/myfolders/Testfiles/'
body='htmltest.html'
contents='contents.html'
frame='testframe.html';

proc print data=work.test;
run;

ods HTML close;

 

 

I appreciate the help. Thanks in advance.

Super User
Posts: 12,148

Re: SAS html output frame is blank

Posted in reply to RajashreeP

Your results picture shows there is a space after Testframe and Htmltest in the URL, the %20. The (5) would also mean the the frame, which may be looking for "htmltest.html" can't find it to dispaly because the file is actually named "htmltest (5).html".

So it appears that you are not showing the result of the example code or something is remapping file names on you.

New Contributor
Posts: 4

Re: SAS html output frame is blank

Thanks for the response. Now as suggested I have tried opening the file from the folder where it was created instead of downloading it and opening it. It is still a blank FRAME 

Body and contents show the data but not the FRAME. I really have been trying for this but could not see the output of frame for a simple program as well.

 

Please let me know if I need to change the code ?body.PNGcontent.PNGframe.PNG

Super User
Posts: 12,148

Re: SAS html output frame is blank

Posted in reply to RajashreeP

I am not sure why the URL is showing "File" but I suspect that is why the links from the frame aren't being opened.

I am using Internet Explorer and just clicking on the testframe.html in the output folder.

What browser are you using and how are you opening the testframe.html?

New Contributor
Posts: 4

Re: SAS html output frame is blank

[ Edited ]

I have opened it with internet explorer 11 and Google chrome.

I am opening the files from the SAS shared folder, which is the path where the file got created (path mentioned in the path=(option)). Also, I accessed the files by clicking on the file names from sas studio.  It is the same every time.

 

URL when opened with chrome:

file:///E:/SASUniversityEdition/myfolders/Testfiles/testframe.html

URL when opened with internet explorer:

E:\SASUniversityEdition\myfolders\Testfiles\testframe.html

Super User
Posts: 8,590

Re: SAS html output frame is blank

Posted in reply to RajashreeP

Look at the links in testframe.html with a text editor. You'll see that they contain the UNIX path names, which do not exist in that form on the Windows side.

Look at the base= option for the ods html statement.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 7 replies
  • 186 views
  • 0 likes
  • 3 in conversation