Programmatically check storage space

Use the Check Communication Trace (QSCCHKCT) API to programmatically check the maximum space allocated for traces and the sizes, in bytes, of all traces in active or stopped status on the server.
Related information
Application Programming Interfaces