Description

Copies one or more operating system files to a native table.

Syntax

Copy_OS_To_Row (srcfilelist, desttablename, destkeylist, overwriteflag, convertflag, lockflag)

Parameters

The Copy_OS_To_Row routine has the following parameters.

ParameterDescription
srcfilelistSpecifies an operating system file or list of files. The file name includes the operating system drive and path.
desttablenameSpecifies the name of the destination table.
destkeylistSpecifies a list of destination keys. If destkeylist is null, srcfilelist is used. A one to one correspondence must exist between srcfilelist and destkeylist.
overwriteflag

Determines whether or not to overwrite existing rows in desttablename.

ValueDescription
0Do not overwrite (default).
1Only replace an existing row. If the destination row does not exist, then skip it.
2Over-write rows, unconditionally.
convertflag

Determines whether or not to convert carriage return/linefeed characters to field marks. If null, the default is to perform the conversion (0). CTRL+Z is converted to null. When copying compiled scripts or other binary data, always suppress the conversion by setting the convertflag.

ValueDescription
0Perform conversion (default).
1Do not perform conversion.
lockflag

Determines whether or not to lock the DOS source files and destination rows during the copy operation.

ValueDescription
0No locking (default).
1Lock.

See also

Copy_RowCopy_Row_To_OS

Example

The following example illustrates how to copy operating system files to OpenInsight tables from the command line:

run Copy_OS_To_Row "C:\AUTOEXEC.BAT", "SYSPROCS", "AUTOEXEC", 2
  • No labels