Re: PIPE stage that output word relative to another word

2010-08-04 Thread Leland Lucius
That's works just dandy.

Thanks much,

Leland

On Tue, Aug 3, 2010 at 3:46 PM, Frank M. Ramaekers framaek...@ailife.comwrote:

  Like this?



 pipe literal k1 v1 k2 v2 k3 v3 k4 v4|split at blank| Join 1 / /|find
 k3|spec w2 1|console





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

 Leland

  _ This message
 contains information which is privileged and confidential and is solely for
 the use of the intended recipient. If you are not the intended recipient, be
 aware that any review, disclosure, copying, distribution, or use of the
 contents of this message is strictly prohibited. If you have received this
 in error, please destroy it immediately and notify us at
 privacy...@ailife.com.



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,

Leland


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 lluc...@homerow.net

 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,

 Leland


-- 
Kris Buelens,
IBM Belgium, VM customer support


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

Leland





--
Rich Smrcina
Phone: 414-491-6001
http://www.linkedin.com/in/richsmrcina

Catch the WAVV! http://www.wavv.org
WAVV 2011 - April 15-19, 2011 Colorado Springs, CO


Re: PIPE stage that output word relative to another word

2010-08-03 Thread Frank M. Ramaekers
Like this?

 

pipe literal k1 v1 k2 v2 k3 v3 k4 v4|split at blank| Join 1 / /|find
k3|spec w2 1|console

 

 

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

Leland




_
This message contains information which is privileged and confidential and is 
solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,
copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have
received this in error, please destroy it immediately and notify us at 
privacy...@ailife.com.


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 lluc...@homerow.net 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.  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,

 Leland





Re: PIPE stage that output word relative to another word

2010-08-03 Thread Leland Lucius

That's works just dandy.

Thanks much,

Leland

On Tue, Aug 3, 2010 at 3:46 PM, Frank M. Ramaekers 
framaek...@ailife.com mailto:framaek...@ailife.com wrote:


   Like this?




   pipe literal k1 v1 k2 v2 k3 v3 k4 v4|split at blank| Join 1 / /|find
   k3|spec w2 1|console






   Frank M. Ramaekers Jr.








   

   *From:* The IBM z/VM Operating System
   [mailto:IBMVM@LISTSERV.UARK.EDU mailto:IBMVM@LISTSERV.UARK.EDU]
   *On Behalf Of *Leland Lucius
   *Sent:* Tuesday, August 03, 2010 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 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,

   Leland

   _ This message
   contains information which is privileged and confidential and is
   solely for the use of the intended recipient. If you are not the
   intended recipient, be aware that any review, disclosure, copying,
   distribution, or use of the contents of this message is strictly
   prohibited. If you have received this in error, please destroy it
   immediately and notify us at privacy...@ailife.com
   mailto:privacy...@ailife.com.