HI Hope you are well I am using the below code to run a series of macros if run='Y' %macro pgrun(macro,run); %if %upcase("&run") eq "Y" %then %¯o; ; %mend pgrun; data _null_; set driver; if macro ne ''; call execute('%nrstr(%pgrun) (' !! macro !! ' , ' !! run !! ' );'); run; As above I am using the %nrstr option so any macros within macros are compiied correctly however I have found with the %nstr if I call a macro with a macro call within it can alter the text e.g. One macro call is processed as below: %pgrun (LABCONNECT((6-2-2014 102404 AM ) -13-0103 XFER) , Y ); but this should be %pgrun (LABCONNECT((6-2-2014 102404 AM ) - 13-0103 XFER) , Y ) which is processed if the %nrstr is removed i.e. the space after the '-' has been removed. '(6-2-2014 102404 AM ) - 13-0103 XFER' is the name of a text file I wish to import Can anyone help prevent this occurrence without having not to use the %nrstr option or simply amending the text file name so it is compatible Many thanks in advance Ben
... View more