SAS spawner 使用

类别:编程语言 点击:0 评论:0 推荐:


1.安装 spawner 服务:

cd/d "sasroot dir"
spawner -c tcp -security -install

若改变默认监听的23号端口,则须定义一个服务端口,如myport
spawner -c tcp -security -service myport -install

2.交互式起spawner:

spawner -c tcp -security

3.在windows上添加一个用于signon的用户,须具有“允许按批作业登录”权限


4.signon时
若23口,则
%let tcpsec=_prompt_;或%let tcpsec=user.pass;
signon hostname;

若非23口,则
%let tcpsec=_prompt_;或%let tcpsec=user.pass;
signon hostname.myport;

5.向远端SAS提交语句要用rsubmit,如:
        rsubmit;                                                                                                                       
             libname crlibm  "&libpath";                                                                                               
        endrsubmit;                                                                                                                    

6。若要把远端的库引用到本地,可使用如下命令
        libname 本地库名 server=服务器名  SLIBREF=远端库名;                                                                                     
7.关闭远端连接,使用如下命令
    signoff hostname;

本文地址:http://com.8s8s.com/it/it22445.htm