SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Macro variable in file path

Reply
Regular Contributor
Posts: 181

Macro variable in file path

I want to pass a macro variable in a file path.

ODS HTML FILE ="C:/User/" || &macrovariable || ".html";

Everything is same except filename. I have tried concatenating the remaining portion of the path with macro varible. But it seems not be working.

Super User
Posts: 10,500

Re: Macro variable in file path

Try

ODS HTML FILE ="C:/User/&macrovariable..html"; /* the first . is to tell the macro processor that you want to append some text and is needed to add the . into the name.

Ask a Question
Discussion stats
  • 1 reply
  • 3044 views
  • 0 likes
  • 2 in conversation