- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Include the NOTAB option in your file statement and you shouldn't have a problem.
If you do, post your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
and file.
Filename xl dde "&xlfile." notab lrecl =2500;
Data _null_; set dat ; file xl notab; /* with or without */
If _n_ = 1 then put 'report month'n 'claim count'n;
##- Please type your reply above this line. Simple formatting, no
attachments. -##
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you want to write those variable names as column headers to the Excel table. In this case the name literals don't make sense. Please try this:
if _n_ = 1 then put 'report month' '09'x 'claim count';
If something doesn't work, please provide more details (log messages, the output you get, ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Don't use DDE - its old (very), and not supported, plus doesn't work on some setups. Plus you have all the limitations associated with Excel 95. Why do you need to use it? Proc export works ok, then there is tagsets.excelxp, which allows a lot of customisation even if it does create XML rather than a native XML XLSX file. Then there is libname to Excel, then there is CSV, ... in fact there are so many options which are better than DDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Don't use blanks in variable names. Use the labels for descriptive text, and put those in your output when necessary.
Blanks in identifiers (variable names, file names etc) only cause additional work, make programs less readable and serve no purpose.