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;
Omit the second ods html statement. You are sending your output to a file that is not part of the frameset.
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.
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.
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.
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 ?
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?
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
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.
Even i am facing the same issue.Let me know if you got the solution.
@_Gaurav_ wrote:
Even i am facing the same issue.Let me know if you got the solution.
Please post your question in a new thread and in the proper form (examples of data, code and expected vs. real results). Old posts get next to no attention, because they are only visible for the contributors.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.