gtpc2m8tC/C++ Language Support User's Guide

trsvc-Reserve General Tape

This function releases an assigned general tape so that another ECB may assign it. No more tape I/O requests for the specified tape may be issued by this ECB until the tape has been reassigned using tasnc.

Format

#include <tpftape.h>
void     trsvc(const char *name);

name
This argument is a pointer to type char, which must be a 3-character string identifying the tape to be reserved. This function can only be called for a general tape.

Normal Return

Void.

Error Return

Not applicable.

Programming Considerations

Use this function to permit other ECBs to have I/O access to the specified tape, or to permit the issuing ECB to call the exit function, leaving the tape open.

Examples

The following example reserves the VPH tape for use by other ECBs.

#include <tpftape.h>

  ·
  ·
  ·
trsvc("VPH");

Related Information