gtpc2m7i | C/C++ Language Support User's Guide |
This function returns the module queue length of the specified active tape.
Format
#include <tpftape.h> struct tpqstat *tdspc_q(const char *name, enum t_lvl level);
Normal Return
Pointer to structure tpqstat (defined in tpftape.h) containing the tape queue length. The indicated tape need not be assigned to the issuing ECB.
Error Return
NULL.
Programming Considerations
None.
Examples
The following example calls the tdspc_q function to obtain the queue length of the active "VPH" tape.
#include <tpftape.h> struct tpqstat *status;
·
·
·
status = tdspc_q("VPH", D0); if (0 == status.q_length) { serrc_op(SERRC_EXIT,0x1234,"VPH TAPE QUEUE EMPTY",NULL) ; }
Related Information