hi,
is it possible to set a default ods style for all stored processes that i execute through the SAS Stored Process Web Application?
currently, if I don't specify one I get the gray default style and have to specify a hidden prompt for _odsstyle on every stored process to change it.
thanks Bart
bump
You could use the request init facility that runs the code in the specified file before every stored process and just add something like this to the program:
%global _odsStyle;
%let _odsStyle = %sysfunc(&_odsStyle,sasweb);
which will leave any provided value alone, but if none is provided it will set it to (in this case) sasweb. Just change sasweb to whatever your desired style is.
i was hoping there would be a general option, looks like there is not.
your work-around may be the best option, thanks Don.
btw your code is syntactically incorrect:
15 %global _odsstyle;
16 %let _odsStyle = %sysfunc(&_odsStyle,sasweb);
ERROR: Function name missing in %SYSFUNC or %QSYSFUNC macro function reference.
Sorry, left out the coalescec function (which returns the first non-blank/non-missing argument):
%global _odsStyle;
%let _odsStyle = %sysfunc(coalescec(&_odsStyle,sasweb));
Information on the request init/term program:
Usage Note 39250: SAS® 9.2 Stored Process Server enhancements: Request Init and Term programs, Session Init and Term programs
http://support.sas.com/kb/39/250.html
Vince DelGobbo
SAS R&D
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.