Help using Base SAS procedures

How do I export and HTML File to a specific location in code

Reply
Contributor
Posts: 25

How do I export and HTML File to a specific location in code

I am trying to export an html file to s specific location and when I use ODS it put's it where I want but ignors my style:

ODS HTML BODY=\\sasmeta1\projects\mmc\warehouse\wdata\datasources\mailitattach\boarders.html

style=DicksStandard

Thanks,  -d

Frequent Contributor
Posts: 110

How do I export and HTML File to a specific location in code

this might be not a good answer. You could do like this.

apply style first then export the resulted html file.

Contributor
Posts: 25

How do I export and HTML File to a specific location in code

Well that would be fine if there was a view last executed code so that I could add the code to my codenode.  but alas it doesn;'y have that capability

SAS Super FREQ
Posts: 8,743

How do I export and HTML File to a specific location in code

Hi,

  Did you put the template in a location on your SAS server? (As opposed to a location on your C: drive??) If you are using SAS Enterprise Guide and the new style template is NOT on the server where SAS is located, then you may need to move or recreate the template on the server. (For example, if you used the Style Wizard in EG to create your DicksStandard style, you may need to move the CSS file created by the Style Wizard up to the server. Or, if you used PROC TEMPLATE code, you may have to get write access to a location on the server for the style template. You would point to the location of the template store with an ODS PATH statement.)

  Usually, if you are referencing a BODY= or FILE= location, you use a quoted string for a fully qualified name. I notice that you did not include quotes around your BODY= option.  But, since you said the HTML file was getting created, then I assume that you left off the quotes by accident.

  Also another possibility is that IF you did use the Style Wizard to make a CSS file (as opposed to using PROC TEMPLATE code to make a style template) and you did put the CSS file on the server, then you may need to use the STYLESHEET= or CSSSTYLE= option to point to the location of the CSS file. If you are using EG, it has a default location where it looks for CSS files and if you CSS file is not available when the HTML file is opened, you will not get an error message in the browser, but you won't get any style used, either.

  Might be time to work with Tech Support so they can look at your code and figure out which is the scenario that is impacting your output.

cynthia

Ask a Question
Discussion stats
  • 3 replies
  • 125 views
  • 0 likes
  • 3 in conversation