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
Hughes, Jim - OIT wrote:
“PIPE < test file a |”,
“ locate /APPLES/ |”,
“ specs 1-* 1 write /ORANGES/ 1 |”,
“ > new file a”
____________________________
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
------------------------------------------------------------------------
*From:* The IBM z/VM Operating System [mailto:[EMAIL PROTECTED]
*On Behalf Of *Huegel, Thomas
*Sent:* Tuesday, March 06, 2007 12:27 PM
*To:* IBMVM@LISTSERV.UARK.EDU
*Subject:* Realy simple pipe insert ?
I want to do a simple insert of a record into the stream.
pipe < test file a | locate /APPLES/ .....| here I want to insert a
literal ORANGES | > new file a
------------------------------------------------------------------------
<<* ella for Spam Control *>> has removed *10443* VSE-List messages
and set aside *8563* VM-List for me
You can use it too - and it's FREE! www.ellaforspam.com
<http://www.ellaforspam.com>