gtpc2m2jC/C++ Language Support User's Guide

filec-File a Record: Basic

This function writes a working storage block from an entry control block (ECB) data level to file. The ECB must be holding a storage block on the specified level.

This service files a record to either VFA or DASD.

The filec function returns the block of storage to the appropriate pool that is referred to in the CBRW at the specified level.

Format

#include   <tpfio.h>
void       filec(enum t_lvl level);

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 core block reference word (CBRW) level is the record to be filed.

Normal Return

Void.

Error Return

Not applicable.

Programming Considerations

Examples

The following example writes the data in the working storage block on level D4 to file and releases the block.

#include <tpfio.h>

  ·
  ·
  ·
filec(D4);

Related Information