BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jakarman
Barite | Level 11

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,

---->-- ja karman --<-----
jwillis
Quartz | Level 8

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.


SergioSanchez
Calcite | Level 5

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.

Peter_C
Rhodochrosite | Level 12

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

SergioSanchez
Calcite | Level 5

OK, so It's done.

Thanks all for your support.

jakarman
Barite | Level 11

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

---->-- ja karman --<-----
SergioSanchez
Calcite | Level 5

Thanks Jaap

Smiley Wink

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 21 replies
  • 5202 views
  • 15 likes
  • 5 in conversation