'PIPE CP Q ALLOC ALL' ,
   '| TAKE LAST 1' ,
   '| CONSOLE' ,
   '| SPECS W6 1' ,
   '| VAR sysres' ,
   '| CP QUERY CPOWNED' ,
   '| PICK W2 == /'sysres'/' ,
   '| SPECS W2-* 1' ,
   '| CONSOLE' 

This won't work. You cannot set the REXX variable and use it in the same 
pipe.

'PIPE CP Q ALLOC ALL' ,
   '| TAKE LAST 1' ,
   '| CONSOLE' ,
   '| SPECS W6 1' ,
   '| VAR sysres' 

'PIPE CP QUERY CPOWNED' ,
   '| PICK W2 == /'sysres'/' ,
   '| SPECS W2-* 1' ,
   '| CONSOLE' 

Not tested. But then the first pipe wasn't tested either.

Alan Ackerman

Reply via email to