Re: Realy simple pipe insert ?

2007-03-08 Thread Huegel, Thomas
:[EMAIL PROTECTED] Behalf Of Kris Buelens Sent: Tuesday, March 06, 2007 1:16 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Realy simple pipe insert ? If you have some time to learn by reading: our PIPES telecourse on http://www.vm.ibm.com/download/packages/descript.cgi?TCVM2 http://www.vm.ibm.com

Re: Realy simple pipe insert ?

2007-03-08 Thread Stephen Buckles
@listserv.uark.edu To IBMVM@listserv.uark.edu cc Subject Re: Realy simple pipe insert ? Thank-you Kris, I downloaded this course and have been going through it. It appears to be an excellent course. As they say 'give a man a fish and you feed him for a day, teach him to fish and you feed him

Re: Realy simple pipe insert ?

2007-03-07 Thread Huegel, Thomas
. -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

Re: Realy simple pipe insert ?

2007-03-07 Thread Hughes, Jim - OIT
, 2007 9:17 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Realy simple pipe insert ? 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

Re: Realy simple pipe insert ?

2007-03-07 Thread Rob van der Heij
Frequently plumbing is easier to operate on a record rather than a set of records. Most of us will resort to some kind of sipping pipeline that operates on such a single set (rather than a stream of sets). If you need something that will look at two adjacent records, it sometimes helps to do

Re: Realy simple pipe insert ? .. Thanks Rob

2007-03-07 Thread Huegel, Thomas
Thanks Rob, Nice explaination too. I'll go away now. -Original Message- From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] Behalf Of Rob van der Heij Sent: Wednesday, March 07, 2007 9:05 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Realy simple pipe insert ? Frequently

Realy simple pipe insert ?

2007-03-06 Thread Huegel, Thomas
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!

Re: Realy simple pipe insert ?

2007-03-06 Thread Hughes, Jim - OIT
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

Re: Realy simple pipe insert ?

2007-03-06 Thread Huegel, Thomas
@LISTSERV.UARK.EDU Subject: Re: Realy simple pipe insert ? 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

Re: Realy simple pipe insert ?

2007-03-06 Thread Marty Zimelis
: 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

Re: Realy simple pipe insert ?

2007-03-06 Thread Huegel, Thomas
: Realy simple pipe insert ? I'm guessing you didn't give us the full request. I assume that records without the string APPLES pass unchanged. Records with the string APPLES: do you want to replace the string or the entire record with ORANGES? Or do you want to insert a new record (ORANGES

Re: Realy simple pipe insert ?

2007-03-06 Thread Hughes, Jim - OIT
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:41 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Realy simple pipe insert ? Jim

Re: Realy simple pipe insert ?

2007-03-06 Thread Don Russell
*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

Re: Realy simple pipe insert ?

2007-03-06 Thread Hughes, Jim - OIT
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

Re: Realy simple pipe insert ?

2007-03-06 Thread Llewellyn, Mark
Of Huegel, Thomas Sent: Tuesday, March 06, 2007 9:44 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Realy simple pipe insert ? Marty, Yes I want to pass the entire file to 'new file a' and insert ORANGES before APPLES. Thanks -Original Message- From: The IBM z/VM Operating

Re: Realy simple pipe insert ?

2007-03-06 Thread Marty Zimelis
Subject: Re: Realy simple pipe insert ? I'm guessing you didn't give us the full request. I assume that records without the string APPLES pass unchanged. Records with the string APPLES: do you want to replace the string or the entire record with ORANGES? Or do you want to insert a new record

Re: Realy simple pipe insert ?

2007-03-06 Thread Huegel, Thomas
: ', '| 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

Re: Realy simple pipe insert ?

2007-03-06 Thread McKown, John
Subject: Re: Realy simple pipe insert ? Assuming there aren't any compound versions of APPLES in the input file (like SNAPPLES): 'PIPE INPUT FILE A | change /APPLES/ORANGES APPLES/ | NEW FILE A' Mark Llewellyn VISA USA

Re: Realy simple pipe insert ?

2007-03-06 Thread Llewellyn, Mark
PIPE literal D'oh! | console From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of McKown, John Sent: Tuesday, March 06, 2007 10:09 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Realy simple pipe insert ? You've all fallen

Re: Realy simple pipe insert ?

2007-03-06 Thread David Boyes
You've all fallen for it! It is a well known fact that you cannot mix APPLES and ORANGES. Won't work. Add a tablespoon of cinnamon, two tablespoons of light brown sugar per apple and orange, and a jigger of really good brandy, and heat on low. Add teaspoons of honey slowly until you get a

Re: Realy simple pipe insert ?

2007-03-06 Thread Marty Zimelis
: 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

Re: Realy simple pipe insert ?

2007-03-06 Thread Shimon Lebowitz
You've all fallen for it! It is a well known fact that you cannot mix APPLES and ORANGES. Won't work. Add a tablespoon of cinnamon, two tablespoons of light brown sugar per apple and orange, and a jigger of really good brandy, and heat on low. Add teaspoons of honey slowly until you

Simple PIPE ?

2007-02-28 Thread Huegel, Thomas
I think this should be really simple, but the brain doesn't seem to be working this morning. I have this little pipe, and the last stage is '|VAR NEWNAME'. How can a be sure NEWNAME is being set to '' (null) if nothing makes it that far through the pipe? 'PIPE FILERAND TOM222 PLI A 1-10', '|

Re: Simple PIPE ?

2007-02-28 Thread Rob van der Heij
On 2/28/07, Huegel, Thomas [EMAIL PROTECTED] wrote: How can a be sure NEWNAME is being set to '' (null) if nothing makes it that far through the pipe? The classic probably is ... | append literal | var newname But more exciting is to look at what you're going to do with it after than and

Re: Simple PIPE ?

2007-02-28 Thread Hughes, Jim - OIT
Subject: Simple PIPE ? I think this should be really simple, but the brain doesn't seem to be working this morning. I have this little pipe, and the last stage is '|VAR NEWNAME'. How can a be sure NEWNAME is being set to '' (null) if nothing makes it that far through the pipe? 'PIPE

Re: Simple PIPE ?

2007-02-28 Thread Mike Walter
System IBMVM@LISTSERV.UARK.EDU 02/28/2007 10:22 AM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: Simple PIPE ? On 2/28/07, Huegel, Thomas [EMAIL PROTECTED] wrote: How can a be sure NEWNAME is being set to '' (null

Re: Simple PIPE ?

2007-02-28 Thread Rich Greenberg
On: Wed, Feb 28, 2007 at 09:16:38AM -0600,Huegel, Thomas Wrote: } I think this should be really simple, but the brain doesn't seem to be } working this morning. } I have this little pipe, and the last stage is '|VAR NEWNAME'. } How can a be sure NEWNAME is being set to '' (null) if nothing makes

Re: Simple PIPE ?

2007-02-28 Thread Rob van der Heij
On 2/28/07, Macioce, Larry [EMAIL PROTECTED] wrote: I don't know pipes well, but I would set newname to null first everytime then what happens happens Sure? I would expect CMS Pipelines to drop the variable when no record flows there. Rob

Re: Simple PIPE ?

2007-02-28 Thread Rob van der Heij
On 2/28/07, Mike Walter [EMAIL PROTECTED] wrote: '| VAR newname TRACKING' Cheating ! ;-) Since the var stage will also pass the records along, I sometimes do it like this: ... | var response | take | count lines | var worktodo if worktodo then ... Rob

Re: Simple PIPE ?

2007-02-28 Thread Huegel, Thomas
@LISTSERV.UARK.EDU Subject: Re: Simple PIPE ? This works for me. Newname = '' 'PIPE FILERAND TOM222 PLI A 1-10', '| FIND --CATAL= ', '| TAKE FIRST 1', '| SPECS 9.9 1', '| STRIP', '| VAR NEWNAME tracking

Re: Simple PIPE ?

2007-02-28 Thread Mike Walter
02/28/2007 10:53 AM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: Simple PIPE ? On 2/28/07, Mike Walter [EMAIL PROTECTED] wrote: '| VAR newname TRACKING' Cheating ! ;-) Since the var stage will also pass the records