That "-sysin "C:\my path route\my program.sas" options is the instruction to run in batch mode with that specific source.
Remove it and you have you interactive editor again. Still creating that additional log (session based)
It could be that somewhere those "my program.log" and "my program.lst" have been created in the current directory of sas of that moment.
You had your additional log and lst... But not able to see them,
You can also send your log to a file using proc printto. I ran a search and there is a conversation or two about printto.
Thanks guys, works fine although I can`t insert the month name in the log file, if I rename as "mylog_%B.LOG" or "mylog_#B.LOG" , when I open SAS it display mylog. and the percent or ampersand sign, not the August month.
Is possible that these options are avaivable only for log and not for atlog?
Thanks in advanced.
Tha's right.
early releases of SAS9 didn't support it for ALTLOG.
Even 9.4 supports it for altlog only when running sas display manager
OK, so It's done.
Thanks all for your support.
The naming like %B #B are coming form "C" and java conventions. I already stated I did not trust them to work in base. Seen them becoming documented when all the logging with EIP (metadata) was introduced (9.1.3). Node to see it works with base 9.4 Windows. What always has worked is using OS-scripting the sasown.bat or sasown.cnd approach.
Use those OS environmentvariables in the SAS physical datasetnamesusing a ! ( exclamationpoint).
An OS script Windows Could be like:
....
SET saspdrv= <<< where your sas is isntalledc
SET sashdrv=%userprofile%\MY_SASfiles
IF EXIST %sashdrv%\BATCH\SAS.bat CALL %sashdrv%\BATCH\SAS.BAT
START /HIGH "sas" "%saspdrv%\SAS.exe" %sasconfg% %sasautos% %sastitle% %sasoptns% %1 %2 %3 %4 %5 %6 %7 %8 %9
@echo sasv9.bat %sasprgm% Stopped: %date% - %time% Return Code Value: %errorlevel% >> %sashdrv%\sasulog.log
Thanks Jaap
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.