BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
PaalNavestad
Pyrite | Level 9

Hi, I have to create data in a sepcific form in Excel. I need blank rows and blank columns to conform with some Excel Macros that are using the data. I can easily create the structure, but when I'm outputting the data I get missing represented as . instead of balnk as the macro need.

 

I'm pretty certain that I seen some tips on this before but can't find them now. 

 

Can somebody please point me in the right direction

 

1 ACCEPTED SOLUTION
4 REPLIES 4
PaalNavestad
Pyrite | Level 9

Thanks a million Kurt, i knew there was an option but colud not find i. Searched for printmiss. 

I created the excel file as below. (Lot's of code above the get the data in the right way.  The challenge here was the spacer column. That could have been solved by creating the data with space culmn as a char column. However I also need blank lines to fit a format, and then the '.' representation would create havoc. Again thanks a lot

 

PaalNavestad_0-1642057494924.png

 

 

proc sort data = work.struct_withNbrsSum_trsp;
	by group shipper_id;
run;
options missing=" ";
ods excel file = '/shared/winshare/teams_no/SAS_General/subsurface/prod/GGRE_OUT/STFMonthlyShipper/testxlsx.xlsx' 
	 options(sheet_interval="bygroup"
           suppress_bylines="yes"
           sheet_label=" "
           embedded_titles="yes"
           embed_titles_once="yes" 
           );

proc print data=work.struct_withNbrsSum_trsp ;
	by group;
	
run;

ods excel close;
japelin
Rhodochrosite | Level 12
try use " options missing=''; "
PaalNavestad
Pyrite | Level 9

Thanks a lot I had already gotten the tip and it works. 

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
  • 4 replies
  • 351 views
  • 2 likes
  • 3 in conversation