Volker's answer is the best, sending the output from
SDA> sh proc/chan all
to a file, but it depends on the pageable CCB area being in memory for each process. Not likely on a busy system.
Usually when someone asks this question, they're attempting to see how many channels are being used system-wide, their (incorrect) assumption is that CHANNELCNT is per system rather than per process.
Why do you need a total?
le plus ca change...