Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual—522629-013
3-88
COMPRESSEDIT Procedure
COMPRESSEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Example
Related Programming Manual
Summary
The COMPRESSEDIT procedure copies a specified EDIT file to a new EDIT file that it
creates. It fills each block in the new file as much as possible to minimize the number
of disk pages used. It then purges the old file and renames the new file to have the
name of the old file. The lines in the new file are renumbered if so requested. Upon
completion, the new file is open and the current record number is set to -1 (beginning
of file). The file number of the new file is returned to the caller.
COMPRESSEDIT is an IOEdit procedure and can only be used with files that have
been opened by OPENEDIT or OPENEDIT_.
Syntax for C Programmers
•
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the
typedef __int32_t which for TNS and TNS/R compiles is defined as long and for
TNS/E compiles is defined as
int.
Syntax for TAL Programmers
Parameters
error returned value
INT
returns a file-system error number indicating the outcome of operation.
#include <cextdecs(COMPRESSEDIT)>
short COMPRESSEDIT ( short *filenum
,short count-transferred
,__int32_t tag);
error := COMPRESSEDIT ( filenum ! i,o
,[ start ] ! i
,[ increment ] ); ! i