One advantage of pipes on Linux and UNIX systems is that, unlike some other popular operating systems, there is no intermediate file involved with a pipe.
If message text returned by the db2 command is lengthy, consider using the "more" pipe (if available on your operating system), or redirecting the output to a file. For example.