$io.setLength

Set the length of a file.
Syntax
    $io{setLength}{file_name}{new_length}
    $io.setLength{file_name}{new_length}
DocumentationSet the length of a file.

    Parameters:
      setLength, a flag to indicate that the length of the specified file is to be changed.
      file_name, the name of the file whos length is to be changed (see the note about the filename syntax at the end of this document).
      new_length, the new length of the file.
    NOTE:
      If the present length of the file as returned by the $io{getLength}{file_name} method is greater than the 'new_length' argument
      then the file will be truncated. If the present length of the file as returned by the $io{getLength}{file_name} method is
      smaller than the 'new_length' argument then the file will be extended. In this case, the contents of the extended portion of the file are not defined.
Examples
GroupSpecial
Minimum required transaction-mode:UPDATE=IO
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 2