Hello,
We have defined datestyle setting as 'MDY' in sasv9_usermods.cfg under /sas/config/Lev1/SASApp. We do have two server i.e. Workspace server and Batch server under the SASApp directory
/sas/config/Lev1/SASApp/WorkspaceServer
/sas/config/Lev1/SASApp/BatchServer
My understanding is that datestyle setting defined in the top level config file (/sas/config/Lev1/SASApp/sasv9_usermods.cfg) will automatically drilled down to Workspace server and Batch server. But I see different results in both.
I have launced workspace server session and trigerred
proc options option=datestyle value;run;
From the log, I got as below
SAS(r) Proprietary Software Release 9.4 TS1M7
Option Value Information for SAS Option DATESTYLE
Value : MDY
Scope : SAS Session
How option Value Set : Config Value
Config File name : /sas/config/Lev1/SASApp/sasv9_usermods.cfg
I have launced Batch server session and trigerred
proc options option=datestyle value;run;
From the log, I got as below
SAS(r) Proprietary Software Release 9.4 TS1M7
Option Value Information for SAS Option DATESTYLE
Value : DMY
Scope : Default
How option Value Set : Locale
I assume datestyle option on the batch server is considered from the locale setting of the linux server ( where we installed SAS ). I cross verfied all the config file under Batch server and dont see anywhere we have defined this datestyle option. So not sure why it is considered from locale.
Please do let me know if you have answer. Thanks.
Thank you @gwootton for your response.
The output of the code from the batch server didnot give me this path and the workspace server does.
/sas/config/Lev1/SASApp/sasv9_usermods.cfg
Thats the reason I think thats the difference in proc option output.
I have to edit my sasbatch.sh script to include in path under SASCFGPATH variable.
Thank you so much.
Tips from a seasoned SAS 9.4 admin:
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.