eomnl / sas-jobmon

EOM SAS Job Monitor
GNU General Public License v3.0
10 stars 7 forks source link

Some flows scheduled with print-output (.lst) on AppServers are not shown in Job Monitor #18

Closed StefEOM closed 1 year ago

StefEOM commented 1 year ago

Some flows that are scheduled with a print option ("...\BatchServer\sasbatch.bat" -log "...log" -print "....lst" -batch ...") are not shown in Job Monitor. This can happen, when the print-option command (*.lst) includes a blank. For example when the AppServer-(folder)name contains a blank (C:\SAS\SASConfig\SASApp Unicode\print.lst)

bheinsius commented 1 year ago

Please supply the fix

StefEOM commented 1 year ago

In dimon_pre.bat please remove the quotes around DIMON_SASLSTFILE!

So, change line 121-122 from:

IF DEFINED DIMON_SASLOGFILE SET DIMON_SETSASLOGFILE=-set SASLOGFILE "!DIMON_SASLOGFILE!"  
IF DEFINED DIMON_SASLSTFILE SET DIMON_SETSASLSTFILE=-set SASLSTFILE "!DIMON_SASLSTFILE!"

to:

IF DEFINED DIMON_SASLOGFILE SET DIMON_SETSASLOGFILE=-set SASLOGFILE "!DIMON_SASLOGFILE!"  
IF DEFINED DIMON_SASLSTFILE SET DIMON_SETSASLSTFILE=-set SASLSTFILE !DIMON_SASLSTFILE!

image becomes: image