Desktop productivity for business analysts and programmers

example :ods html

Accepted Solution Solved
Reply
Contributor
Posts: 43
Accepted Solution

example :ods html

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!


Accepted Solutions
Solution
‎03-20-2014 01:14 AM
SAS Super FREQ
Posts: 8,719

Re: example :ods html

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


All Replies
Solution
‎03-20-2014 01:14 AM
SAS Super FREQ
Posts: 8,719

Re: example :ods html

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

Contributor
Posts: 43

Re: example :ods html

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

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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