OS-APPEND statement
Executes an operating system file append command from within ABL.
Syntax
source-filename
VALUE (expression
)target-filename
VALUE (expression
)ExampleThis procedure opens a dialog box that prompts the user to choose a source file for the append. It then prompts for a name for the target file. Finally, the procedure uses the OS-APPEND statement to append the source file to the target file.
Notes
- The filenames must conform to the naming conventions of the underlying operating system.
- If
target-file
names a file that does not exist or a directory, OS-APPEND becomes an OS-COPY and a copy is created in the current or specified directory. If an error occurs during the copy, the AVM deletes the partialtarget-file
.- Although an error can occur during execution of this statement, the statement does not generate an error message, raise an error condition, or affect the program’s flow in any way. Check for an execution error by using the OS-ERROR function and evaluating the return.
- If you specify the same file for the source and the target, the append fails but OS-ERROR is not set.
See also
OpenEdge Release 10.2B
|