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
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
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
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
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
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
@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
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