On Fri, 2008-06-06 at 12:17 -0400, Quay, Jonathan (IHG) wrote: > I'm trying to move beyond apprentice plumbing and develop some > journeyman skills. I've mastered the built in stages, mutistreaming and > heavy spec manipulation. But I find myself ending a pipe, saving the > stream to disk, and dropping back into rexx to do things. What is the > proper way, based on data flowing through a pipe, to manipulate the > environment outside the pipe, using things such as CP and CMS commands, > while keeping the records flowing? For example, TAPE manipulation, > LINKing disks, setting up the device you're going to drive, etc. I've > looked through the Author's Edition, but can't really figure it out. Is > there some tutorial material somewhere that would help? > Jonathan, there's almost never a reason to store your PIPE results in an EXEC to manipulate them as you describe. You can instead write a pipeline stage in REXX and process the data as they flow through that stage. Your REXX pipeline stage can get control before data start streaming through the pipeline to do things like manipulating tapes and linking disks. May I immodestly suggest that you look at my papers on the CMS Pipelines Web page, starting with "Plunging into Pipes" and "Plunging On"? The Web page is:
http://vm.marist.edu/~pipeline/ Melinda Varian
