gtpc2m8vC/C++ Language Support User's Guide

twrtc-Write a Record to General Tape

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

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