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
(2) Inthe first SAS session(Server), submit the following statements
- filename channel namepipe '\\.\pipe\test'
- server eofconnect retry=20;
- data parent;
- infile channel;
- input machine $ message $ time $;
- run;
- filename channel namepipe '\\.\pipe\test'
- client retry=-1;
- data child1;
- input machine $ message $;
- time=datetime();
- format time datetime.;
- file channel;
- put machine $ message $ time $;
- datalines;
- 进程1 hello
- 进程1 good
- 进程1 bad
- ;
- run;
- filename channel namepipe '\\.\pipe\test'
- client retry=-1;
- data child2;
- input machine $ message $;
- time=datetime();
- format time datetime.;
- file channel;
- put machine $ message $ time $;
- datalines;
- 进程2 I
- 进程2 Miss
- 进程2 U
- ;
- run;
Hope further discuss distributed using name pipes



雷达卡



京公网安备 11010802022788号







