Invoking SAS 9.2 to edit a program from the command line (windows)
问题 I've been Googling for an hour and can't find what should be the easiest thing. I want to invoke SAS from the command line to edit a SAS program. If I do this: C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe mysasprogram.sas it simply executes mysasprogram.sas. Help! Thanks! 回答1: Create files: E:\sasedit.bat set _pgm=%1 start "start" "C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -autoexec "E:\autoexec.sas" E:\autoexec.sas %let _pgm=%sysget(_pgm); dm "whost;include '&_pgm';";