This is so cool I am getting you guys to write my pipe and I am getting paid
for it.
NOW .. Let's suppose that sometimes there is a PRUNE following that APPLE. I
don't want to mix PRUNE's with APPLES and ORANGES so how can I get rid of
that nasty PRUNE? But ONLY if it is immediatly following APPLE.

-----Original Message-----
From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED]
Behalf Of Marty Zimelis
Sent: Tuesday, March 06, 2007 1:09 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: Realy simple pipe insert ?


Modify the SPECS stage to
 
    'SPECS /ORANGES/ 1 write 1-* 1 |',
 
emiting the string ORANGES before copying the existing record, rather than
after it.
 
                    Marty



  _____  

From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On
Behalf Of Huegel, Thomas
Sent: Tuesday, March 06, 2007 1:07 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: Realy simple pipe insert ?



This works pretty good. 
There shouldn't be multiple APPLES, but if there is it is OK to add 1
ORANGES for each APPLES. 
But how do I get the ORANGES to get inserted BEFORE apples? 
'PIPE < TEST FILE A',              
'|XXX:  IF LOCATE /APPLES/ ',      
'|SPECS 1-* 1  WRITE /ORANGES/ 1', 
'|XXX:  ',                         
'|> NEW FILE A'                    
  

-----Original Message----- 
From: The IBM z/VM Operating System [ mailto:IBMVM@LISTSERV.UARK.EDU
<mailto:IBMVM@LISTSERV.UARK.EDU> ]On 
Behalf Of Hughes, Jim - OIT 
Sent: Tuesday, March 06, 2007 11:55 AM 
To: IBMVM@LISTSERV.UARK.EDU 
Subject: Re: Realy simple pipe insert ? 


Hi Don, 

I never pay attention to details.  Please read my signature tagline. 

____________________________ 
Jim Hughes 
603-271-5586 
"There's no sense in being precise when you don't even know what you're 
talking about." 
John von Neumann 

=>-----Original Message----- 
=>From: The IBM z/VM Operating System [ mailto:IBMVM@LISTSERV.UARK.EDU
<mailto:IBMVM@LISTSERV.UARK.EDU> ] 
On 
=>Behalf Of Don Russell 
=>Sent: Tuesday, March 06, 2007 12:48 PM 
=>To: IBMVM@LISTSERV.UARK.EDU 
=>Subject: Re: Realy simple pipe insert ? 
=> 
=>The original request said they wanted to insert *a* record into the 
=>stream... Your suggestion will insert a record for each record read 
from 
=>the file that contains APPLES. resulting in a file of lines containing 
=>APPLES,separated by lines of ORANGES. 
=> 
=>'PIPE < test file a |', 
=>'locate /APPLES/|', 
=>'strliteral /ORANGES/|', 
=>'> new file a' 
=> 
=>Will result in a "new file a" with one record more than the count of 
=>'APPLES' records found. 
=>The first record of the new file will be ORANGES... if you want it to 
be 
=>the last, use APPEND STRLITERAL... 
=> 
=>Don Russell 
=>> 


__________________________________________________________________ 
<< ella for Spam Control >> has removed VSE-List messages and set aside
VM-List for me 
You can use it too - and it's FREE!  http://www.ellaforspam.com
<http://www.ellaforspam.com>  


  _____  

<< ella for Spam Control >> has removed 10487 VSE-List messages and set
aside 8620 VM-List for me
You can use it too - and it's FREE!   www.ellaforspam.com
<http://www.ellaforspam.com>    

Reply via email to