# Directives

SETDEV | Set File Options

## Format

SETDEV (chan) SET option$ TO value[$]
Where:

chan | Channel or logical file number of the file affected.
option$ | File option you wish to set/change.
value[$] | New value (string or numeric) for the specified option.

## Description

Use this form of the SETDEV directive to dynamically change various options on files. This is an alternative to using the 'OPTION' mnemonic and targets the file specified in chan.

See 'OPTION' mnemonic for the various options you can change.

(The SETDEV SET directive was added in PxPlus v11.00.)