*! vlog ver 2.0 09sep2009
*! Opens named log -total- in the Viewer
*! Author: Svend Juul
program vlog
version 9
quietly log query total

if "`r(filename)'" == "" {
   display as error "No log file"
}
else {
   view "`r(filename)'"
}

end