BLK

Synopsis

HELP:   Write a file block-oriented (mainly open world)
TYPE:   OBJECT
SYNTAX: BLK(NET.{},NAME/FILE='str'/STREAM/DUMMY,EMPTY=INFO/WARNING/ERROR/DELETE,FALLOC(),REMOVE,REMAIN,NOMKDIR,APPEND,FLUSH,FRCREC,ADDDLM,ACSTIM=num,MODTIM=num/ORIGINAL,ATTRIB(),PRNCTR=DETACH/RETAIN/ERASE/REPLACE,RPLFFD[=num],BINDMP,PREPRO[()...],POSTPRO/PSTPRO[()...])

Description

This object defines the block-oriented write operation for files. This method writes the all data after any conversions as one chunk to the file. This is the most common and simplest way to write a file. This write method is useful for all non-record-oriented file formats.

If the block still contains a record length information, you can enforce a record-oriented write. It is also possible to add the system delimiter behind each record to produce a valid text block.

To retain the modification time of the original file, the modtime parameter can be set to ORIGINAL.

Arguments