On Tue, Jul 20, 2010 at 3:04 PM, Mark Pace <[email protected]> wrote:
> Very simple pipe to display CHPID status.
>
> do i = 0 to 255
>
>  'PIPE var i | spec 1-* d2x 1-2 right | var j | cp q chpid ' j '| console'
>
> end
>
>
> But weird output - some redundant output removed to shorten results.  I get
> the same results with z/VM supplied Pipes and Marist Pipes.

No, it does not go that way. Your "cp" stage issues first
 Q CHPID j   (whatever j may be)
and then it issues the hex numbers as CP commands (the "EC" being the
abbreviation for ECHO)

Do something like this to build a CP command from the value of "i" and
capture the output:

  'PIPE var i | spec ,QUERY CHPID, 1 w1 d2x nw | cp | cons'

| Rob

Reply via email to