TRUNC (Truncate Block) Macro

The macro is used with blocked output records written to disk or to magnetic tape.

It allows you to write a short block of records. These short blocks do not include padding. Thus, the macro can be used for a function similar to that of the RELSE macro for input records. When the end of a category of records is reached, the last block can be written and the new category can be started at the beginning of a new block.

The TRUNC macro does not necessarily cause a physical write to an FBA disk. If this is desirable, code the PWRITE operand in the DTFSD macro for the affected file.

Format

Read syntax diagramSkip visual syntax diagramnameTRUNCfilename(1)

Requirements for the caller

AMODE:
24
RMODE:
24
ASC Mode:
Primary

Parameters

filename | (1)
The symbolic name of the file that is specified as name in the DTFxx macro for the affected file.