gtpc2m8v | C/C++ Language Support User's Guide |
This function writes the working storage block on the specified data level
to the specified general tape. The block is then returned to the
available pool.
Format
#include <tpftape.h>
void twrtc(const char *name, enum t_lvl level);
- name
- This argument is a pointer to type char, which must be a
3-character string that identifies the tape to which you write a
record. This function can only be called for a general tape.
- level
- One of 16 possible values representing a valid data level from the
enumeration type t_lvl, expressed as Dx, where x
represents the hexadecimal number of the level (0-F). The
working storage block on this level is the record to be written to
tape.
Normal Return
Void.
Error Return
Not applicable.
Programming Considerations
- Use this function to write a record to a general tape. The
specified general tape must be opened and assigned to the current ECB.
- The status of the operation can never be determined by the operational
program.
Examples
The following example writes the working storage block on level D3 to the
VPH tape. On return, the block is no longer available to the
operational program.
#include <tpftape.h>
·
·
·
tasnc("VPH");
twrtc("VPH",D3);
trsvc("VPH");
Related Information