I was close but not quite correct. Here is the result after testing:
/* */
parse upper arg input
'PIPE (END ?) CP QUERY NAMES', /* Get UID's */
'| SPLIT at str /,/', /* split into lines */
ea, how can I
> execute this same command to 8 cms machines ?
>
> Better use a variable under LOCATE COMMAND , and do a loop 8 times ? ,
> or not ?
>
> Thanks again Kris, about the PIPE COURSE, I already have download here
> in my machine, and, always that have time, i t
On Wednesday, 01/05/2011 at 07:45 EST, Sergio Lima
wrote:
> As I learned in this list, I'm trying to use PIPE in some cases instead
REXX.
> :
> Looking in the Manual CMS PIPELINES REFERENCE, Can't see how get the
Return
> Code.
While you are getting good answers from Kris and others, let me
mes ? , or not ?
Thanks again Kris, about the PIPE COURSE, I already have download here in my
machine, and, always that have time, i try learn more.
This course is very good.
Best Regards,
Sergio
> Date: Wed, 5 Jan 2011 14:12:33 +0100
> From: kris.buel...@gmail.com
> Subject: Re
Maybe this example will help (QN EXEC):
/* QUERY NAMES replacement
*/
Trace "O"
Address "COMMAND"
"PIPE (endchar ?)",
"| CP QUERY NAMES",
"| ZONE 9.1 NFIND -"||,
"| SPLIT ,",
"| STRIP",
"|o:FANOUT",
"| SORT",
"| SPEC 1.15 1
What about this:
"PIPE CP QUERY NAMES | SPLIT , | STRIP | LOCATE /- DSC/ ",
" | sort 1-8 | > mach disc a",
"|| locate /x/ | console | count lines |Var NbFound"
If NbFound=0 then do
say 'Nothing found for x' ; exit 67; end
Remark that I made one big pipe of the 3 ones you used. Th