03-04-2015 10:39 AM
The below code works fine when I don't use a macro but when try to build a macro to allow for different paths, flags, it fails to execute. Is my macro notation incorrect?
options orientation=landscape nodate nonumber;
ods listing gpath="H:\&folder.\";
ods pdf file="H:\&folder.\&flag..pdf" columns=2 style=meadow startpage=no;
ods graphics on/width=4.5in height=3.75in;
proc sgplot data=dataset( where=(&flag = "Y" ));
title "title ";
vbar level / response=exposure;
vline level / response=all_LR y2axis;
%exportgraphs(Under 10 levels,flag1);
03-05-2015 12:23 PM
Does the folder path exist before the code is run? i.e h:\Under 10 levels ? That could be an issue as well, or if the existing folder is named H:\ Under 10 levels (note space before Under) and if you are running on Unix then case of the folder name becomes an issue.