Adventures & experiences in contemporary technology
Recently, I was trying something like this and noted some odd behaviour:
put "text %sysfunc(pathname(work)) more text";
This is the kind of thing that I was getting:
text c:\sasworkmore text
In other words, the space after %sysfunc was being ignored and, since I was creating and executing a Windows batch file using SAS 8.2, the command line action wasn’t doing what was expected. The fix was simple but I reckoned that I’d share what I saw anyway, in case it helped anyone else:
x="text %sysfunc(pathname(work))"||" more text";
Please be aware that comment moderation is enabled and may delay the appearance of your contribution.