Re: PIPE stage that output word relative to another word

2010-08-04 Thread Leland Lucius
> > > > Frank M. Ramaekers Jr. > > > > > -- > > *From:* The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] *On > Behalf Of *Leland Lucius > *Sent:* Tuesday, August 03, 2010 3:09 PM > > *To:* IBMVM@LISTSERV.UARK.EDU > *Subject:* PIPE stage that output word

Re: PIPE stage that output word relative to another word

2010-08-03 Thread Leland Lucius
0 3:09 PM *To:* IBMVM@LISTSERV.UARK.EDU <mailto:IBMVM@LISTSERV.UARK.EDU> *Subject:* PIPE stage that output word relative to another word I know, I'm probably being stupid here, but I just can't seem to figure it out. Given something like: K1 V1 K2 V2 K3 V3

Re: PIPE stage that output word relative to another word

2010-08-03 Thread Scott Rohling
Sorry - I just use REXX: /* */ Arg input Parse VAR input . 'K3' gold . If gold <> '' Then Say found' gold Scott Rohling On Tue, Aug 3, 2010 at 2:09 PM, Leland Lucius wrote: > I know, I'm probably being stupid here, but I just can't seem to figure it > out. > > Given something like: > > K1 V1

Re: PIPE stage that output word relative to another word

2010-08-03 Thread Frank M. Ramaekers
, 2010 3:09 PM To: IBMVM@LISTSERV.UARK.EDU Subject: PIPE stage that output word relative to another word I know, I'm probably being stupid here, but I just can't seem to figure it out. Given something like: K1 V1 K2 V2 K3 V3 K4 V4 I want to be able pipe that "V3" to a VAR

Re: PIPE stage that output word relative to another word

2010-08-03 Thread Rich Smrcina
How about something like: word(string,( wordpos('K3',string) + 1 ) ) On 08/03/2010 03:09 PM, Leland Lucius wrote: I know, I'm probably being stupid here, but I just can't seem to figure it out. Given something like: K1 V1 K2 V2 K3 V3 K4 V4 I want to be able pipe that "V3" to a VAR stage. B

Re: PIPE stage that output word relative to another word

2010-08-03 Thread Kris Buelens
Your input is a bit unclear to me. Are these K1 etc records? Or words in a single record? And, what do you means with "relative to wheer K3 is"? Maybe look at SPLIT and then maybe BETWEEN /K3/ V3/ 2010/8/3 Leland Lucius > I know, I'm probably being stupid here, but I just can't seem to figur

PIPE stage that output word relative to another word

2010-08-03 Thread Leland Lucius
I know, I'm probably being stupid here, but I just can't seem to figure it out. Given something like: K1 V1 K2 V2 K3 V3 K4 V4 I want to be able pipe that "V3" to a VAR stage. But it needs to be relative to where "K3" is so that: K3 V3 K1 V1 K2 V2 K4 V4 would find "V3" as well. Thanks, Lelan