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, suppose you enter these two COPY commands:

dbenterprise copy (gpc)source/bankdb/= on user to
"e:\xferfiles" text from mcpvlan port 5000
dbenterprise copy (JOE)UPDATES/= ON SYSPACK to "d:\hostfiles\test"

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

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.

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:

If

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

If the first 4096 bytes contain nonprintable characters Enterprise Server copies the files in BINARY mode. Otherwise it uses TEXT mode.