After initializing ./apm_init.sh , all sasv9_usermods.cfg file under SASAPP(BatchServer, ConnectServer, StoredProcessServer, WorkspaceServer, PooledWorkspaceServer) are getting updated with below line.
/* EMI_BEGIN */ /* Added by configureAPM at time and date stamp , DO NOT EDIT THESE LINES OR EMI TAGS */ -logconfigloc /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml /* EMI_END */ |
This change is effecting SAS batch jobs running using SAS scheduler. Below is the error message:-
ERROR: Invalid option value /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml for SAS option LOGCONFIGLOC.
ERROR: (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.
ERROR: Unable to initialize the SAS kernel.
can you please provide your sugessions to fix this problem.
@gwootton Thanks for your reply.
1. BatchServer/PerfLogs path is avialable.
2. User is having access to write logs into this path.
But still getting error message.
Pipe command =" SASHOME directory/9.4/sasexe/sas -autoexec /sasprogram directory/xxxxx.sas"
ERROR: Invalid option value /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml for SAS option LOGCONFIGLOC.
ERROR: (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.
ERROR: Unable to initialize the SAS kernel.
@gwootton yes, path is correct. it is having content also.
Try making sure this option is all on the same line and that the XML file exists.
-logconfigloc /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml
If that doesn't help then back out the change.
@SASKiwi Thank you for your reply.
logconfig.apm.xml is avialable.
-logconfigloc /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml
I tried to back out the change , but SAS Environment Manager Frame work processes (ACM and APM ETL processes ) are adding the line automatically for every 30 mins , even after removing it.
@cesargf80 - I suggest you track this to Tech Support.
Create a new copy of the file (logconfig.apm.xml )and make the new copy immutable (Not the original one)
Assign this to logconfigloc. Thus you will have-logconfigloc.
Thus if logconfig_imm.apm.xml is the immutable copy, then you will have.
/data/sasconfig/Lev1/SASApp/BatchServer/logconfig_imm.apm.xml.
This way the SAS Environment Manager Frame work processes can read it but not change.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.