BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
freshstarter
Obsidian | Level 7

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.

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
I wasn't able to reproduce this in my M7 environment. Is the config file /sas/config/Lev1/SASApp/sasv9_usermods.cfg present in your config path in the batch server?
%put %sysget(SASCFGPATH);
proc option option=config; run;
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

5 REPLIES 5
gwootton
SAS Super FREQ
I wasn't able to reproduce this in my M7 environment. Is the config file /sas/config/Lev1/SASApp/sasv9_usermods.cfg present in your config path in the batch server?
%put %sysget(SASCFGPATH);
proc option option=config; run;
--
Greg Wootton | Principal Systems Technical Support Engineer
freshstarter
Obsidian | Level 7

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.

Kurt_Bremser
Super User

Tips from a seasoned SAS 9.4 admin:

  • do not use SASApp for your server context, create a new one and adapt it to your needs; keep SASApp as the original blueprint for future reference
  • never make edits to sasbatch.sh or similar scripts/configs; always make your edits in the respecive "usermods" extension files. The usermods files will not be overwritten during updates, the main files will be.
freshstarter
Obsidian | Level 7
Thank you
gwootton
SAS Super FREQ
The sasbatch.sh script should have the path present, so I would suspect it was edited in the past and this was removed. The below output is from my environment's BatchServer directory:

$ grep SASCFGPATH sasbatch.sh
SASCFGPATH="/opt/sas/config/Lev1/SASApp/sasv9.cfg, /opt/sas/config/Lev1/SASApp/sasv9_usermods.cfg, /opt/sas/config/Lev1/SASApp/BatchServer/sasv9.cfg, /opt/sas/config/Lev1/SASApp/BatchServer/sasv9_usermods.cfg"
export SASCFGPATH
--
Greg Wootton | Principal Systems Technical Support Engineer

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 

Get Started with SAS Information Catalog in SAS Viya

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.

Discussion stats
  • 5 replies
  • 2322 views
  • 1 like
  • 3 in conversation