BookmarkSubscribeRSS Feed
sunilreddy
Fluorite | Level 6

Using below in 9.4 stored process

Selected Execution result is both Stream and Package

code:

*ProcessBody;

ods listing close;

data _null_;

rc= stpsrv_header('Content-type', 'text/plain');

rc= stpsrv_header('Content-disposition', 'attachment;

filename= Admin - User and their roles.xls');

run;

%stpbegin;

proc report data=test;

run;

%stpend;

not using any ods statements in above stored process.

I am getting result in excel with exact column width, but not seeing grid lines as attached.

Any suggestions


grid lines.png
1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  But, behind the scenes %stpbegin and %stpend are using ODS. This question would be better posted in the Stored Process forum or worked with Tech Support. When you use a stored process, you RARELY need to change the STPSRV_HEADER type. And, generally, STPSRV_HEADER is only used by web-based clients. So if you are running the SP in Excel (using the SAS Add-in for Office) or in EG, it is entirely possible that the STPSRV_HEADER is being ignored. Grid lines come from either the client application's rendering of the stored process results based on the style used by the stored process. The default style is set by %stpbegin, based on the client application. My recommendation would be that you open a track with Tech Support. Figuring out your client application, your default style, your reason for using STPSRV_HEADER seems complicated for a forum posting and if your Platform settings are different from someone else's the chances are good that their suggestions won't be of much use to you.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 950 views
  • 1 like
  • 2 in conversation