02-29-2012 02:12 PM
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:
02-29-2012 08:12 PM
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
03-01-2012 12:07 AM
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.