Hey folks,
I am trying to create some dynamically named HTML files from our crash intersection data (one html page per intersection), and I'm having real difficulty getting sas to understand what my file should be called. The name is generally , where CITY = the city, and INTERSECTION = the name of the two roads crossing each other.
Here is my code right now (I've tried several permutations):
fName = compress("\\Dgrfs-0/pgms/tsb/upid7/upid7_html/&cityName._") || compress(compress(scan(fileStart2, 3, '<>'),'&')) || ".html";
putlog fName;
rc=filename("out",fName);
file out lrecl=&linesize. notitle noprint;
So the idea is that out will change dynamically to the new file name. The reality is that out.dat and fName.dat get created instead.
Also, this can't be done in the macro step because my intersections are dynamically created in my data, and not pre-known.
Any ideas?
Thanks much,
-Jim