When I submit a sasgsub job to one of our two app server contexts, jobname.log file is not getting generated in the grid work directory. I even tried overriding the default grid work directory with a custom one with full control permissions on that folder ( I have full control over the default grid work as well), still that specific file .log alone is not generated. However, the job appears to run and complete successfully. My environment is SAS9.4M5 running on Windows. Also, I don't see this issue on other app server context. I have compared the .cfg files in sasgsub dir of both the server contexts and everything looks good.
Are there any other files in the work directory such as time.end.xxx or host.<hostname>? If so, that would indicate that the job's script (i.e., sasgrid.cmd) is able to write to the directory. If not, the user may not access to write to the share.
If the files do exist, but the *.log does not, a couple things could be wrong:
The processing is not using the logconfig.batch.xml file. This file will route the SAS log to the %SASGRIDWORKDIR%\%SASGRIDBATCHPGM%.log file (i.e., the SAS log in the job directory).
Check the grid_usermods.cfg.cmd file to make sure you are not overriding the LOGCONFIGLOC option.
Check the sasgrid.cmd file to make sure it has not been changed (compare against app server context that does work). Maybe the script is not adding the "-logconfigloc logconfig.batch.xml" option.
The logconfig.batch.xml file is incorrect. Check the logconfig.batch.xml file to make sure it has not changed (compare against app server context that does work). Maybe it is creating the file in the wrong place.
4) Check the grid_usermods.cfg.cmd file to make sure you are not overriding the LOGCONFIGLOC option.
Other files are generated except the .log. The log file is generated if I submit jobs to same app server context from the server itself using elevated account.
I don't see a grid_usermods.cfg.cmd file in ..\Lev1\AppServer\GridServer\ path. In grid.cfg.cmd, I see this -> set SASLOGCFGFILE=-logconfigloc "%SASGRIDCMDPATH%\logconfig.xml". I'm not sure, how %SASGRIDCMDPATH% is resolved though.
Is there any way to find the value of %SASGRIDCMDPATH%?
It seems like someone has modified the files. In reality, they should only change the grid_usermods.cfg.cmd file. If they added 'set SASLOGCONFIGFILE="%SASGRIDCMDPATH%\logconfig.xml"' then they probably modified the sasgrid.cmd file also and/or deleted the logconfig.batch.xml and logconfig.connect.xml files in the GridServer directory.
Since logconfig.xml is not a config file that SAS ships, I am guessing that it does not create the job logs like the logconfig.batch.xml file does which is why you are not seeing the log output.
You would probably need to find out the reason those files were modified the way they were. By fixing your problem, you may reintroduce a problem the previous changes were meant to fix.
You may want to talk to tech support to have them help sort out this problem.