gtpc2m2oC/C++ Language Support User's Guide

filnc-File a Record with No Release

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 filnc function does not return the block of storage to the appropriate pool but retains it on the specified level following return from a subsequent waitc.

Format

#include   <tpfio.h>
void       filnc(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 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 DF to file. The working storage block remains attached to the data level.

#include <tpfio.h>

  ·
  ·
  ·
filnc(DF); if (waitc()) { serrc_op(SERRC_EXIT,0x12345,"I/O ERROR OCCURRED",NULL); } /* This serrc_op call is the ISO-C version of the TARGET(TPF) call: errno = 0x1234; perror("I/O ERROR OCCURRED"); abort(); */

Related Information