Guardian Procedure Calls Reference Manual
WRITEEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Example
Related Programming Manual
Summary
The WRITEEDIT procedure accepts a line in unpacked format, converts it into EDIT packed line
format, and writes it to the specified file.
WRITEEDIT is an IOEdit procedure and can only be used with files that have been opened by
OPENEDIT or OPENEDIT_.
Syntax for C Programmers
NOTE: In the TNS/E environment, the CEXTDECS file uses the int data type for 32-bit values.
This is a change from the TNS and TNS/R environments where CEXTDECS uses the long data
type for 32-bit values.
#include <cextdecs(WRITEEDIT)>
short WRITEEDIT ( short filenum
,[ __int32_t record-number ]
,char *unpacked-line
,short unpacked-length
,[ short full-length ]
,[ __int32_t *new-record-number ] );
Syntax for TAL Programmers
error := WRITEEDIT ( filenum ! i
,[ record-number ] ! i
,unpacked-line ! i
,unpacked-length ! i
,[ full-length ] ! i
,[ new-record-number ] ); ! o
Parameters
filenum
input
INT:value
specifies the file number of the open file to which the line is to be written.
WRITEEDIT Procedure 1499