Allocating External Files to a Pipe

BatchPipes offers a way to connect jobs so that data from one job can move to another job without going to DASD or tape. SAS permits both SAS data sets and external files to be written and read with BatchPipes.
Note: To use BatchPipes with SAS on z/OS, make sure the BatchPipes service is running before you start your SAS session.
To write an external file using BatchPipes:
     //jobname  JOB   jobinfo...
     //        EXEC  SAS9
     //*
     //PIPESND DD DSN=TEST.SAS.EXTFILE.BATCHPIPES,
     //        LRECL=80,BLKSIZE=3120,RECFM=FB,
     //        DISP=NEW,
     //        SUBSYS=(BP01,CLOSESYNC)
     //*
     //SYSIN   DD *
       data _null_;
          file pipesnd;
          put " Line 1 ";
          put " Line 2 ";
       run;
     /*
     //
To read an external file using BatchPipes:
     //jobname  JOB   jobinfo...
     //        EXEC  SAS9
     //*
     //PIPERCV DD DSN=TEST.SAS.EXTFILE.BATCHPIPES,
     //        DISP=OLD,
     //        SUBSYS=(BP01,CLOSESYNC)
     //*
     //SYSIN   DD *
       data _null_;
          infile pipercv;
          input;
          list;
       run;
     /*
     //
See the IBM documentation about BatchPipes z/OS for more information.