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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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

Reply via email to