SAS: Configuration de SAS Client avec autoexec.sas

SAS peut être installer en Client – Serveur.
Lancer:

gpedit.msc

GPEdit

Naviguer vers :

Computer Configuration – Windows Settings – Security Settings – Local Policies – User Right Managements

Log on  as batch job

Logonasabatchjob

Ajouter le groupe ou le user qui aura accès à SAS
Cliquer Sur « OK »
Ouvrir avec un éditeur de texte le fichier

C:\WINDOWS\system32\drivers\etc\service

Ajouter la ligne suivant en fin de fichier:

shr1 5010/tcp # SAS/Share server 1

Lancer une invite de commande (cmd)
Naviguer vers \SAS Institute\SAS\V8
Lancer :

spawner.exe -i -c tcp -service shr1

Afin de vérifier la bonne exécution :

Lancer la console services.msc
Un service « SAS Job Spawner » doit être présent.

service_sas

Démarrer le service afin de valider son fonctionnement
Le Client se connecte à l’aide du fichier de configuration autoexec.sas à placer dans \SAS Institute\SAS\V8

Exemple de fichier autoexec.sas :

signoff;
options notes source ;
%let serveur =  ip ;
options comamid=tcp;
options remote=serveur;
filename rlink ‘D:\APPLI\SAS Institute\SAS\V8\connect\saslink\tcpunix.scr’;
signon rlink;
/*********************************************************************************************/
/***    Allocation des libraries                                                           ***/
/*********************************************************************************************/
rsubmit;
%let dwh_id = USER_LEC;
%let dwh_pw = USER_LEC;
%let dwh_sc = DB;
%let dwh_pt = DB;
libname dwh oracle user=&dwh_id. password=&dwh_pw. path=&dwh_pt. show_synonyms = yes;
endrsubmit;
libname dwh slibref = dwh server = serveur;
libname works slibref= work server = serveur;
This entry was posted in SAS and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>