BookmarkSubscribeRSS Feed
vicky07
Quartz | Level 8

Hi,

 

I am using SAS 9.3 version and I am trying to output some data to excel starting from a particular row and column number. In the attached excel screenshot I have two reports. The first one is starting at Column B Row 3 and the second report is starting at Column G Row 3 and so forth. 

 

Could someone show how to direct SAS to start printing the report from a particular row and column cell in excel. Thanks for your help!

 

 


excel.JPG
3 REPLIES 3
Reeza
Super User

You can't easily. You can try specifying the RANGE option when exporting.

 

There's a macro that works well though:

http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export

vicky07
Quartz | Level 8

Okay, I will go through the link and give it a try. Thank You!

RW9
Diamond | Level 26 RW9
Diamond | Level 26

As an alternative, export your data to CSV, then use Excel VBA to read in the Excel and process into your Excel template.  

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3 replies
  • 1662 views
  • 0 likes
  • 3 in conversation