Default COPY Parameters

Enterprise Server tracks the last COPY command performed by each Windows user and can re-use the DBServer parameters as default values on subsequent COPY commands.

For example, if a user enters this COPY command

dbenterprise copy (gpc)source/bankdb/= on user to

"e:\xferfiles" text from mcpvlan port 5000

followed by this COPY command

dbenterprise copy (JOE)UPDATES/= ON SYSPACK to "d:\hostfiles\test"

Enterprise Server will populate the missing parameters using stored settings. Internally, this expands to the following command:

dbenterprise copy (JOE)UPDATES/= ON SYSPACK to "d:\hostfiles\test" from mcpvlan port 5000

In some cases, Enterprise Server infers default values even when no user command history exists for the file transfer tool.

If a Windows user has never specified FROM/VIA or PORT values, Enterprise Server uses the DBServer addresses and port numbers that are associated with configured sources in Enterprise Server.

If the COPY command does not specify BINARY or TEXT mode, Enterprise Server does the following to determine the mode:


Enterprise Server

Copying from MCP

Uses the MCP file attribute FILEKIND. If FILEKIND is set to DATA, Enterprise Server examines the first record of the file. If it only contains printable characters, TEXT mode is used. If it contains any nonprintable characters, BINARY mode is used.

Some files, such as COBOL source files, are transferred in TEXT mode by default.

Copying from Windows

Transfers files in TEXT mode.