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

Macro variable in file path

Regular Contributor
Posts: 184

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: 11,343

Re: Macro variable in file path


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
  • 2 in conversation