Hi,
1) I know a SAS code written in UNIX has used following option to print working directory in SAS output.
%sysget(PWD)
I am looking for similar option for windows which can print my windows directory in my SAS output. I also like to know if there is any option available, how will it print the output. It will print "C:/USER" or if I am working on shared drive it will print "//mxit12/USER".
2) I also like to know the macro variable or any other option to print the name of current SAS code I am running in output. For example if I am running code jig1.sas then it will print jig1.sas in output and then next I am running jig2.sas, it should print jig2.sas in output. I thought following macro variable does the same.
%sysfunc(scan(&SYSPROCESSNAME,2))
But it always gives me "PROCESS" in return instead of SAS code name.
Thanks,
Jig.