gtpc2m7q | C/C++ Language Support User's Guide |
This function causes the record on the specified data level to be written to a real-time tape. The first four bytes of the file address reference word (FARW) of the data level specified must contain the address of the record to be written. The last 2 bytes of the FARW must contain the byte count of the record.
The toutc 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 <tpftape.h> void toutc(const char *name, enum t_lvl level, int bufmode);
Normal Return
Void.
Error Return
Not applicable.
Programming Considerations
Examples
The following example writes the working storage block on level D9 to the RTA tape in buffered mode. A message is issued if an I/O error occurs.
#include <tpftape.h>
·
·
·
ecbptr()->ce1fa9 = (long int) (ecbptr()->ce1cr9); /* get address in FARW */ (*((short int *)&(ecbptr()->ce1fh9))) = 128; /* length of record */ toutc("RTA",D9,BUFFERED); if (waitc()) { serrc_op(SERRC_EXIT,0x1234,"ERROR ON RTA TAPE",NULL) ; }
Related Information