楼主: zhou.wen
2644 5

[原创博文] Using the Name Pipes to Communicate among Different SAS Sessions [推广有奖]

已卖:4460份资源

教授

9%

还不是VIP/贵宾

-

TA的文库  其他...

SAS Technology

威望
0
论坛币
31987 个
通用积分
6.2141
学术水平
283 点
热心指数
262 点
信用等级
257 点
经验
56088 点
帖子
396
精华
4
在线时间
1328 小时
注册时间
2010-10-12
最后登录
2018-3-9

初级学术勋章 初级热心勋章 中级学术勋章 中级热心勋章

楼主
zhou.wen 发表于 2013-4-19 19:40:02 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

The named pipes capability is one of the most powerful tools available in SAS underWindows for communicating with other applications. In this blog, we discuss Communicationusing named pipes among SAS sessions to achieve the distributed structure.

(1)One Server Connected to Several Clients

struct.png

(2) Inthe first SAS session(Server), submit the following statements

  1. filename channel namepipe '\\.\pipe\test'
  2.          server eofconnect retry=20;
  3. data parent;
  4.    infile channel;   
  5.    input machine $ message $ time $;
  6. run;
复制代码
(3) Inthe second and third SAS session, you can use SAS statements to exchange data between the two SAS sessions. For example, you can submit the following program from the client session
  1. filename channel namepipe '\\.\pipe\test'
  2.          client retry=-1;
  3. data child1;
  4.    input machine $ message $;
  5.    time=datetime();
  6.    format time datetime.;
  7.    file channel;
  8.    put machine $ message $ time $;
  9.    datalines;
  10. 进程1 hello
  11. 进程1 good
  12. 进程1 bad
  13. ;
  14. run;
复制代码
  1. filename channel namepipe '\\.\pipe\test'
  2.          client retry=-1;
  3. data child2;
  4.    input machine $ message $;
  5.    time=datetime();
  6.    format time datetime.;
  7.    file channel;
  8.    put machine $ message $ time $;
  9.    datalines;
  10. 进程2 I
  11. 进程2 Miss
  12. 进程2 U
  13. ;
  14. run;
复制代码
(4)test begin
sassession.png result.png
Hope further discuss distributed using name pipes

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Communicate Different Sessions session DIFFER SAS

已有 3 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
webgu + 80 + 80 + 3 + 3 + 3 精彩帖子
zll_zh + 1 + 1 + 1 精彩帖子
Imasasor + 100 + 100 + 5 + 5 + 5 精彩帖子

总评分: 经验 + 180  论坛币 + 180  学术水平 + 9  热心指数 + 9  信用等级 + 9   查看全部评分

本帖被以下文库推荐

Practice Is The Best Teacher!

沙发
wodematlab 发表于 2013-4-19 19:53:39
太高级了~~

藤椅
zhou.wen 发表于 2013-4-19 19:57:14
pipe.jpg
Practice Is The Best Teacher!

板凳
zhentao 发表于 2013-4-20 09:12:12
不错,学习了。

报纸
suyouwoko 发表于 2013-4-20 09:29:29
厉害呀

地板
zll_zh 发表于 2013-5-24 13:04:14
高端

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-10 23:12