Should that be:
do i = 0 to 255
'PIPE var i | spec /Q CHPID/ 1 1-* d2x Nw right | cp '| console'
end
Now you are feeding the strings 00, 01, etc into the CP command as primary
input. The CP stage will first execute the command passed as argument and
then what is presented in its primary input.
But, there's even no PIPE required:
do i=1 to 255
'CP Q CHPID' d2x(i)
end
2010/7/20 Mark Pace <[email protected]>
> 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.
>
> qchpid
> *HCPQPA846E Invalid channel path identifier*.
> No devices on path 00
> No devices on path 01
> Path 02 online to devices 0600 0601 0602 0603 0604 0605 0606 0607
> No devices on path 03
> Path 04 online to devices 0580 0581
> Path 05 online to devices 0590 0591 0592 0593
> No devices on path 06
> <SNIP>
> No devices on path B8
> No devices on path B9
> *HCPCSO021E A real device number was not supplied or it is invalid.*
> No devices on path BA
> No devices on path BB
> <SNIP>
> No devices on path EA
> No devices on path EB
> *ECHO entered; to terminate test, type end. *
> *Enter line. *
>
> Now I've entered in CP ECHO mode and have to enter End to get it to
> continue.
> end
> No devices on path EC
> No devices on path ED
> No devices on path EE
> No devices on path EF
> No devices on path F0
> No devices on path F1
> No devices on path F2
> No devices on path F3
> No devices on path F4
> No devices on path F5
> No devices on path F6
> No devices on path F7
> No devices on path F8
> No devices on path F9
> No devices on path FA
> No devices on path FB
> No devices on path FC
> No devices on path FD
> No devices on path FE
> Ready; T=0.01/0.09 09:02:33
>
--
Kris Buelens,
IBM Belgium, VM customer support