[CMS-PIPELINES] reversing *parts* of a record

2009-08-25 Thread Shimon Lebowitz
I am trying to deal with a problem apparently created for me by Mr. Gates Co. I need to send files from CMS to end users on PCs, where the files contain data which represents Hebrew characters. I gave SMTP a translation table which converts the EBCDIC representation of Hebrew to the ASCII used

Re: [CMS-PIPELINES] reversing *parts* of a record

2009-08-25 Thread John P. Hartmann
3WAY gets you one range of a record. You'll need two, the second on the tertiary output from the first. |w1: 3way w4 |g1: gather \w1: |reverse |g1: \w1: |w2: 3way w-2 |g1: \w2: |reverse |g1: \w2: |g1: j. 2009/8/25 Shimon Lebowitz shimon...@gmail.com: I am trying to deal with a problem

Re: [CMS-PIPELINES] reversing *parts* of a record

2009-08-25 Thread Bob Cronin
Couldn't you use Specs to do this? Assign those parts of the record that need to be reversed to a variable and use print reverse(var) to build the output record? For example PIPE Strliteral /abcdefg 12345 hijklmn 6789/ | Specs a: w1 . b: w3 . print reverse(a) 1 w2 nw print reverse(b) nw w4 nw

Re: [CMS-PIPELINES] reversing *parts* of a record

2009-08-25 Thread Michael Harding
While all-pipes solutions are usually elegant and always inherently cool, either Bob's or the Piper's could be a challenge to build dynamically. I'd probably use one or the other - or something similar - for a fixed case, but I think Shimon's search for a generalized solution would be more easily

Re: [CMS-PIPELINES] reversing *parts* of a record

2009-08-25 Thread Shimon Lebowitz
That was what I ended up doing. A REXX stage that performs a loop on each record, using a parse template with variables as positional parsing points, and the rexx reverse function. It is fully adaptable to any number of fields, in any columns. I have not done any measurements, but it 'feels' quick

Re: [CMS-PIPELINES] reversing *parts* of a record

2009-08-25 Thread Glenn Knickerbocker
Rob van der Heij wrote: son of zone stage that has the 3way topology of John under the covers (with addpipe, in case you want to make it yourself). You use it like this: sozone 22-31 reverse | sozone 48-56 reverse I didn't think of this last year when you posted it as 3LIGHT, but it could be