Re: Sorting output from PIPE REXXVARS TOLOAD for dumping a stem variable

2008-05-06 Thread Rob van der Heij
On Tue, May 6, 2008 at 8:52 AM, Fred Schmidt <[EMAIL PROTECTED]> wrote: > > Ah, I got it to work by changing... > > spec ws = fs . substr f2 of w1 1.10 r 1-* n | sort 1.10 | substr 11-* Right. The "substr" stage is fairly new. It's a bit cheaper than a full "spec" stage. A popular alternative in t

Re: Sorting output from PIPE REXXVARS TOLOAD for dumping a stem variable

2008-05-05 Thread Fred Schmidt
Centre Services (DCS) Northern Territory Government, Australia - Forwarded by Fred Schmidt/DCIS/NTG on 06/05/2008 04:20 PM - Fred Schmidt/DCIS/NTG 06/05/2008 04:05 PM To IBMVM List cc Subject Re: Sorting output from PIPE REXXVARS TOLOAD for dumping a stem variable On Mon, 05 May 2008

Re: Sorting output from PIPE REXXVARS TOLOAD for dumping a stem variable

2008-05-05 Thread Fred Schmidt
On Mon, 05 May 2008 22:54:23 -0700, Rob van der Heij wrote: >What you do is you add an extra field to the record to sort them on, >and then drop that extra field again. Like this: >spec ws = fs . substr f2 of w1 1.10 r 1-* n | sort 1.10 | substr 11-* Thanks Rob, Is SUBSTR something I need to get

Re: Sorting output from PIPE REXXVARS TOLOAD for dumping a stem variable

2008-05-05 Thread Rob van der Heij
On Tue, May 6, 2008 at 7:26 AM, Fred Schmidt <[EMAIL PROTECTED]> wrote: > >PIPE rexxvars TOLOAD | pick 2.6 == /TABLE./ | sort | ... > > This, and the other proposed solutions to dumping stem variables' contents, > do not sort the values correctly if there are more than 9 values. Eg:... What you

Sorting output from PIPE REXXVARS TOLOAD for dumping a stem variable

2008-05-05 Thread Fred Schmidt
On Thu, 09 Nov 2006 19:45:36 -0800, Alan Ackerman wrote: (Was Re: Another PIPE how to) >REXXVARS TOLOAD produces strings like /TABLE.0101/value -- only there is >no guarantee that >the delimiter will be a slash. So instead, I always use: > >PIPE rexxvars TOLOAD | pick 2.6 == /TABLE./ | ... >