BookmarkSubscribeRSS Feed
devi001
Calcite | Level 5

Hi All,

 

Please guide me how to enable Batch server logs in SAS (9.4 Windows) PDC image so that log file will be generate at  ../SASApp/BatchServer/Logs location.

 

Thanks in advance!

2 REPLIES 2
gwootton
SAS Super FREQ
This is passed when a job is scheduled in SAS Management Console using the -LOG option. If you are not scheduling but running sasbatch.sh manually you might need to just add the -log option pointing to the path and your job name. The batch server's logconfig.xml should append a datestamp and ".log" to that. So for example when you deploy a job in SAS Management console the command it builds looks like this:
<path-to-BatchServer>/sasbatch.sh -log <path-to-BatchServer>/Logs/<JobName>_ -batch -noterminal -logparm "rollover=session" -sysin <path-to-SAS-program>
--
Greg Wootton | Principal Systems Technical Support Engineer
SASKiwi
Opal | Level 21

What scheduler are you using to start the batch jobs? In the case of LSF at least logs are set up automatically and you can configure the log location in SMC.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 435 views
  • 0 likes
  • 3 in conversation