TRANSFER


Basic form

TRANSFER f TO dsn.

Addition



... LENGTH len

Effect

Transfers the field f (usually a field string) to the sequential file specified in dsn (this may be a literal or a field).

If the specified file is not open, TRANSFER attempts to open the file dsn FOR OUTPUT ( IN BINARY MODE or using the further specifications of the last OPEN command for this file). If this fails, a runtime error occurs.

Example

DATA REC(80). TRANSFER REC TO '/usr/test'.

Notes



Addition

... LENGTH len

Effect

Transfers the length of the record to be output in the length len .

Index
© SAP AG 1996