Is there a way to get the name of the currently executing do-file into a macro? I had hoped to include the name of the do-file in the .log file name like this:

Code:
log using `0'-`1'
but unlike shell scripts, `0' is the argument list excluding the do-file name, not the name of the calling do-file. No points are awarded for suggesting I repeat the do file name as the first argument of the calling program.