>
>
>
> 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
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
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
, 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
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
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
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