Flipping through the manuals, and testing it, that does seem to be easy enough.

But rather than the number of entries per volume (Word1) , prepending the 
number of entries per subpool (Word6) would require...



Well, I imagine after the JUXTAPOSE  (so the Volser and Device-type are now 
part of each record, see below) , there would have to be a SPEC to put the 
Subpool in front, and then a SORT (so the Subpools are grouped).  And that's 
about as far as I've managed.



So, trying to go from:

"

AA1A11 3390   2          54         55    POOLA

AA1A11 3390   2          194        195   POOLA

AA1A11 3390   1          614        614   POOLA

BB2B22 3390   500        1          500   POOLB

BB2B22 3390   165        1040       1204  POOLB

BB2B22 3390   5          1706       1710  POOLB

"



To:

"

1 POOLA AA1A11 3390   2          54         55

2 POOLA AA1A11 3390   2          194        195

3 POOLA AA1A11 3390   1          614        614

1 POOLB BB2B22 3390   500        1          500

2 POOLB BB2B22 3390   165        1040       1204

3 POOLB BB2B22 3390   5          1706       1710

"





Or just straight to the VARSET compatible format:

"

/POOLA.1/AA1A11 3390   2          54         55

/POOLA.2/AA1A11 3390   2          194        195

/POOLA.3/AA1A11 3390   1          614        614

/POOLB.1/BB2B22 3390   500        1          500

/POOLB.2/BB2B22 3390   165        1040       1204

/POOLB.3/BB2B22 3390   5          1706       1710

"





Perhaps this would involve one of the more complicated usages of SPEC that Mike 
alluded to?





--Shawn S.





-----Original Message-----
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Rob van der Heij
Sent: Thursday, September 22, 2016 11:32 AM
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: [CMS-PIPELINES] Not-always-directly-sequential record references 
in PIPEs



> Juxtapose.  Beautiful!

>

> After that bit of processing, I'm left with records containing 6 
> space-delineated words.

>

> Is it even possible to have PIPE append the record into a STEM where the 
> stem's name is Word6 in the record?



Look at VARSET for that. Basically you create records that can set the 
variables.

You might even need the COUNT option of JUXTAPOSE to number the entries per 
volume...



But it is probably much easier to do the rest of your processing in the 
pipeline as well rather than fill in the REXX variables and loop through them.



He says, after writing a single 10 line pipe that re-allocates mini disks on a 
set of new volumes ;-)



Sir Rob the Plumber

Reply via email to