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
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' Jim Hughes 603-271-5586

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