/* ----------- DATA Step - Process P1 ----- */ signon p1 sascmd='!sascmd'; rsubmit p1 wait=no; libname outLib sasesock ":pipe1"; /* create data set - and write to pipe */ data outLib.Intermediate; do i=1 to 5; put 'Writing row ' i; output; end; run; endrsubmit; rdisplay p1; /* ----------- DATA Step - Process P2 ----- */ signon p2 sascmd='!sascmd'; rsubmit p2 wait=no; libname inLib sasesock ":pipe1"; libname outLib "d:\temp"; data outLib.Final; set inLib.Intermediate; do j=1 to 5; put 'Adding data ' j; n2 = j*2; output; end; run; endrsubmit; rdisplay p2; /* -------------------------------------------- */