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

Hello,

 

Is it possible to include the user and password as parameters using the sasbatch.sh command line?

 

Ex:

/SASCONFIG/Lev1/SASApp/BatchServer/sasbatch.sh -log /SASCONFIG/Lev1/SASApp/BatchServer/Logs/LOGFILE_TST_#Y.#m.#d_#H.#M.#s.log -batch -noterminal -logparm "rollover=session" -sysin /SASCONFIG/Lev1/SASApp/SASEnvironment/SASCode/Jobs/SASTest.sas

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

The SAS executable has no means to switch to another user, it will always run as the user who started it from the commandline.

Since the whole command used to start a program is open to the public (at least on UNIX systems), providing credentials via the commandline must not be done.

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

What user and password do you want to supply? Is it for accessing an external database or is it for some other purpose? How do you run sasbtch.sh - using a scheduler or manually from a command line? 

 

The SYSPARM command line option is one alternative.

Kurt_Bremser
Super User

The SAS executable has no means to switch to another user, it will always run as the user who started it from the commandline.

Since the whole command used to start a program is open to the public (at least on UNIX systems), providing credentials via the commandline must not be done.

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
  • 2 replies
  • 632 views
  • 3 likes
  • 3 in conversation