• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 463
  • Last Modified:

Assigning a macro variable to a SAS Export Statement

I have a SAS Export Statement that I would like to assign a macro variable to the end of the file name.

%let compno = 01

How would I do this?
 filename_&compno.xls
0
morinia
Asked:
morinia
1 Solution
 
Aloysius LowCommented:
i assume your problem is with the filename not having an extension i.e. filename_01xls?

have 2 periods will solve this:
filename_&compno..xls
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now