Re: PIPE locate question

2011-01-06 Thread Berry van Sleeuwen
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 */

Re: PIPE locate question

2011-01-05 Thread Berry van Sleeuwen
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

Re: PIPE locate question

2011-01-05 Thread Alan Altmark
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

Re: PIPE locate question

2011-01-05 Thread Sergio Lima
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

Re: PIPE locate question

2011-01-05 Thread Frank M. Ramaekers
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

Re: PIPE locate question

2011-01-05 Thread Kris Buelens
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