BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

Actually we are generating lot of Excel files using DDE. Unfortunately, we are launching the process at the SAS server and often it terminates by error (typically: Excel opens some interactive window and is waiting for a response - and that is a real problem by automatic processing).

Our intention is try to avoid the DDE usage and replace it by some technique that does not need to open Excel. (But we need to write into an EXISTING Excel spreadsheet, we also use Excel graphs... such solutions like ODS HTML does not serve us... 😞

I have found that theoretically one possibility is to use LIBNAME statement with Excel "Named ranges", but I do not achieve to write the data without varnames. Also I do not know if there is some limitation for the number of Named ranges in one Excel File.

Does anyone know how to solve this?
Is there any way how to omit the varnames when using LIBNAME (engine:xls) for output?
Or better: Is there any other elegant solution?

Thank you in advance!!

Jaroslav
3 REPLIES 3
jc671
Calcite | Level 5
I have the same problem using excel named ranges and sas libname excel engine. How to write to excel without varnames? I use SAS 9.1.3 Service Pack 4 and Excel 2003.

thank you,
JC
Cynthia_sas
Diamond | Level 26
The best reference I know about on using named ranges is this paper:
http://www2.sas.com/proceedings/sugi31/024-31.pdf

cynthia
Cynthia_sas
Diamond | Level 26
Hi:
The best reference on using named ranges is in this user group paper:
http://www2.sas.com/proceedings/sugi31/024-31.pdf

As for your question about VARNAMES, I believe that when the LIBNAME engine is appending data, it can write without VARNAMES -- but I think you may need a named range for that. This would be a question for Tech Support...since it's not entirely clear to me what you mean by omitting the varnames.

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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