BookmarkSubscribeRSS Feed
Eva
Quartz | Level 8 Eva
Quartz | Level 8
Hello!

I have a Stored Process which I display in the SAS portal. When I display two or more proc reports or graphics there is always a horizontal line displayed between two of them. When I view the created HTML code there is
.

How can I erase these horizontal lines?

Best regards
Eva
4 REPLIES 4
Cynthia_sas
Diamond | Level 26
Hi:
This Tech Support note shows how you'd have to change the STYLE template used by SAS (if you decided to change the style template):
http://support.sas.com/kb/23/340.html

And this paper from NESUG shows how to use a customized template with a stored process:
http://support.sas.com/rnd/papers/regional08/SP_Template.pdf (even though the paper talks explicitly about tagset templates, the same general rules apply for defining the item store, writing the template to the item store, etc.

In your case, you would NOT be creating a tagset template, so your _ODSDEST reserved parameter would NOT change. However, your _ODSSTYLE parameter would change. If your company is using CSS files instead of SAS Style templates to style your stored processes, then a CSS solution, may work for you, as described here:
http://support.sas.com/kb/23/630.html

If you need more help with this task, I suggest you contact Tech Support.

cynthia
Eva
Quartz | Level 8 Eva
Quartz | Level 8
Hello Cynthia,

thanx for your answer! I tried

proc template;
define style styles.nobreak;
parent=styles.default;
style Body from Body /
Pagebreakhtml=_undef_;
end;
run;

Yet I get the following error:
Template 'Styles.Nobreak' was unable to write to template store!

What do I need here?

Best regards
Eva
Cynthia_sas
Diamond | Level 26
Hi:
Also see my NESUG paper link in the first posting. Your item store must be in a WRITEABLE location on your server (default name SASMAIN). Generally the best place is down under the LEV1 directory where the format library and macro autocall library are located, so that your code needed by SAS stored processes is all in one general vicinity for backup and maintenance purposes.

You will need the ODS PATH statement, but you will also need a "hard-coded" LIBNAME statement for this server location for the template item store. You cannot use the META libname engine to point to the template location. Without an ODS PATH statement, PROC TEMPLATE is trying to write to SASUSER.TEMPLAT, which is probably not available, or if available, not writeable on your SP server.

Another alternative would be to define your template in the WORK location it would have to be done in your SP and done BEFORE the %stpbegin. But, that also means no other SP could use that same style without having the same Proc Template code in the SP itself. So this is really not a long term solution.

You might want to work with Tech Support on this issue, as they could follow your track from beginning to end until you get everything working.

cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1930 views
  • 0 likes
  • 3 in conversation