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

Please get me one working example for ods html with path= , body=, contents= and frame= specifications on SAS enterprise guide 6.1  for professionals. Is there any way to specify the files on  my computer instead of sas server. Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  Sorry, you cannot write files to your local computer using SAS OnDemand for Professionals or SAS OnDemand for Academics. You can write to your user directory on the server. The sample code for using the options you describe (in a local SAS session or where SAS can write to a directory on your machine) would be:

     

ods _all_ close;

   

ods html path='c:\temp' (url=none)  /* local machine example */

    file='mybod.html'

    frame='myfrm.html'

    contents='mytoc.html'

    style=sasweb;

proc print data=sashelp.class;

run;
    

proc print data=sashelp.cars(obs=10);

run;
    

proc print data=sashelp.shoes(obs=10);

run;
      

ods html close;

     

  However, even if you change the code to run on your SAS OnDemand for Professionals server, I am not sure that you will be able to download all 3 files (the body= file, the frame= file and the contents= file) to your local machine. The issue that you might possibly have is that the files could get created correctly on the server file system, but you might have a problem downloading them to your local machine. The value that you need for the PATH= option on the OnDemand server would be something like:

    path='/home/username/user' (url=none)

  where username would be replaced in the above code with your username for the OnDemand server. I am not in a place where I can connect to my OnDemand server right now. So your best resource for this question might Tech Support.

  But, generally, this type of "standard" HTML is not favored by webmasters. You should always ask your webmaster before you create these types of files. The type of HTML that ODS creates is standard HTML 4.0 frame navigation tags. In this day and age of JavaScript and dynamic HTML and autoexpanding navigation choices when you float over an area on the screen, plain vanilla HTML is not used much on corporate web site. And, what you create with ODS is a set of 3 related files, in the above example: mybod.html, myfrm.html and mytoc.html. You must open the myfrm.html file in your browser, which then calls the other 2 files. This means that you must move all 3 files together before you can view them as a "frame" in the browser.

  If you really need to create HTML FRAME files on the OnDemand server, I think your best bet for help is to work with Tech Support.

cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  Sorry, you cannot write files to your local computer using SAS OnDemand for Professionals or SAS OnDemand for Academics. You can write to your user directory on the server. The sample code for using the options you describe (in a local SAS session or where SAS can write to a directory on your machine) would be:

     

ods _all_ close;

   

ods html path='c:\temp' (url=none)  /* local machine example */

    file='mybod.html'

    frame='myfrm.html'

    contents='mytoc.html'

    style=sasweb;

proc print data=sashelp.class;

run;
    

proc print data=sashelp.cars(obs=10);

run;
    

proc print data=sashelp.shoes(obs=10);

run;
      

ods html close;

     

  However, even if you change the code to run on your SAS OnDemand for Professionals server, I am not sure that you will be able to download all 3 files (the body= file, the frame= file and the contents= file) to your local machine. The issue that you might possibly have is that the files could get created correctly on the server file system, but you might have a problem downloading them to your local machine. The value that you need for the PATH= option on the OnDemand server would be something like:

    path='/home/username/user' (url=none)

  where username would be replaced in the above code with your username for the OnDemand server. I am not in a place where I can connect to my OnDemand server right now. So your best resource for this question might Tech Support.

  But, generally, this type of "standard" HTML is not favored by webmasters. You should always ask your webmaster before you create these types of files. The type of HTML that ODS creates is standard HTML 4.0 frame navigation tags. In this day and age of JavaScript and dynamic HTML and autoexpanding navigation choices when you float over an area on the screen, plain vanilla HTML is not used much on corporate web site. And, what you create with ODS is a set of 3 related files, in the above example: mybod.html, myfrm.html and mytoc.html. You must open the myfrm.html file in your browser, which then calls the other 2 files. This means that you must move all 3 files together before you can view them as a "frame" in the browser.

  If you really need to create HTML FRAME files on the OnDemand server, I think your best bet for help is to work with Tech Support.

cynthia

JVarghese
Obsidian | Level 7

Thank you Cynthia, You gave me more info than I wanted. Thanks!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1125 views
  • 0 likes
  • 2 in conversation